<p dir="ltr">When I see bda is that really supposed to be DBA? Is it misspelled?<br>
</p>
<div class="gmail_quote">On Jun 2, 2013 5:11 PM, "julien terrasson" <<a href="mailto:julien.terrasson@gmail.com">julien.terrasson@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><br></div>Hi,<br><br></div><div>Either there is something wrong in the way bind_digit_action works, either i'm missing something..<br></div><div>Would be gratefull is somebody can have a look at the issue hereunder. <br>
</div><div><br></div><div>0/ Version :<br><br>FreeSWITCH Version 1.5.2b+git~20130527T075833Z~f3541e00f4 (git f3541e0 2013-05-27 07:58:33Z)<br><br></div>1/ This is what i defined in the default.xml dialplan<br><div><div><br>
<action application="bind_digit_action" data="my_context,*,<span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)">exec:execute_extension,debug_bda</span>,<span style="color:rgb(0,255,0)">self</span>,peer</span>"/><br>
<action application="bind_digit_action" data="my_context,*,<span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)">exec:execute_extension,debug_bda</span>,peer,<span style="color:rgb(0,255,0)">self</span></span>"/><br>
<br></div><div>Where debug_dba simply display the uuid of the session that is calling the extension :<br></div><div><br><extension name="toggle_recording"><br> <condition field="destination_number" expression="^toggle_recording"><br>
<action application="log" data="INFO toggle_recording is called from uuid : ${uuid} !"/><br> </condition><br></extension><br><br>2/ After placing, bridging & answering the call, i get the following uuids :<br>
</div></div><div><br></div><div>caller uuid = 077a67ec-cbc5-11e2-b73b-85c636846b34<br></div><div>called uuid = 07803d02-cbc5-11e2-b750-85c636846b34<br><br></div><div>3/ Then if i test the script :<br><br>Pressing the "*" key on the caller leg, called uuid is display => <span style="color:rgb(0,255,0)">TEST OK</span> (log hereunder)<br>
<br>freeswitch@debian> 2013-06-02 22:43:59.414932 [DEBUG] switch_rtp.c:4908 RTP RECV DTMF *:800<br>2013-06-02 22:43:59.414932 [DEBUG] mod_dptools.c:186 sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Digit match binding [exec:execute_extension][debug_bda]<br>
2013-06-02 22:43:59.414932 [DEBUG] switch_core_session.c:1141 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>2013-06-02 22:43:59.434933 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>
2013-06-02 22:43:59.554961 [DEBUG] switch_core_session.c:1141 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>2013-06-02 22:43:59.574934 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>
2013-06-02 22:43:59.694963 [DEBUG] switch_ivr.c:612 sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> Command Execute playback(local_stream://moh)<br>EXECUTE sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> playback(local_stream://moh)<br>
2013-06-02 22:43:59.694963 [DEBUG] switch_ivr.c:612 sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Command Execute execute_extension(debug_bda)<br>EXECUTE sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> execute_extension(debug_bda)<br>
2013-06-02 22:43:59.694963 [DEBUG] mod_local_stream.c:479 Opening Stream [moh/8000] 8000hz<br>2013-06-02 22:43:59.694963 [DEBUG] switch_ivr_play_say.c:1308 Codec Activated L16@8000hz 1 channels 20ms<br>2013-06-02 22:43:59.694963 [INFO] mod_dialplan_xml.c:558 Processing 1001 <1001>->debug_bda in context default<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->unloop] continue=false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->Local_Extension] continue=false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (FAIL) [Local_Extension] destination_number(debug_bda) =~ /^(1003)$/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->debug_bda] continue=false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (PASS) [debug_bda] destination_number(debug_bda) =~ /^debug_bda/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Action log(INFO debug_bind_digit_action is called from uuid : ${uuid} !)<br>
2013-06-02 22:43:59.694963 [NOTICE] switch_core_session.c:2838 Execute log(INFO debug_bind_digit_action is called from uuid : ${uuid} !)<br>EXECUTE sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> log(INFO debug_bind_digit_action is called from uuid : 07803d02-cbc5-11e2-b750-85c636846b34 !)<br>
<span style="color:rgb(0,255,0)">2013-06-02 22:43:59.694963 [INFO] mod_dptools.c:1539 debug_bind_digit_action is called from uuid : 07803d02-cbc5-11e2-b750-85c636846b34 !<br></span>2013-06-02 22:43:59.714996 [DEBUG] switch_ivr_play_say.c:1694 done playing file local_stream://moh<br>
2013-06-02 22:43:59.714996 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>2013-06-02 22:43:59.714996 [DEBUG] switch_ivr_bridge.c:349 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>
2013-06-02 22:43:59.714996 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>2013-06-02 22:43:59.714996 [DEBUG] switch_ivr_bridge.c:349 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>
<br><br>Pressing the "*" key on the called leg, <span style="color:rgb(255,0,0)">called uuid</span> is display => <span style="color:rgb(255,0,0)">TEST FAILED</span> (log hereunder)<br><br><br>freeswitch@debian> 2013-06-02 22:44:19.754933 [DEBUG] switch_rtp.c:4908 RTP RECV DTMF *:1280<br>
2013-06-02 22:44:19.754933 [DEBUG] switch_channel.c:419 RECV DTMF *:1280<br>2013-06-02 22:44:19.754933 [DEBUG] mod_dptools.c:186 sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Digit match binding [exec:execute_extension][debug_bda]<br>
2013-06-02 22:44:19.754933 [DEBUG] switch_ivr_bridge.c:419 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>2013-06-02 22:44:19.754933 [DEBUG] switch_core_session.c:1141 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>
2013-06-02 22:44:19.774938 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>2013-06-02 22:44:19.894950 [DEBUG] switch_core_session.c:1141 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>
2013-06-02 22:44:19.914960 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>2013-06-02 22:44:20.034916 [DEBUG] switch_ivr.c:612 sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> Command Execute playback(local_stream://moh)<br>
EXECUTE sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> playback(local_stream://moh)<br>2013-06-02 22:44:20.034916 [DEBUG] switch_ivr.c:612 sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Command Execute execute_extension(debug_bda)<br>
EXECUTE sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> execute_extension(debug_bda)<br>2013-06-02 22:44:20.034916 [DEBUG] mod_local_stream.c:479 Opening Stream [moh/8000] 8000hz<br>
2013-06-02 22:44:20.034916 [DEBUG] switch_ivr_play_say.c:1308 Codec Activated L16@8000hz 1 channels 20ms<br>2013-06-02 22:44:20.034916 [INFO] mod_dialplan_xml.c:558 Processing 1001 <1001>->debug_bda in context default<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->unloop] continue=false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->Local_Extension] continue=false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (FAIL) [Local_Extension] destination_number(debug_bda) =~ /^(1003)$/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> parsing [default->debug_bda] continue=false<br>
Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Regex (PASS) [debug_bda] destination_number(debug_bda) =~ /^debug_bda/ break=on-false<br>Dialplan: sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> Action log(INFO debug_bind_digit_action is called from uuid : ${uuid} !)<br>
2013-06-02 22:44:20.034916 [NOTICE] switch_core_session.c:2838 Execute log(INFO debug_bind_digit_action is called from uuid : ${uuid} !)<br>EXECUTE sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> log(INFO debug_bind_digit_action is called from uuid : 07803d02-cbc5-11e2-b750-85c636846b34 !)<br>
<span style="color:rgb(255,0,0)">2013-06-02 22:44:20.034916 [INFO] mod_dptools.c:1539 debug_bind_digit_action is called from uuid : 07803d02-cbc5-11e2-b750-85c636846b34 !<br></span>2013-06-02 22:44:20.054921 [DEBUG] switch_ivr_play_say.c:1694 done playing file local_stream://moh<br>
2013-06-02 22:44:20.054921 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>2013-06-02 22:44:20.054921 [DEBUG] switch_ivr_bridge.c:349 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>
2013-06-02 22:44:20.054921 [DEBUG] switch_core_session.c:861 Send signal sofia/external5090/<a href="http://sip:1003@89.88.82.75:52810" target="_blank">sip:1003@89.88.82.75:52810</a> [BREAK]<br>2013-06-02 22:44:20.054921 [DEBUG] switch_ivr_bridge.c:349 Send signal sofia/external5090/<a href="mailto:1001@mydomain.no-ip.org" target="_blank">1001@mydomain.no-ip.org</a> [BREAK]<br>
<br></div><div>Thanks for your help.<br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div>