<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 3:05 PM, Mitch Claborn <span dir="ltr">&lt;<a href="mailto:mitch_ml@claborn.net" target="_blank">mitch_ml@claborn.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 08/02/2013 01:28 PM, Matthew Jordan wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
<br>
On Fri, Aug 2, 2013 at 12:57 PM, Mitch Claborn &lt;<a href="mailto:mitch_ml@claborn.net" target="_blank">mitch_ml@claborn.net</a><br></div><div class="im">
&lt;mailto:<a href="mailto:mitch_ml@claborn.net" target="_blank">mitch_ml@claborn.net</a>&gt;&gt; wrote:<br>
<br>
    Asterisk 11.1.0<br>
<br>
    I&#39;m trying to use the &quot;b&quot; subroutine of the Dial application so that<br>
    I can do some stuff with our internal applications that need to have<br>
    access to the called channel information.  I can see that the<br>
    subroutine is being executed, but the arguments I pass don&#39;t see to<br>
    make it to the subroutine.<br>
<br>
    [callmenow]<br>
    exten =&gt; s,1,NoOp(callmenow: Queue without answer)<br>
       same =&gt;n,Queue(sales,tc)<br>
<br>
    [dial-to-customer]<br>
    exten =&gt; s,1,NoOp(to-customer)<br>
       same =&gt;n,Wait(1)<br>
       same =&gt;n,Playback(custom/callmenow-<u></u>announce)<br>
       same =&gt;n,GoSub(sub-outbound_caller_<u></u>id,start,1)<br>
       same<br></div>
    =&gt;n,Dial(${TOLL}/${MMCUSTOMER_<u></u>NUMBER},,*b(dial-to-customer-<u></u>sub,s,1,${MMCUSTOMER_NUMBER},$<u></u>{MEMBERINTERFACE},${<u></u>MEMBERNAME})*)<div class="im"><br>
<br>
<br>
<br>
Use a &#39;^&#39; to delineate arguments pass to subroutines. This is actually<br>
true for the U option as well. See:<br>
<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers" target="_blank">https://wiki.asterisk.org/<u></u>wiki/display/AST/Pre-Dial+<u></u>Handlers</a><br>
<br>
And:<br>
<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial" target="_blank">https://wiki.asterisk.org/<u></u>wiki/display/AST/Asterisk+11+<u></u>Application_Dial</a><br>
<br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> &amp; <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
<br></div>
--<br>
______________________________<u></u>______________________________<u></u>_________<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/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
<br>
</blockquote>
<br>
That is not working for me either.<br>
<br>
same =&gt;n,Dial(${TOLL}/${MMCUSTOMER_<u></u>NUMBER},,b(dial-to-customer-<u></u>sub^s^1^fred^$george^$arrrgh)) <br></blockquote><div><br></div><div>You are missing a set of parentheses in your invocation:<br>same =&gt;n,Dial(${TOLL}/${MMCUSTOMER_NUMBER},,b(dial-to-customer-sub^s^1(fred^$george^$arrrgh))) <br>
</div><div><br>See:<br><a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers">https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers</a><br><br></div><div>Richard<br></div><div> <br></div></div><br></div>
</div>