<html><head></head><body bgcolor="#FFFFFF"><div>Try using digit_action_set_realm to set the current realm to test before the bridge:</div><div><br></div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">sendmsg<br>call-command: execute<br>execute-app-name: digit_action_realm_set<br></font></div></blockquote><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">execute-app-arg:&nbsp;test</font></div></blockquote><div><br>Steve on iPhone</div><div><br></div><div><br>On 4 Aug 2011, at 20:24, Michael Ricordeau &lt;<a href="mailto:michael.ricordeau@gmail.com">michael.ricordeau@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><span>Hi,</span><br><span></span><br><span>I think I'm doing something wrong but I don't find a way to fix my problem :</span><br><span></span><br><span>when executing bind_digit_action in an outbound socket and doing a bridge,</span><br><span>digit action binding is not executed (no log in Freeswitch)</span><br><span></span><br><span>when doing same thing in XML dialplan it works (I found log in Freeswitch).</span><br><span></span><br><span>I have checked logs and in both cases, digit realm is set :</span><br><span>Digit parser DPTOOLS: binding 00/test/0 callback: 0xb6ba1b00 data: 0x82eafe8</span><br><span></span><br><span></span><br><span></span><br><span>For outbound socket, here what I'm doing with netcat :</span><br><span></span><br><span></span><br><span>nc -l -v 8084</span><br><span></span><br><span></span><br><span>and the commands I passed to outbound socket :</span><br><span></span><br><span></span><br><span>connect</span><br><span></span><br><span>divert_events on</span><br><span></span><br><span>sendmsg</span><br><span>call-command: execute</span><br><span>execute-app-name: answer</span><br><span></span><br><span>sendmsg</span><br><span>call-command: execute</span><br><span>execute-app-name: bind_digit_action</span><br><span>execute-app-arg: test,00,exec:log,NOTICE TEST</span><br><span></span><br><span>sendmsg</span><br><span>call-command: execute</span><br><span>execute-app-name: bridge</span><br><span>execute-app-arg: user/1000</span><br><span></span><br><span></span><br><span></span><br><span></span><br><span>With XML Dialplan below, same binding/bridge works !!!!! :</span><br><span></span><br><span> &nbsp;&nbsp;&nbsp;&lt;extension name="test"&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition field="destination_number" expression="^0000$"&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="answer"/&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="bind_digit_action" data="test,00,exec:log,NOTICE TEST"/&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="bridge" data="user/1000"/&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;</span><br><span> &nbsp;&nbsp;&nbsp;&lt;/extension&gt;</span><br><span></span><br><span></span><br><span></span><br><span>Expected result is when A leg presses "00", a log notice "TEST" is printed in the logger but only works with XML dialplan.</span><br><span>In outbound socket mode, I can hear the digits pressed on B leg but binding is not executed (no log notice "TEST")</span><br><span></span><br><span></span><br><span>Thanks</span><br><span></span><br><span></span><br><span>MichaĆ«l</span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span>_______________________________________________</span><br><span>Join us at ClueCon 2011, Aug 9-11, Chicago</span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE</span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>