[asterisk-users] Asterisk Realtime Billing Question???
Zeeshan Zakaria
zishanov at gmail.com
Thu Oct 21 01:13:52 CDT 2010
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.
Zeeshan A Zakaria
--
www.ilovetovoip.com
On 2010-10-21 1:32 AM, "DHAVAL INDRODIYA" <dhaval.it01034 at gmail.com> wrote:
Hello All,
after so long time i posted a new question regarding billing, hope anyone
have some solution.
I have situation in that i want to do billing of more than 1 call in real
time below are scenario and explanation.
Scenario:
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
i will put this customer into conference [MEETME] , once a Members are
picked up call they will also patched into conference and
talking is started, every thing working fine with DIAL-PLAN and DB look up.
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
into this situation, like numbers can be different It can be ISD,STD,Local
and also free .
if customer having initial balance of $100 then how can i check balance
every time.in a situation once balance is nil then i want to disconnect
calls . is any one facing this type of situation.
give me some idea ,
regards
Dhaval
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101021/af8594cd/attachment.htm
More information about the asterisk-users
mailing list