<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Steve,</DIV>
<DIV> </DIV>
<DIV>You do really grasp Asterisk, it works, i added transfer=no in iax.conf for eithet users 200 and 400, and now it hangs up.</DIV>
<DIV> </DIV>
<DIV>For the S option it works too, i write it like this :</DIV>
<DIV>exten=>888,1, Dial(IAX2/400, ,S(10))</DIV>
<DIV> </DIV>
<DIV>For the script there is a method getChannel().setVariable(param1,param2).</DIV>
<DIV>now i stock the SECONDS-REMAINING in set Variable like this:</DIV>
<DIV>getChannel().setVariable("SECONDS-REMAINING","15").</DIV>
<DIV>and in the Dial i did </DIV>
<DIV>
<DIV>exten=>888,1, Dial(IAX2/400, ,S(${SECONDS-REMAINING}))</DIV>
<DIV> </DIV>
<DIV>AND it works perfectly.</DIV>
<DIV>Thanks again Steve for sharing your knowledge.</DIV>
<DIV> </DIV>
<DIV>RESPECTFULLY</DIV></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De :</SPAN></B> Steve Edwards <asterisk.org@sedwards.com><BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com><BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé le :</SPAN></B> Lun 7 juin 2010, 21h 45min 21s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet :</SPAN></B> Re: [asterisk-users] Re : Re : Re : Controlling calls<BR></FONT><BR>On Mon, 7 Jun 2010, Adil Zaaraoui wrote:<BR><BR>> Yes you were right, the " exten=> 777,1, Goto(absolute-timeout-test,777,1)" was not in the context 200, Now here is the output:<BR>> <BR>> -- Accepting AUTHENTICATED call from 192.168.1.34:<BR>> > requested format = ulaw,<BR>> > requested prefs = (),<BR>> > actual format = ulaw,<BR>>
> host prefs = (ulaw|alaw),<BR>> > priority = mine<BR>> -- Executing [777@IAX:1] Goto("IAX2/200-11946", "absolute-timeout-test|777|1") in new stack<BR>> -- Goto (absolute-timeout-test,777,1)<BR>> -- Executing [777@absolute-timeout-test:1] Verbose("IAX2/200-11946", "1|[absolute-timeout-test:777]") in new stack<BR>> [absolute-timeout-test:777]<BR>> -- Executing [777@absolute-timeout-test:2] Set("IAX2/200-11946", "TIMEOUT(absolute)=10") in new stack<BR>> -- Channel will hangup at 2010-06-07 21:16:11 UTC.<BR>> -- Executing [777@absolute-timeout-test:3] Dial("IAX2/200-11946", "IAX2/400") in new stack<BR>> -- Called 400<BR>> -- Call accepted by 192.168.1.33 (format ulaw)<BR>>
-- Format for call is ulaw<BR>> -- IAX2/400-13689 is ringing<BR>> -- IAX2/400-13689 answered IAX2/200-11946<BR>> -- Channel 'IAX2/200-11946' ready to transfer<BR>> -- Channel 'IAX2/400-13689' ready to transfer<BR>> -- Releasing IAX2/400-13689 and IAX2/200-11946<BR><BR>Now that we have simplified the environment, eliminated the AGI, and have some console output, we can see the problem.<BR><BR>Your Asterisk server is optimizing itself out of the path so IAX2/400 and IAX2/200 are talking directly to each other.<BR><BR>> But the communication is still up, we hear each other :( .<BR><BR>Packets are being exchanged directly between the two end points.<BR><BR>Your Asterisk server is no longer in control of the call and cannot hangup the call. If you wish to retain control, you need to disable transfer in iax.conf. Gee, who knew?
It would be nice if Asterisk would warn you before it optimized itself out and there was a timer (absolute or S(x)) pending.<BR><BR>> I tried the S option and the L one, it stops the call, it just bip in the callee and the call is terminated. Here is how i used it : exten => 777,1,Dial(IAX2/400,S(10))<BR><BR>Please look at the dial command documentation. The second parameter is the timeout, the third is the options.<BR><BR>-- Thanks in advance,<BR>-------------------------------------------------------------------------<BR>Steve Edwards <A href="mailto:sedwards@sedwards.com" ymailto="mailto:sedwards@sedwards.com">sedwards@sedwards.com</A> Voice: +1-760-468-3867 PST<BR>Newline Fax: +1-760-731-3000</DIV></DIV></div><br>
</body></html>