[Freeswitch-users] xml_curl and ivr menus

Dave May Dave.May at patlive.com
Mon Dec 24 23:31:43 MSK 2012




Sent from my HTC smartphone on the Now Network from Sprint!

----- Reply message -----
From: "Tim Meade" <Tim.Meade at Millicorp.com>
To: "FreeSWITCH Users Help (freeswitch-users at lists.freeswitch.org)" <freeswitch-users at lists.freeswitch.org>
Subject: [Freeswitch-users] xml_curl and ivr menus
Date: Mon, Dec 24, 2012 2:27 pm


I am continually getting 'unable to find menu' while trying to retrieve an ivr_menu using xml_curl

Using xml_curl debug_on

My DialPlan

<document type="freeswitch/xml">
<section name="dialplan" description="example_curl_dialplan">
<context name="public">
<extension name="ws_origination">
<condition field="destination_number" expression="^\d+$" break="on-true">
<action inline="true" application="set" data="continue_on_fail=true"/>
<action inline="true" application="set" data="hangup_after_bridge=true"/>
<action application="answer"/>
<action application="ivr" data="tivr"/>
</condition>
</extension>
</context>
</section>

And the ivr configuration returned by my xml_curl

<include>
<!-- demo IVR setup -->
<!-- demo IVR, Main Menu -->
<menu name="tivr"
greet-long="phrase:demo_ivr_main_menu"
greet-short="phrase:demo_ivr_main_menu_short"
invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
exit-sound="voicemail/vm-goodbye.wav"
confirm-macro=""
confirm-key=""
tts-engine="flite"
tts-voice="rms"
confirm-attempts="3"
timeout="10000"
inter-digit-timeout="2000"
max-failures="3"
max-timeouts="3"
digit-len="4">
<!-- The following are the definitions for the digits the user dials -->
<!-- Digit 1 transfer caller to the public FreeSWITCH conference -->
<entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/888 at conference.freeswitch.org"/>
<entry action="menu-exec-app" digits="2" param="transfer 9196 XML default"/> <!-- FS echo -->
<entry action="menu-exec-app" digits="3" param="transfer 9664 XML default"/> <!-- MOH -->
<entry action="menu-exec-app" digits="4" param="transfer 9191 XML default"/> <!-- ClueCon -->
<entry action="menu-exec-app" digits="5" param="transfer 1234*256 enum"/> <!-- Screaming monkeys -->
<!-- Using a regex in the digits tag lets you define a dial pattern for the caller
You may define multiple regexes if you need a different pattern for some reason -->
<entry action="menu-exec-app" digits="/^(10[01][0-9])$/" param="transfer $1 XML features"/>
<entry action="menu-top" digits="9"/> <!-- Repeat this menu -->
</menu>
</include>

Any ideas on the 'unable to find menu' ????

Thanks

Tim






Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list