[asterisk-users] Newbie Question...

Steve Edwards asterisk.org at sedwards.com
Mon Jan 31 16:30:39 CST 2011


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


More information about the asterisk-users mailing list