[asterisk-users] Active Calls
Mindaugas Kezys
mkezys at gmail.com
Mon Dec 24 05:23:47 CST 2007
Happy Holidays!
When call starts and your billing script/application starts – enter info about call in DB, like:
datetime(call start), src, dst, RINGING, uniqueid
When dialing: Dial(whatever|M(answer_mark_macro))
Macro: answer_mark_macro will put updated info to same row in DB:
datetime(call answered), src, dst, ANSWERED, uniqueid
When call ends your billing script/application should delete record from DB for this call.
You can put TRANSFER info to DB also when transfer occurs. Also you can put any other info you find usefull about your call – codecs/phone model which is dialing and so on.
This method lets you retrieve call status info from DB without using AMI – thus not bothering Asterisk at all.
Regards,
Mindaugas Kezys
http://www.kolmisoft.com
MOR – Advanced Billing for Asterisk PBX
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Abdul
Sent: Monday, December 24, 2007 12:54 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Active Calls
Hi Friends,
Happy New Year
I was developing billing system for my end user customers. I need to get Asterisk Active calls in MySQL database with full status of call likem ringing, UP and runtime?
i will be thank full for your help and suggestion.
Thank You
_____
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try <http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20> it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071224/736b171b/attachment-0001.htm
More information about the asterisk-users
mailing list