Billing In Asterisk

General discussions about Asterisk.

Moderators: Moderator, Support

Billing In Asterisk

Postby azhar117 » Mon Jul 16, 2012 7:40 pm

Hi All,
Now this time i required a help related to asterisk billing. I want user to get billed in two way or two plan pay per sec and pay per minute. Whenever the call is initiated the balance must be reduced that time itself.when the second minute or seconds is initiated it must deduct the amount that time itself . in other word it must deduct the amount in real time, like our cellular phone does.
Any kind of help or idea will be helpfull
azhar117
Oldsterisk
 
Posts: 52
Joined: Fri Jun 29, 2012 7:35 pm

Re: Billing In Asterisk

Postby navaismo » Mon Jul 16, 2012 11:24 pm

If you want your own solution you can use an agi to determinate:

1: the initial balance
2: the cost per min or seconds of the dialed destination
3: Get the maximum duration of the call with above values, using simple math expressions.
4: Set the timeout(absolut)
5: if the call ends before the timeout update the balance.
navaismo
Astmaster
 
Posts: 774
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 12 guests