Can you please explain what you are trying to do? What I&#39;ve perceived from this thread is that you want to put call on hold (passively as in no resources usage) and then on the base of some User&#39;s input from UI proceed with the call accordingly !!<div>
<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 3:33 PM, Yaroslav Panych <span dir="ltr">&lt;<a href="mailto:panych.y@gmail.com">panych.y@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I don&#39;t know much about queues, but if channel enter into queue it<br>
should not change its state. I.e. not answer, no moh, no interacting<br>
with user input(DTMF). Less I use unknown helpers, better my<br>
configuration is.<br>
Second issue which can appear using queues - its async state. User can<br>
issue 2 serial commands, and I should have synchronisation tools. In<br>
dialplan I using UserEvent application - which issues event in AMI,<br>
with given data headers. Queue - is there any possibility to customise<br>
queue join(or like) AMI event? Without patches(I already have made<br>
some patches to core and wrote additional module to make * work as I<br>
require).<br>
<br>
<br>
2011/10/5 Nasir Iqbal &lt;<a href="mailto:nasir@ictinnovations.com">nasir@ictinnovations.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; What about waiting in &quot;queues&quot;?<br>
&gt; Nasir Iqbal<br>
&gt;<br>
&gt; ICT Innovations<br>
&gt; <a href="http://www.ictinnovations.com/" target="_blank">http://www.ictinnovations.com/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Oct 5, 2011 at 1:35 PM, Yaroslav Panych &lt;<a href="mailto:panych.y@gmail.com">panych.y@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello, everyone<br>
&gt;&gt;<br>
&gt;&gt; Here part of my dialplan context<br>
&gt;&gt; [globals]<br>
&gt;&gt; CMD_NOOP=0<br>
&gt;&gt; CMD_DOSTUFF1=1<br>
&gt;&gt; CMD_DOSTUFF2=2<br>
&gt;&gt; CMD_DOSTUFF3=2<br>
&gt;&gt;<br>
&gt;&gt; [blah-context]<br>
&gt;&gt; same =&gt; n,Set(COMMAND=${CMD_NOOP})<br>
&gt;&gt; same =&gt; n,UserEvent(blah-event,CHANNEL:${CHANNEL(name)}<br>
&gt;&gt; same =&gt;<br>
&gt;&gt; n(COMMAND_SWITCH),GoToIf($[&quot;${COMMAND}&quot;=&quot;${CMD_DOSTUFF1}&quot;]?LBL_DO_STUFF1)<br>
&gt;&gt; same =&gt; n,GoToIf($[&quot;${COMMAND}&quot;=&quot;${CMD_DOSTUFF2}&quot;]?LBL_DO_STUFF2)<br>
&gt;&gt; same =&gt; n,GoToIf($[&quot;${COMMAND}&quot;=&quot;${CMD_DOSTUFF3}&quot;]?LBL_DO_STUFF3)<br>
&gt;&gt; same =&gt; n,Wait(0.2)<br>
&gt;&gt; same =&gt; n,GoTo(COMMAND_SWITCH)<br>
&gt;&gt; same =&gt; n,NoOp(--- NOT REACHED ---)<br>
&gt;&gt;<br>
&gt;&gt; UserEvent sends blah-event via AMI to high-level UI, user makes<br>
&gt;&gt; decision and issues some command via Action:SetVar, then dialplan<br>
&gt;&gt; continues to work.<br>
&gt;&gt;<br>
&gt;&gt; The problem is, in dialplan there is an active wait loop, i.e. waiting<br>
&gt;&gt; mechanism which rapidly checks some var(consuming processor resources<br>
&gt;&gt; and flooding logs). Is it possible to create passive waiting loop<br>
&gt;&gt; within current abilities of Asterisk 1.8?<br>
&gt;&gt;<br>
&gt;&gt; regards, Yaroslav<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; _____________________________________________________________________<br>
&gt;&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;&gt;               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;&gt;<br>
&gt;&gt; asterisk-users mailing list<br>
&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></div></blockquote></div><br></div>