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

Michael Ricordeau michael.ricordeau at gmail.com
Fri Aug 5 02:30:37 MSD 2011


Just tested with digit_action_set_realm and doesnt work.

If I set bind_digit_action and presses '00' before doing the bridge it works.

During the bridge, doesn't work and after the bridge works again.


Here is a pastebin : http://pastebin.freeswitch.org/16989


I found some difference in FS logs
 
For outbound eventsocket, we have :
2011-08-05 01:26:07.403250 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF 0:800
2011-08-05 01:26:07.403250 [DEBUG] switch_ivr_bridge.c:391 Send signal sofia/internal/sip:1001 at 81.220.86.183:59445 [BREAK]
2011-08-05 01:26:07.423252 [DEBUG] switch_rtp.c:2328 Send start packet for [0] ts=3214267546 dur=160/160/800 seq=11501
2011-08-05 01:26:07.463253 [DEBUG] switch_rtp.c:2264 Send middle packet for [0] ts=3214267546 dur=320/320/800 seq=11502
2011-08-05 01:26:07.503242 [DEBUG] switch_rtp.c:2264 Send middle packet for [0] ts=3214267546 dur=480/480/800 seq=11503
2011-08-05 01:26:07.543244 [DEBUG] switch_rtp.c:2264 Send middle packet for [0] ts=3214267546 dur=640/640/800 seq=11504
2011-08-05 01:26:07.583245 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF 0:800
 
 
And for XML Dialplan :
2011-08-05 01:26:51.053768 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF 0:800
2011-08-05 01:26:51.553793 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF 0:800
2011-08-05 01:26:51.553793 [DEBUG] mod_dptools.c:151 sofia/internal/1000 at 46.102.242.62 Digit match binding [exec:log][NOTICE TEST]



Le Thu, 4 Aug 2011 22:39:52 +0100,
Steven Ayre <steveayre at gmail.com> a écrit :

> Try using digit_action_set_realm to set the current realm to test before the bridge:
> 
> > sendmsg
> > call-command: execute
> > execute-app-name: digit_action_realm_set
> > execute-app-arg: test
> 
> Steve on iPhone
> 
> 
> On 4 Aug 2011, at 20:24, 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, 2011
More information about the FreeSWITCH-users mailing list