We managed to make it work, specifying the "peer" parameter in the data attribute of application bind_digit_action. Here's the working extension <extension name="set binding action"> <condition field="context" expression="public"/> <condition field="destination_number" expression="^test_bind_dtmf$"> <action application="log" data="INFO extension callback"/> <action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/> <action application="digit_action_set_realm" data="test"/> <action application="bridge" data="{execute_on_answer='start_dtmf'}sofia/gateway/voipcard1/723331"/> <action application="log" data="INFO extension callback . Originate terminated"/> </condition> </extension> And here's the execution log http://pastebin.freeswitch.org/20635 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. Here are the extensions <extension name="setup_bind_digit_action"> <condition field="destination_number" expression="^MYSETUP$"/> <action application="log" data="INFO MYSETUP exec"/> <action application="start_dtmf"/> </extension> <extension name="set binding action"> <condition field="context" expression="public"/> <condition field="destination_number" expression="^test_bind_dtmf$"> <action application="log" data="INFO extension callback"/> <action application="bind_digit_action" data="test,00,exec:log,INFO TEST,peer"/> <action application="digit_action_set_realm" data="test"/> <action application="bridge" data="{execute_on_answer='execute_extension MYSETUP XML public'}sofia/gateway/voipcard1/723331"/> <action application="log" data="INFO extension callback . Originate terminated"/> </condition> </extension> And here's the execution log: the extension MYSETUP doesn't seem to be executed properly on the bleg of the bridged call. http://pastebin.freeswitch.org/20636 Could you give us a hint? Thanks for your time, Igor Cappello
Please use http://pastebin.freeswitch.org/
On Tue, Feb 26, 2013 at 12:42 PM, Michael Collins <msc@freeswitch.org> wrote:
You need to set the digit action realm: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_digit_action_set_realm
-MC