<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><div><span><br></span></div><span>Freeswitch writes in the log that it's processing the extension MYSETUP.</span><div><span><br></span></div><div><span>The extension MYSETUP is:</span></div><div><span><div>&lt;extension name="MYSETUP_EXTENSION"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^MYSETUP$"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO MYSETUP exec"/&gt;</div><div><span style="font-size: 12pt;">&lt;/extension&gt;</span></div><div><span><br></span></div><div><span>I'd expect that in the log, after the following lines,</span></div><div><span><br></span></div><div><ol><li class="li1"><div class="de1"><span class="re8"><div style="color: rgb(255, 255, 85); background-color: black;">EXECUTE sofia/external/<span class="nu0">723331</span>&nbsp;execute_extension<span class="br0">(</span>MYSETUP XML public<span class="br0">)</span></div></span></div></li><li class="li2"><div class="de2"><span class="re1"><div style="color: rgb(0, 170, 0); background-color: black;"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span>&nbsp;<span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span>&nbsp;<span class="br0">[</span>INFO<span class="br0">]</span>&nbsp;mod_dialplan_xml.c:<span class="nu0">557</span>&nbsp;Processing Igor Cappello &lt;ica&gt;-&gt;MYSETUP in context public</div></span></div></li></ol></div><div>Freeswitch should write an INFO log message with text "MYSETUP exec".</div><div><br></div><div>The log message actually is not written. It seems that Freeswitch "processes" the extension but actually doesn't execute it...</div><div><br></div><div>Thank you</div><br><span name="x"></span>Denis<span name="x"></span><br></span><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><b>Da: </b>"Michael Collins" &lt;msc@freeswitch.org&gt;<br><b>A: </b>"FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br><b>Inviato: </b>Giovedì, 28 febbraio 2013 1:26:32<br><b>Oggetto: </b>Re: [Freeswitch-users] Problem setting up bind_digit_action<br><br>It looks to me like your "MYSETUP" extension is getting executed on the answer:<br><br><ol><li class="li2"><div class="de2"><span class="re6"><div style="color:#00aaaa;background-color:black"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span> <span class="br0">[</span>NOTICE<span class="br0">]</span> sofia.c:<span class="nu0">6326</span> Channel <span class="br0">[</span>sofia/external/<span class="nu0">723331</span><span class="br0">]</span> has been answered</div>
</span></div></li><li class="li1"><div class="de1"><span class="re8"><div style="color:#ffff55;background-color:black">EXECUTE sofia/external/<span class="nu0">723331</span> execute_extension<span class="br0">(</span>MYSETUP XML public<span class="br0">)</span></div>
</span></div></li><li class="li2"><div class="de2"><span class="re1"><div style="color:#00aa00;background-color:black"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span> <span class="br0">[</span>INFO<span class="br0">]</span> mod_dialplan_xml.c:<span class="nu0">557</span> Processing Igor Cappello &lt;ica&gt;-&gt;MYSETUP in context public</div>
</span></div></li></ol>&lt;snip&gt;<br><ol><li class="li1"><div class="de1"><span class="re7"><div style="color:#ffff55;background-color:black">Dialplan: sofia/external/<span class="nu0">723331</span> Regex <span class="br0">(</span>PASS<span class="br0">)</span> <span class="br0">[</span>setup_bind_digit_action<span class="br0">]</span> destination_number<span class="br0">(</span>MYSETUP<span class="br0">)</span> =~ /^MYSETUP$/ break=on-false</div>
</span></div></li><li class="li2"><div class="de2"><span class="re6"><div style="color:#00aaaa;background-color:black"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span> <span class="br0">[</span>NOTICE<span class="br0">]</span> switch_core_session.c:<span class="nu0">2788</span> Execute set<span class="br0">(</span>outside_call=true<span class="br0">)</span></div>
</span></div></li><li class="li1"><div class="de1"><span class="re8"><div style="color:#ffff55;background-color:black">EXECUTE sofia/external/<span class="nu0">723331</span> set<span class="br0">(</span>outside_call=true<span class="br0">)</span></div>
</span></div></li><li class="li2"><div class="de2"><span class="re0"><div style="color:#ffff55;background-color:black"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span> <span class="br0">[</span>DEBUG<span class="br0">]</span> mod_dptools.c:<span class="nu0">1344</span> sofia/external/<span class="nu0">723331</span> SET <span class="br0">[</span>outside_call<span class="br0">]</span>=<span class="br0">[</span>true<span class="br0">]</span></div>
</span></div></li><li class="li1"><div class="de1"><span class="re6"><div style="color:#00aaaa;background-color:black"><span class="nu0">2013</span><span class="nu0">-02</span><span class="nu0">-27</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08.511899</span> <span class="br0">[</span>NOTICE<span class="br0">]</span> switch_core_session.c:<span class="nu0">2788</span> Execute set<span class="br0">(</span>RFC2822_DATE=$<span class="br0">{</span>strftime<span class="br0">(</span>%a, %d %b %Y %T %z<span class="br0">)</span><span class="br0">}</span><span class="br0">)</span></div>
</span></div></li><li class="li2"><div class="de2"><span class="re8"><div style="color:#ffff55;background-color:black">EXECUTE sofia/external/<span class="nu0">723331</span> set<span class="br0">(</span>RFC2822_DATE=Wed, <span class="nu0">27</span> Feb <span class="nu0">2013</span> <span class="nu0">09</span>:<span class="nu0">24</span>:<span class="nu0">08</span> <span class="nu0">+0100</span><span class="br0">)</span></div>
</span></div></li></ol>It looks like your MYSETUP extension has just two "set" apps and that's it.<br><br>-MC<br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 1:01 AM, Igor Cappello <span dir="ltr">&lt;<a href="mailto:igor.cappello@edistar.com" target="_blank">igor.cappello@edistar.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We managed to make it work, specifying the "peer" parameter in the data attribute of application bind_digit_action.<br>

