Hi Steve, We are logged using 200 account, it exists in IAX.conf, so user 200 calls 777, is that right i think? We did not write dial(IAX2/777|60) but i wrote what you wrote exten=> 777,1, Goto(absolute-timeout-test,777,1) and we got the the result as shown in the previous post. User 200, and 400 are registred and they exist in iax.conf, so user 200 call 777, is that right?
I catched ths S option, but i think this should be in my dialplan, not in my script, because it goes with Dial application. 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. Cheers, Adil ________________________________ De : Steve Edwards <asterisk....@sedwards.com> À : Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Envoyé le : Lun 7 juin 2010, 19h 27min 38s Objet : Re: [asterisk-users] Re : Controlling calls On Mon, 7 Jun 2010, Adil Zaaraoui wrote: > Hello Steve, > > Thanks again for the effort. > I tried your dialplan like this in my extention: > > exten=> 777,1, Goto(absolute-timeout-test,777,1) > [absolute-timeout-test] > exten = T,1, verbose(1,[${CONTEXT}:${EXTEN}]) > exten = T,n, hangup() > > exten = h,1, verbose(1,[${CONTEXT}:${EXTEN}]) > exten = h,n, hangup() > > exten = 777,1, verbose(1,[${CONTEXT}:${EXTEN}]) > exten = 777,n, set(TIMEOUT(absolute)=10) > exten = 777,n, dial(IAX2/400) > exten = 777,n, hangup() > Then user IAX/200 calls 777, here is my output: > > debian*CLI> set verbose 3 > Verbosity is at least 3 > -- Accepting AUTHENTICATED call from 192.168.1.34: > > requested format = ulaw, > > requested prefs = (), > > actual format = ulaw, > > host prefs = (ulaw|alaw), > > priority = mine > -- Executing [...@iax:1] Dial("IAX2/200-7016", "IAX2/777|60") in new stack > [Jun 7 18:52:16] WARNING[4264]: chan_iax2.c:3034 create_addr: No such host: > 777 I wrote "goto(absolute-timeout-test,777,1)" not "dial(IAX2/777|60)" You don't have a peer named 777 in iax.conf do you? The 777 has no special meaning, I just used it because you used it in your first post. Did you catch the note about the dial "S" option in my previous post? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users