<br><br><div class="gmail_quote">2008/12/17 Mark Michelson <span dir="ltr">&lt;<a href="mailto:mmichelson@digium.com">mmichelson@digium.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Giedrius Augys wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; &nbsp; I want that after client and queue member call would be established,<br>
&gt; cmd queue runs some &#39;procedures&#39; . So I am using cmd Queue option<br>
&gt; &#39;gosub&#39;. This is my example of ael :<br>
&gt;<br>
&gt; context QUEUE {<br>
&gt; &nbsp; &nbsp; _X. =&gt; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Ringing();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Wait(4);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Answer();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Queue(${Queue},wr,,,60,,,check-record);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hangup();<br>
&gt; &nbsp; &nbsp; };<br>
&gt; };<br>
&gt;<br>
&gt; macro check-record() {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Set(MEMBERNUMBER=${CUT(MEMBERINTERFACE,@,1)});<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Set(MEMBERNUMBER=${CUT(MEMBERNUMBER,/,2)});<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>
&gt; };<br>
&gt;<br>
&gt; Everything works normal, but when the client&#39;s and queue call<br>
&gt; establishes , I get this WARNING:<br>
&gt;<br>
&gt; &nbsp; &nbsp; -- Local/123@cc-out-da9a;1 answered SIP/xxx.xxx.xx-12d132d0<br>
&gt; [Dec 17 20:52:12] WARNING[3849]: pbx.c:3656 __ast_pbx_run:<br>
&gt; SIP/sip.call.lt-12d132d0 already has PBX structure??<br>
&gt; &nbsp; == Starting SIP/sip.call.lt-12d132d0 at check-record,s,0 failed so<br>
&gt; falling back to exten &#39;s&#39;<br>
&gt; &nbsp; &nbsp; -- Executing [s@check-record:1] Set(&quot;SIP/sip.call.lt-12d132d0&quot;,<br>
&gt; &quot;MEMBERNUMBER=Local/123&quot;) in new stack<br>
&gt; &nbsp; &nbsp; -- Executing [s@check-record:2] Set(&quot;SIP/sip.call.lt-12d132d0&quot;,<br>
&gt; &quot;MEMBERNUMBER=123&quot;) in new stack<br>
&gt;<br>
&gt; What I&#39;m missing? Something wrong with ael syntax/structure ?<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt;<br>
&gt; --<br>
&gt; Pagarbiai &nbsp;/ Best Regards,<br>
&gt; Giedrius Augys<br>
&gt;<br>
<br>
</div></div>This is a bug you are experiencing, which I fixed recently in a series of<br>
commits. Assuming you are using a 1.6 tag, the next build should have this<br>
problem fixed.<br>
<br>
Mark Michelson<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>Hi,<br>&nbsp; yes I&#39;m using 1.6.0.1 version.<br clear="all"><br>-- <br>Pagarbiai &nbsp;/ Best Regards,<br>Giedrius Augys<br>