<br>
Here's the working extension<br>
&lt;extension name="set binding action"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="context" expression="public"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^test_bind_dtmf$"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO extension callback"/&gt;<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="digit_action_set_realm" data="test"/&gt;<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" data="{execute_on_answer='start_dtmf'}sofia/gateway/voipcard1/723331"/&gt;<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO extension callback . Originate terminated"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
And here's the execution log<br>
<a href="http://pastebin.freeswitch.org/20635" target="_blank">http://pastebin.freeswitch.org/20635</a><br>
<br>
We now face a related issue, though: we need to specify an extension to be executed on the bleg. Using execute_on_answer='execute_extension ...' seems to be the way to go, but we did not manage to make it work.<br>

<br>
<br>
Here are the extensions<br>
<br>
&lt;extension name="setup_bind_digit_action"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^MYSETUP$"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO MYSETUP exec"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="start_dtmf"/&gt;<br>
&lt;/extension&gt;<br>
<br>
&lt;extension name="set binding action"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="context" expression="public"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^test_bind_dtmf$"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO extension callback"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="digit_action_set_realm" data="test"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" data="{execute_on_answer='execute_extension MYSETUP XML public'}sofia/gateway/voipcard1/723331"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO extension callback . Originate terminated"/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
And here's the execution log: the extension MYSETUP doesn't seem to be executed properly on the bleg of the bridged call.<br>
<a href="http://pastebin.freeswitch.org/20636" target="_blank">http://pastebin.freeswitch.org/20636</a><br>
<br>
<br>
Could you give us a hint?<br>
<br>
Thanks for your time,<br>
Igor Cappello<br>
<br>
<br>
&gt; Please use <a href="http://pastebin.freeswitch.org/" target="_blank">http://pastebin.freeswitch.org/</a><br>
&gt;<br>
&gt; On Tue, Feb 26, 2013 at 12:42 PM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt; You need to set the digit action realm:<br>
&gt; &gt; <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_digit_action_set_realm" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_digit_action_set_realm</a><br>
&gt; &gt;<br>
&gt; &gt; -MC<br>
&gt; &gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
<br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br>consulting@freeswitch.org<br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote><br></div></div></body></html>