On Mon, 31 Jan 2011, Piotr G?rski wrote:
> I have 4 PSTN lines connected to TDM410. I can make exact 60 minutes of
> free calls from each of 4 pstn lines... Can I configure Asterisk to call
> thru pstn line that has free minutes? For example
>
> Outgoing calls are going through PSTN 1 for 60 minutes. When I use all
> of these free minutes - outgoing calls go thru PSTN 2. When I use all
> free minutes from PSTN 2 outgoing calls go via PSTN3.?
You will need to keep track of the call duration for each channel in a
persistent store -- something like MySQL.
You may also want to read up on setting the absolute timeout on a channel
so a caller won't consume all of your 'prepaid' (nothing is free)
minutes
and drive you into unexpected charges.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000