Hello,<br><br>I&#39;m not understanding how to use GOSUB_RESULT in U() option from Dial app (I&#39;m using 1.6.1)<br>My extensions.ael is :<br><br>context mylocal {<br>        2 =&gt; {<br>                Dial(SIP/7530,,U(mynotify));<br>
                HangUp();<br>        };<br>        3 =&gt; {<br>
                Dial(SIP/7531);<br>
                HangUp();<br>
        };<br>};<br><br>macro mynotify () {<br>        GOSUB_RESULT=ABORT;<br>};<br><br><br>I thought that depending on value written into GOSUB_RESULT, call would either abort or continue as usual.<br>In my experience, call is going on as if I haven&#39;t set anything in mynotify() routine.<br>
(Ultimately, I would also like to use GOTO result code).<br><br>Am I missing something ?<br><br>Cheers<br><br>PS: As a reminder, here is an extract of Dial online doc :<br><br>Online doc says :<br>
    U(x[^arg]) - Execute via Gosub the routine &#39;x&#39; for the *called* channel before connecting<br>
           to the calling channel. Arguments can be specified to the Gosub<br>
           using &#39;^&#39; as a delimiter. The Gosub routine can set the variable<br>
           GOSUB_RESULT to specify the following actions after the Gosub returns.<br>
           * ABORT        Hangup both legs of the call.<br>
           * CONGESTION   Behave as if line congestion was encountered.<br>
           * BUSY         Behave as if a busy signal was encountered.<br>
           * CONTINUE     Hangup the called party and allow the calling party<br>
                          to continue dialplan execution at the next priority.<br>
           * GOTO:&lt;context&gt;^&lt;exten&gt;^&lt;priority&gt; - Transfer the call to the<br>
                          specified priority. Optionally, an extension, or<br>
                          extension and priority can be specified.<br>
           You cannot use any additional action post answer options in conjunction<br>
           with this option. Also, pbx services are not run on the peer (called) channel,<br>
           so you will not be able to set timeouts via the TIMEOUT() function in this routine.<br>