Has any one used this? U(x[^arg[^...]]): x - Name of the subroutine to execute via Gosub arg - Arguments for the Gosub routine Execute via Gosub the routine <x> for the *called* channel before connecting to the calling channel. Arguments can be specified to the Gosub using '^' as a delimiter. The Gosub routine can set the variable ${GO SUB_RESULT} to specify the following actions after the Gosub returns. ${GOSUB_RESULT}: ABORT: Hangup both legs of the call. CONGESTION: Behave as if line congestion was encountered. BUSY: Behave as if a busy signal was encountered. CONTINUE: Hangup the called party and allow the calling party to continue dialplan execution at the next priority. GOTO:<context>^<exten>^<priority>: Transfer the call to the specified priority. Optionally, an extension, or extension and priority can be specified. NOTE: You cannot use any additional action post answer options in conjunction with this option. Also, pbx services are not run on the peer (called) channel, so you will not be able to set timeouts via the TIMEOUT() function in this routine. Thanks -- Vardan Harutyunyan, Senior System Administrator Enterprise Incubator Foundation 123 Hovsep Emin Street, Yerevan 0051, Republic of Armenia Tel: + 374 10 219735 Fax: + 374 10 219777 E-mail: info at eif.am www.eif-it.com
Hello as I understand, nobody not used this option? -- Vardan Harutyunyan, Senior System Administrator Enterprise Incubator Foundation 123 Hovsep Emin Street, Yerevan 0051, Republic of Armenia Tel: + 374 10 219735 Fax: + 374 10 219777 E-mail: info at eif.am www.eif-it.com Vardan wrote:> Has any one used this? > U(x[^arg[^...]]): > x - Name of the subroutine to execute via Gosub > arg - Arguments for the Gosub routine > Execute via Gosub the routine<x> for the *called* channel before > connecting to the calling channel. Arguments can be specified to > the Gosub > using '^' as a delimiter. The Gosub routine can set the variable ${GO > SUB_RESULT} to specify the following actions after the Gosub returns. > ${GOSUB_RESULT}: > ABORT: Hangup both legs of the call. > CONGESTION: Behave as if line congestion was > encountered. > BUSY: Behave as if a busy signal was encountered. > CONTINUE: Hangup the called party and allow the > calling party to continue dialplan execution at the next > priority. > GOTO:<context>^<exten>^<priority>: Transfer the call > to the specified priority. Optionally, an extension, or > extension > and priority can be specified. > NOTE: You cannot use any additional action post answer options in > conjunction with this option. Also, pbx services are not run on the > peer > (called) channel, so you will not be able to set timeouts via the > TIMEOUT() > function in this routine. > > > Thanks
Philipp von Klitzing
2010-May-19 17:20 UTC
[asterisk-users] About option U in Dial Ast version 1.6.2
Hi!> as I understand, nobody not used this option?Would you like everyone on this list to give you an answer? ;-> If you have a _real_ question about the U option of Dial(), then post it, and someone here might or might not have an answer. Philipp
Vardan Harutyunyan
2010-May-19 17:50 UTC
[asterisk-users] About option U in Dial Ast version 1.6.2
OK I will try to explain my problems, sorry for my English. So, I want to indicate in dial plan, that the dialed channel is connectted. For example(extensions.conf): exten = s,1,Dial(ToSomeOne) exten = s,n,Hangup In this example, you can know about that the channel is connected after if hangup. So, if you do this: exten = s,1,Dial(ToSomeOne,,M(macros)) exten = s,n,Hangup [macro-macros] exten = s,1,Noop(Call conected) After Noop in macros, the dial plan is do nothing. This is a work. If I want make this using AEL (Asterisk 1.6.2), the macro is not working. While how we know, macro in AEL is changed to gosub. I can continue use the macros, that I have make in extensions.conf, but I dont want. So, in Dial application in asterisk 1.6.2 is now new option U. It the same, as M, but used gosub meanings. But he dont work same like M. Can any body help me to understand how this work. Thanks -- Vardan Harutyunyan, Senior System Administrator Enterprise Incubator Foundation 123 Hovsep Emin Street, Yerevan 0051, Republic of Armenia Tel: + 374 10 219735 Fax: + 374 10 219777 E-mail: info at eif.am www.eif-it.com Philipp von Klitzing wrote:> Hi! > >> as I understand, nobody not used this option? > > Would you like everyone on this list to give you an answer? ;-> > > If you have a _real_ question about the U option of Dial(), then post it, > and someone here might or might not have an answer. > > Philipp > >