<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>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 exten=> 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> </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> </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 <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, 19h 27min 38s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet :</SPAN></B> Re: [asterisk-users] Re : Controlling calls<BR></FONT><BR>On Mon, 7 Jun 2010, Adil Zaaraoui wrote:<BR><BR>> Hello Steve,<BR>> <BR>> Thanks again for the effort.<BR>> I tried your dialplan like this in my extention:<BR>> <BR>> exten=> 777,1, Goto(absolute-timeout-test,777,1)<BR>> [absolute-timeout-test]<BR>> exten = T,1, verbose(1,[${CONTEXT}:${EXTEN}])<BR>> exten = T,n,
hangup()<BR>> <BR>> exten = h,1, verbose(1,[${CONTEXT}:${EXTEN}])<BR>> exten = h,n, hangup()<BR>> <BR>> exten = 777,1, verbose(1,[${CONTEXT}:${EXTEN}])<BR>> exten = 777,n, set(TIMEOUT(absolute)=10)<BR>> exten = 777,n, dial(IAX2/400)<BR>> exten = 777,n, hangup()<BR>> Then user IAX/200 calls 777, here is my output:<BR>> <BR>>
debian*CLI> set verbose 3<BR>> Verbosity is at least 3<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] Dial("IAX2/200-7016", "IAX2/777|60") in new stack<BR>> [Jun 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 <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>