<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>&nbsp;</DIV>
<DIV>We are logged using 200 account, it exists in IAX.conf, so user 200 calls 777, is that right i think?</DIV>
<DIV>We did not write dial(IAX2/777|60) but i wrote what you wrote&nbsp; exten=&gt; 777,1, Goto(absolute-timeout-test,777,1)<BR>and we got the the result as shown in the previous post.</DIV>
<DIV>User 200, and 400 are registred and they exist in iax.conf, so user 200 call 777, is that right?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I catched ths S option, but i think this should be in my dialplan, not in my script, because it goes with Dial application.</DIV>
<DIV>But the S i can know it after i get minutes from my DB for the caller, is there a way to save it in the script as a variable and get it in the Dial extension.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers, Adil<BR></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 &lt;asterisk.org@sedwards.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé le :</SPAN></B> Lun 7 juin 2010, 19h 27min 38s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet&nbsp;:</SPAN></B> Re: [asterisk-users] Re : Controlling calls<BR></FONT><BR>On Mon, 7 Jun 2010, Adil Zaaraoui wrote:<BR><BR>&gt; Hello Steve,<BR>&gt; &nbsp;<BR>&gt; Thanks again for the effort.<BR>&gt; I tried your dialplan like this in my extention:<BR>&gt; &nbsp;<BR>&gt; exten=&gt; 777,1, Goto(absolute-timeout-test,777,1)<BR>&gt; [absolute-timeout-test]<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = T,1,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verbose(1,[${CONTEXT}:${EXTEN}])<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = T,n,&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hangup()<BR>&gt; <BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = h,1,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verbose(1,[${CONTEXT}:${EXTEN}])<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = h,n,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hangup()<BR>&gt; <BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = 777,1,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verbose(1,[${CONTEXT}:${EXTEN}])<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = 777,n,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set(TIMEOUT(absolute)=10)<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = 777,n,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dial(IAX2/400)<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; exten = 777,n,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hangup()<BR>&gt; Then user IAX/200 calls 777, here is my output:<BR>&gt; &nbsp;<BR>&gt;
 debian*CLI&gt; set verbose 3<BR>&gt; Verbosity is at least 3<BR>&gt; &nbsp;&nbsp;&nbsp; -- Accepting AUTHENTICATED call from 192.168.1.34:<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; requested format = ulaw,<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; requested prefs = (),<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; actual format = ulaw,<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; host prefs = (ulaw|alaw),<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; priority = mine<BR>&gt; &nbsp;&nbsp;&nbsp; -- Executing [777@IAX:1] Dial("IAX2/200-7016", "IAX2/777|60") in new stack<BR>&gt; [Jun&nbsp; 7 18:52:16] WARNING[4264]: chan_iax2.c:3034 create_addr: No such host: 777<BR><BR>I wrote "goto(absolute-timeout-test,777,1)" not "dial(IAX2/777|60)"<BR><BR>You don't have a peer named 777 in iax.conf do you?<BR><BR>The 777 has no special meaning, I just used it because you used it in your first post.<BR><BR>Did you catch the note about the
 dial "S" option in my previous post?<BR><BR>-- Thanks in advance,<BR>-------------------------------------------------------------------------<BR>Steve Edwards&nbsp; &nbsp; &nbsp; <A href="mailto:sedwards@sedwards.com" ymailto="mailto:sedwards@sedwards.com">sedwards@sedwards.com</A>&nbsp; &nbsp; &nbsp; Voice: +1-760-468-3867 PST<BR>Newline&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: +1-760-731-3000</DIV></DIV></div><br>




      </body></html>