[asterisk-users] Controlling calls

Steve Edwards asterisk.org at sedwards.com
Sun Jun 6 12:34:06 CDT 2010


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


More information about the asterisk-users mailing list