On Sun, 6 Jun 2010, Adil Zaaraoui wrote:

i do not need absolute timeout, i have to get from my database how many minutes can the caller communicate; so in my script run the dial command (fire the call), controlling the elapsed time if the channel is answered, then hanging up the channel.

Can you lookup the peer and the remaining minutes in your AGI, set these values in channel variables and then set the timeout and dial your peer in your dialplan?

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       [email protected]      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

Reply via email to