<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 2, 2013 at 12:57 PM, Mitch Claborn <span dir="ltr"><<a href="mailto:mitch_ml@claborn.net" target="_blank">mitch_ml@claborn.net</a>></span> wrote:<br>
<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 text="#000000" bgcolor="#FFFFFF">
Asterisk 11.1.0<br>
<br>
I'm trying to use the "b" subroutine of the Dial application so that
I can do some stuff with our internal applications that need to have
access to the called channel information. I can see that the
subroutine is being executed, but the arguments I pass don't see to
make it to the subroutine.<br>
<br>
[callmenow]<br>
exten => s,1,NoOp(callmenow: Queue without answer)<br>
same =>n,Queue(sales,tc)<br>
<br>
[dial-to-customer]<br>
exten => s,1,NoOp(to-customer)<br>
same =>n,Wait(1)<br>
same =>n,Playback(custom/callmenow-announce)<br>
same =>n,GoSub(sub-outbound_caller_id,start,1)<br>
same =>n,Dial(${TOLL}/${MMCUSTOMER_NUMBER},,<b>b(dial-to-customer-sub,s,1,${MMCUSTOMER_NUMBER},${MEMBERINTERFACE},${MEMBERNAME})</b>) <br></div></blockquote><div><br></div><div style>Use a '^' to delineate arguments pass to subroutines. This is actually true for the U option as well. See:</div>
<div style><br></div><div style><a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers">https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers</a></div><div style><br></div><div style>And:</div><div style>
<br></div><div style><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial">https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial</a> </div></div><div><br></div>-- <br><div dir="ltr">
<div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div>
</div></div>