<div dir="ltr">On Wed, Dec 19, 2012 at 12:44 PM, Andrew White <span dir="ltr">&lt;<a href="mailto:andrew@computersforall.com.au" target="_blank">andrew@computersforall.com.au</a>&gt;</span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Satish/list,<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Looks like I spoke to soon.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I have the following in my dialplan:<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Dial(${QUEUEEXTS},${RINGTIME},U(queueControl^direct^CONNECTED))<u></u><u></u></span></i></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">And after confirming with a “dialplan show” it was definitely in there, I continued to get this:<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">ERROR[28167]: app_stack.c:420 gosub_exec: Attempt to reach a non-existent destination for gosub: (Context:queueControl, Extension:s, Priority:1)<u></u><u></u></span></i></p>

<p class=""><i><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></i></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I can’t quite work out why it would be trying to s/1 instead of direct/CONNECTED =/.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Any ideas?<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks!</span></p></div></div></blockquote><div style>In your case, direct and CONNECTED have to be arguments and not the extension and priority value respectively. Calling Subroutine from dial will always start execution with extension s and priority 1.</div>
<div style>See the link for more information, Arguments are passed to subroutine <span style="color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13.600000381469727px;line-height:17.31999969482422px">using </span><tt style="color:rgb(51,51,51);font-size:13.600000381469727px;line-height:17.31999969482422px">^</tt><span style="color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13.600000381469727px;line-height:17.31999969482422px"> as a delimiter.</span></div>
<div style><span style="color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13.600000381469727px;line-height:17.31999969482422px"><br></span></div><div style><span style="color:rgb(51,51,51);font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13.600000381469727px;line-height:17.31999969482422px">--Satish Barot</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0cm 0cm">
<p class=""><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> Andrew White
<br>
<b>Sent:</b> Wednesday, 19 December 2012 5:58 PM</span></p><div class="im"><br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
</div><b>Subject:</b> RE: [asterisk-users] Dialplan - working out when users answer<u></u><u></u><p></p>
</div>
</div><div class="im">
<p class=""><u></u> <u></u></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks Satish, fantastic advice. I didn’t even think to look into the dial options – doh!<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks very much,<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Andrew<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">mailto:asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>Satish Barot<br>
<b>Sent:</b> Wednesday, 19 December 2012 4:40 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> Re: [asterisk-users] Dialplan - working out when users answer<u></u><u></u></span></p>
<p class=""><u></u> <u></u></p>
</div><div>
<p class="">On Wed, Dec 19, 2012 at 10:53 AM, Andrew White &lt;<a href="mailto:andrew@computersforall.com.au" target="_blank">andrew@computersforall.com.au</a>&gt; wrote:<u></u><u></u></p><div><div class="h5">
<div>
<div>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="">Hey guys,<u></u><u></u></p>
<p class=""> <u></u><u></u></p>
<p class="">I’ve got a part of my dialplan that dials multiple people:<u></u><u></u></p>
<p class=""> <u></u><u></u></p>
<p class=""><i>exten =&gt; direct,n,Dial(${QUEUEEXTS},${RINGTIME})<br>
<br>
</i>Multiple extensions are in the ${QUEUEEXTS} from an external script – e.g. SIP/100&amp;SIP/101&amp;SIP/105 etc<u></u><u></u></p>
<p class=""> <u></u><u></u></p>
<p class="">This works great, however I want to see if I can find a way to work out (and run an AGI script) when the call is picked up by someone.<u></u><u></u></p>
<p class=""> <u></u><u></u></p>
<p class="">Thanks all!<u></u><u></u></p>
<p class=""> <u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="">Option M or U of Dial application would help you do this.<u></u><u></u></p>
</div>
<div>
<p class=""><a href="https://wiki.asterisk.org/wiki/display/AST/Application_Dial" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Application_Dial</a>.<u></u><u></u></p>
</div>
<div>
<p class=""><u></u> <u></u></p>
</div>
<div>
<p class="">--Satish Barot<u></u><u></u></p>
</div>
</div></div></div>
</div>
</div>

<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><br></blockquote></div><br></div></div>