Hello,
thanks for your help and you time,
I tried your statement in my extension like this:
exten = 777,n, set(TIMEOUT(absolute)=10)
exten = 777,n, dial(iax2/400)
exten = 777,n, hangup()
If peer (400) answers the call the call persists,
On Mon, 7 Jun 2010, Adil Zaaraoui wrote:
I tried your statement in my extension like this:
(context or dialplan would be more correct than extension.)
exten = 777,n, set(TIMEOUT(absolute)=10)
exten = 777,n, dial(iax2/400)
exten = 777,n,
Thanks again,
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.
Any help.
Regards
--
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.
Hello folks,
I want to write an AGI script doing this:
1-user call a number.
2-asterisk call the agi script
3-the script dial the peer
4-if the call is answered, let the call up for 1min
5-then the script hangs up the channel.
I tried either in php or in java but no success.
In java i did
On Sat, 5 Jun 2010, Adil Zaaraoui wrote:
I want to write an AGI script doing this:
1-user call a number.
2-asterisk call the agi script
3-the script dial the peer
4-if the call is answered, let the call up for 1min
5-then the script hangs up the channel.
I tried either in php or in