Hello,<br><br>&nbsp; I want that after client and queue member call would be established, cmd queue runs some &#39;procedures&#39; . So I am using cmd Queue option &#39;gosub&#39;. This is my example of ael :<br><br>context QUEUE {<br>
&nbsp;&nbsp;&nbsp; _X. =&gt; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Ringing();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Wait(4);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Answer();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Queue(${Queue},wr,,,60,,,check-record);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Hangup();<br>&nbsp;&nbsp;&nbsp; };<br>};<br clear="all"><br>macro check-record() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set(MEMBERNUMBER=${CUT(MEMBERINTERFACE,@,1)});<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set(MEMBERNUMBER=${CUT(MEMBERNUMBER,/,2)});<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>};<br><br>Everything works normal, but when the client&#39;s and queue call establishes , I get this WARNING:<br><br>&nbsp;&nbsp;&nbsp; -- Local/123@cc-out-da9a;1 answered SIP/xxx.xxx.xx-12d132d0<br>
[Dec 17 20:52:12] WARNING[3849]: pbx.c:3656 __ast_pbx_run: SIP/sip.call.lt-12d132d0 already has PBX structure??<br>&nbsp; == Starting SIP/sip.call.lt-12d132d0 at check-record,s,0 failed so falling back to exten &#39;s&#39;<br>
&nbsp;&nbsp;&nbsp; -- Executing [s@check-record:1] Set(&quot;SIP/sip.call.lt-12d132d0&quot;, &quot;MEMBERNUMBER=Local/123&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@check-record:2] Set(&quot;SIP/sip.call.lt-12d132d0&quot;, &quot;MEMBERNUMBER=123&quot;) in new stack<br>
<br>What I&#39;m missing? Something wrong with ael syntax/structure ?<br><br>Thanks in advance<br><br>-- <br>Pagarbiai &nbsp;/ Best Regards,<br>Giedrius Augys<br>