[asterisk-users] Controlling calls

2010-06-07 Thread Adil Zaaraoui
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,

Re: [asterisk-users] Controlling calls

2010-06-07 Thread Steve Edwards
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,               

Re: [asterisk-users] Controlling calls

2010-06-06 Thread Adil Zaaraoui
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 --

Re: [asterisk-users] Controlling calls

2010-06-06 Thread Steve Edwards
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.

[asterisk-users] Controlling calls

2010-06-05 Thread Adil Zaaraoui
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

Re: [asterisk-users] Controlling calls

2010-06-05 Thread Steve Edwards
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