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 <ica>->MYSETUP in context public</div>
</span></div></li></ol><snip><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"><<a href="mailto:igor.cappello@edistar.com" target="_blank">igor.cappello@edistar.com</a>></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>
<extension name="set binding action"><br>
<condition field="context" expression="public"/><br>
<condition field="destination_number" expression="^test_bind_dtmf$"><br>
<action application="log" data="INFO extension callback"/><br>
<br>
<action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/><br>
<action application="digit_action_set_realm" data="test"/><br>
<br>
<action application="bridge" data="{execute_on_answer='start_dtmf'}sofia/gateway/voipcard1/723331"/><br>
<br>
<action application="log" data="INFO extension callback . Originate terminated"/><br>
</condition><br>
</extension><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>
<extension name="setup_bind_digit_action"><br>
<condition field="destination_number" expression="^MYSETUP$"/><br>
<action application="log" data="INFO MYSETUP exec"/><br>
<action application="start_dtmf"/><br>
</extension><br>
<br>
<extension name="set binding action"><br>
<condition field="context" expression="public"/><br>
<condition field="destination_number" expression="^test_bind_dtmf$"><br>
<action application="log" data="INFO extension callback"/><br>
<action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/><br>
<action application="digit_action_set_realm" data="test"/><br>
<action application="bridge" data="{execute_on_answer='execute_extension MYSETUP XML public'}sofia/gateway/voipcard1/723331"/><br>
<action application="log" data="INFO extension callback . Originate terminated"/><br>
</condition><br>
</extension><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>
> Please use <a href="http://pastebin.freeswitch.org/" target="_blank">http://pastebin.freeswitch.org/</a><br>
><br>
> On Tue, Feb 26, 2013 at 12:42 PM, Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>
> wrote:<br>
> > You need to set the digit action realm:<br>
> > <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>
> ><br>
> > -MC<br>
> ><br>
<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>
</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>