[Freeswitch-dev] Trouble with bind_digit_action and exec:execute_extension
Michael Collins
msc at freeswitch.org
Wed Jul 6 10:25:16 MSD 2011
Hello,
I know that some have recently reported having trouble with
bind_digit_action and exec:execute_extension. I have not been able to
reproduce any of the reported symptoms. I've produced a simple test dialplan
that you can drop into conf/dialplan/default/ and just reloadxml for a quick
test. I've attached it and also pasted it here for reference. If you've been
having BDA trouble please try this out and report back. Be sure to use
pastebin.freeswitch.org for reporting your logs.
-MC
Dialplan:
<extension name="BDA Test">
<condition field="destination_number" expression="^77(\d\d\d\d)$">
<action application="answer"/>
<action application="bind_digit_action"
data="test1,*1,exec:execute_extension,BDA_TARGET_1 XML default"/>
<action application="bind_digit_action"
data="test1,*2,exec:execute_extension,BDA_TARGET_2 XML default"/>
<action application="bind_digit_action"
data="test1,*3,exec:execute_extension,BDA_TARGET_3 XML default"/>
<action application="bind_digit_action"
data="test1,*4,exec:execute_extension,BDA_TARGET_4 XML default"/>
<action application="bind_digit_action"
data="test1,*5,exec:execute_extension,BDA_TARGET_5 XML default"/>
<action application="bind_digit_action"
data="test1,*6,exec:execute_extension,BDA_TARGET_6 XML default"/>
<action application="digit_action_set_realm" data="test1"/>
<action application="playback" data="${hold_music}"/>
</condition>
</extension>
<extension name="BDA Target">
<condition field="destination_number" expression="^BDA_TARGET_(\d)$">
<action application="say" data="en number pronounced $1"/>
</condition>
</extension>
Just dial 77xxxx and then press *1, *2, etc. You will hear the number
voiced, i.e. *1 will say "one", *2 will say "two" and so forth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110705/581cd4cd/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_BDA_Test.xml
Type: text/xml
Size: 2874 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110705/581cd4cd/attachment.xml
More information about the FreeSWITCH-dev
mailing list