Hello,<br><br> I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael :<br><br>context QUEUE {<br>
_X. => {<br> Ringing();<br> Wait(4);<br> Answer();<br> Queue(${Queue},wr,,,60,,,check-record);<br> Hangup();<br> };<br>};<br clear="all"><br>macro check-record() {<br> Set(MEMBERNUMBER=${CUT(MEMBERINTERFACE,@,1)});<br>
Set(MEMBERNUMBER=${CUT(MEMBERNUMBER,/,2)});<br> return;<br>};<br><br>Everything works normal, but when the client's and queue call establishes , I get this WARNING:<br><br> -- 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> == Starting SIP/sip.call.lt-12d132d0 at check-record,s,0 failed so falling back to exten 's'<br>
-- Executing [s@check-record:1] Set("SIP/sip.call.lt-12d132d0", "MEMBERNUMBER=Local/123") in new stack<br> -- Executing [s@check-record:2] Set("SIP/sip.call.lt-12d132d0", "MEMBERNUMBER=123") in new stack<br>
<br>What I'm missing? Something wrong with ael syntax/structure ?<br><br>Thanks in advance<br><br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br>