[Freeswitch-users] outboundsocket mode, bridge and bind_digit_action doesn't work

Steven Ayre steveayre at gmail.com
Sat Aug 6 00:31:44 MSD 2011


Shouldn't be, they're applications so executed one at a time.

Steve on iPhone

On 5 Aug 2011, at 20:47, Michael Ricordeau <michael.ricordeau at gmail.com> wrote:

> Well so why bridge in outbound eventsocket is clearing BDA and not in dialplan ?
> (just for my knowledge)
> 
> Is it because dialplan is "preprocessed" before executing commands ?
> 
> 
> 
> 
> 
> Le Fri, 5 Aug 2011 21:31:05 +0200,
> Michael Ricordeau <michael.ricordeau at gmail.com> a écrit :
> 
>> Hi Michael,
>> 
>> it works with the BDA set after bridge !
>> 
>> Thanks for the quick and perfect answer =)
>> 
>> See you at Cluecon next week !
>> 
>> 
>> Michael
>> 
>> 
>> 
>> Le Fri, 5 Aug 2011 11:31:03 -0700,
>> Michael Collins <msc at freeswitch.org> a écrit :
>> 
>>> Michael,
>>> 
>>> I think the bridge app is clearing things out. I got it to work by bridging
>>> first and then doing the BDA stuff:
>>> 
>>> connect
>>> 
>>> sendmsg
>>> call-command: execute
>>> execute-app-name: answer
>>> 
>>> sendmsg
>>> call-command: execute
>>> execute-app-name: bridge
>>> execute-app-arg: user/1007
>>> 
>>> sendmsg
>>> call-command: execute
>>> execute-app-name: bind_digit_action
>>> execute-app-arg: test,*0,exec:log,NOTICE TEST
>>> 
>>> sendmsg
>>> call-command: execute
>>> execute-app-name: digit_action_set_realm
>>> execute-app-arg: test
>>> 
>>> 
>>> Let me know if that works for you.
>>> -MC
>>> 
>>> On Thu, Aug 4, 2011 at 12:24 PM, Michael Ricordeau <
>>> michael.ricordeau at gmail.com> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I think I'm doing something wrong but I don't find a way to fix my problem
>>>> :
>>>> 
>>>> when executing bind_digit_action in an outbound socket and doing a bridge,
>>>> digit action binding is not executed (no log in Freeswitch)
>>>> 
>>>> when doing same thing in XML dialplan it works (I found log in Freeswitch).
>>>> 
>>>> I have checked logs and in both cases, digit realm is set :
>>>> Digit parser DPTOOLS: binding 00/test/0 callback: 0xb6ba1b00 data:
>>>> 0x82eafe8
>>>> 
>>>> 
>>>> 
>>>> For outbound socket, here what I'm doing with netcat :
>>>> 
>>>> 
>>>> nc -l -v 8084
>>>> 
>>>> 
>>>> and the commands I passed to outbound socket :
>>>> 
>>>> 
>>>> connect
>>>> 
>>>> divert_events on
>>>> 
>>>> sendmsg
>>>> call-command: execute
>>>> execute-app-name: answer
>>>> 
>>>> sendmsg
>>>> call-command: execute
>>>> execute-app-name: bind_digit_action
>>>> execute-app-arg: test,00,exec:log,NOTICE TEST
>>>> 
>>>> sendmsg
>>>> call-command: execute
>>>> execute-app-name: bridge
>>>> execute-app-arg: user/1000
>>>> 
>>>> 
>>>> 
>>>> 
>>>> With XML Dialplan below, same binding/bridge works !!!!! :
>>>> 
>>>>   <extension name="test">
>>>>       <condition field="destination_number" expression="^0000$">
>>>>           <action application="answer"/>
>>>>           <action application="bind_digit_action"
>>>> data="test,00,exec:log,NOTICE TEST"/>
>>>>           <action application="bridge" data="user/1000"/>
>>>>       </condition>
>>>>   </extension>
>>>> 
>>>> 
>>>> 
>>>> Expected result is when A leg presses "00", a log notice "TEST" is printed
>>>> in the logger but only works with XML dialplan.
>>>> In outbound socket mode, I can hear the digits pressed on B leg but binding
>>>> is not executed (no log notice "TEST")
>>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> 
>>>> Michaël
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Join us at ClueCon 2011, Aug 9-11, Chicago
>>>> http://www.cluecon.com 877-7-4ACLUE
>>>> 
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>> 
> 
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list