Michael,<div><br></div><div>I think the bridge app is clearing things out. I got it to work by bridging first and then doing the BDA stuff:</div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">connect</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">sendmsg</font></div><div><font class="Apple-style-span" face="'courier new', monospace">call-command: execute</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">execute-app-name: answer</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">sendmsg</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">call-command: execute</font></div><div><font class="Apple-style-span" face="'courier new', monospace">execute-app-name: bridge</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">execute-app-arg: user/1007</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">sendmsg</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">call-command: execute</font></div><div><font class="Apple-style-span" face="'courier new', monospace">execute-app-name: bind_digit_action</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">execute-app-arg: test,*0,exec:log,NOTICE TEST</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">sendmsg</font></div><div><font class="Apple-style-span" face="'courier new', monospace">call-command: execute</font></div><div><font class="Apple-style-span" face="'courier new', monospace">execute-app-name: digit_action_set_realm</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">execute-app-arg: test</font></div><div><br></div><div><br></div><div>Let me know if that works for you.</div><div>-MC</div><br><div class="gmail_quote">
On Thu, Aug 4, 2011 at 12:24 PM, Michael Ricordeau <span dir="ltr"><<a href="mailto:michael.ricordeau@gmail.com">michael.ricordeau@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I think I'm doing something wrong but I don't find a way to fix my problem :<br>
<br>
when executing bind_digit_action in an outbound socket and doing a bridge,<br>
digit action binding is not executed (no log in Freeswitch)<br>
<br>
when doing same thing in XML dialplan it works (I found log in Freeswitch).<br>
<br>
I have checked logs and in both cases, digit realm is set :<br>
Digit parser DPTOOLS: binding 00/test/0 callback: 0xb6ba1b00 data: 0x82eafe8<br>
<br>
<br>
<br>
For outbound socket, here what I'm doing with netcat :<br>
<br>
<br>
nc -l -v 8084<br>
<br>
<br>
and the commands I passed to outbound socket :<br>
<br>
<br>
connect<br>
<br>
divert_events on<br>
<br>
sendmsg<br>
call-command: execute<br>
execute-app-name: answer<br>
<br>
sendmsg<br>
call-command: execute<br>
execute-app-name: bind_digit_action<br>
execute-app-arg: test,00,exec:log,NOTICE TEST<br>
<br>
sendmsg<br>
call-command: execute<br>
execute-app-name: bridge<br>
execute-app-arg: user/1000<br>
<br>
<br>
<br>
<br>
With XML Dialplan below, same binding/bridge works !!!!! :<br>
<br>
<extension name="test"><br>
<condition field="destination_number" expression="^0000$"><br>
<action application="answer"/><br>
<action application="bind_digit_action" data="test,00,exec:log,NOTICE TEST"/><br>
<action application="bridge" data="user/1000"/><br>
</condition><br>
</extension><br>
<br>
<br>
<br>
Expected result is when A leg presses "00", a log notice "TEST" is printed in the logger but only works with XML dialplan.<br>
In outbound socket mode, I can hear the digits pressed on B leg but binding is not executed (no log notice "TEST")<br>
<br>
<br>
Thanks<br>
<br>
<br>
Michaël<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>