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 exampleOutgoing 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 sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
-- _____________________________________________________________________ -- 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