<p>Billing is a complex matter, however the CDR contains all the necessary information. You need to carefully see how calls are recorded in the CDR when meetme finishes, and how all the legs were connected. Usually accountcode, dstchannel and channel columns have the required info which tells how the calls were connected. Once you know how the calls were connected, get each calls duration and destination and multiply them with the destination calling cost. You can program this logic in PHP and use as a AGI script in the hangup context of your dialplan. Its not quick and easy task to do, but there is no quick and easy way for this purpose. Similarly to be able to not proceed with the call if account balance is zero, you need to check account balance before calling the meetme application.<br>
</p>
<p>Zeeshan A Zakaria</p>
<p>--<br>
<a href="http://www.ilovetovoip.com">www.ilovetovoip.com</a></p>
<p><blockquote type="cite">On 2010-10-21 1:32 AM, "DHAVAL INDRODIYA" <<a href="mailto:dhaval.it01034@gmail.com">dhaval.it01034@gmail.com</a>> wrote:<br><br>Hello All,<br><br>after so long time i posted a new question regarding billing, hope anyone have some solution.<br>
<br>I have situation in that i want to do billing of more than 1 call in real time below are scenario and explanation. <br>
<br><br>Scenario:<br> A customer called my DID number and after that from here i dial few number let say 5 number. once number are placed into DIAL<br>i will put this customer into conference [MEETME] , once a Members are picked up call they will also patched into conference and <br>
talking is started, every thing working fine with DIAL-PLAN and DB look up. <br><br>Now, i want to do billing on customer dialed my DID, and from that actually it DIALED 5 numbers, how can i DO real time billing <br>into this situation, like numbers can be different It can be ISD,STD,Local and also free .<br>
<br>if customer having initial balance of $100 then how can i check balance every <a href="http://time.in" target="_blank">time.in</a> a situation once balance is nil then i want to disconnect <br>calls . is any one facing this type of situation.<br>
<br>give me some idea ,<br><br>regards<br><font color="#888888">Dhaval<br><br>
</font><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></p>