Hi Pete,
| Quote: |
| puts status info and a session unique id into the DB before and after an outgoing /incoming call is made. |
If you want something that will scale, you probably want to consider using a queue rather than direct (blocking) DB access. ActiveMQ is an open-source option (I've heard both good and bad things about it, so a little research may be required).
| Quote: |
| In order to fulfill this function, is using AGI call to record the status info frequently inside the dialplan a feasible solution? |
I can't see why it woudln't work, but it's pretty ugly. Scalability is also an issue here, but I'm not sure what your requirements are exactly.
| Quote: |
| Is this the right approach in developing a billing solution for Asterisk? |
Asterisk is a PBX. PBX's do not generally get involved with billing, so whatever you do is unlikely to be an optimal solution. Asterisk simply wasn't designed with that in mind.
What is sitting behind Asterisk in this situation? Are you using Asterisk as a media proxy/gateway ?
You might want to consider using FreeSwitch instead. That's a proper class 5 softswitch which has an event socket you could use to get status changes, rather than having to poll an AGI periodically for current status.