[asterisk-users] Dial application "b" subroutine arguments not passing?

Richard Mudgett rmudgett at digium.com
Tue Aug 6 12:48:22 CDT 2013


On Fri, Aug 2, 2013 at 3:05 PM, Mitch Claborn <mitch_ml at claborn.net> wrote:

> On 08/02/2013 01:28 PM, Matthew Jordan wrote:
>
>>
>> On Fri, Aug 2, 2013 at 12:57 PM, Mitch Claborn <mitch_ml at claborn.net
>> <mailto:mitch_ml at claborn.net>> wrote:
>>
>>     Asterisk 11.1.0
>>
>>     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.
>>
>>     [callmenow]
>>     exten => s,1,NoOp(callmenow: Queue without answer)
>>        same =>n,Queue(sales,tc)
>>
>>     [dial-to-customer]
>>     exten => s,1,NoOp(to-customer)
>>        same =>n,Wait(1)
>>        same =>n,Playback(custom/callmenow-**announce)
>>        same =>n,GoSub(sub-outbound_caller_**id,start,1)
>>        same
>>     =>n,Dial(${TOLL}/${MMCUSTOMER_**NUMBER},,*b(dial-to-customer-**
>> sub,s,1,${MMCUSTOMER_NUMBER},$**{MEMBERINTERFACE},${**MEMBERNAME})*)
>>
>>
>>
>>
>> Use a '^' to delineate arguments pass to subroutines. This is actually
>> true for the U option as well. See:
>>
>> https://wiki.asterisk.org/**wiki/display/AST/Pre-Dial+**Handlers<https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers>
>>
>> And:
>>
>> https://wiki.asterisk.org/**wiki/display/AST/Asterisk+11+**
>> Application_Dial<https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial>
>>
>> --
>> Matthew Jordan
>> Digium, Inc. | Engineering Manager
>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
>> Check us out at: http://digium.com & http://asterisk.org
>>
>>
>> --
>> ______________________________**______________________________**_________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>                 http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>     http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>>
>>
> That is not working for me either.
>
> same =>n,Dial(${TOLL}/${MMCUSTOMER_**NUMBER},,b(dial-to-customer-**sub^s^1^fred^$george^$arrrgh))
>
>

You are missing a set of parentheses in your invocation:
same
=>n,Dial(${TOLL}/${MMCUSTOMER_NUMBER},,b(dial-to-customer-sub^s^1(fred^$george^$arrrgh)))


See:
https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130806/039576b7/attachment.htm>


More information about the asterisk-users mailing list