[Asterisk-Users] Re: billing realtime

Tony Mountifield tony at softins.clara.co.uk
Wed Apr 26 01:25:36 MST 2006


In article <IFECLJEGMECKABGMJMPCOEJKEMAA.senad at bicom.us>,
Senad Jordanovic <senad at bicom.us> wrote:
> The way we solved this is:
> 
> 1/ Each account has incoming/outgoing channels
> 2/ Once call is started then the total balance is divided by number of
> outgoing channels for that account. This sets the time limit.
> 3/ If more calls are made then each new call has same absolute timeout.
> 
> Above is not perfect, since we are limiting each call to less talk time then
> total balance allows, hence why we are currently
> looking into possibility in changing the value of absolute timeout in memory
> for each of the calls.

The other situation to take account of is when the caller somehow adds
to his prepaid balance while he has one or more calls in progress, in
order to avoid being cut off during the call.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list