commit work in progress on demo IVR to show up the new features.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8064 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-04-09 18:13:28 +00:00
parent 04ff4c1ace
commit 5b0c2548ef
2 changed files with 23 additions and 3 deletions

View File

@ -7,16 +7,22 @@
greet-short="phrase:demo_ivr_main_menu_short"
invalid-sound="voicemail/vm-hello.wav"
exit-sound="voicemail/vm-goodbye.wav"
timeout ="15"
max-failures="3">
timeout ="10000"
inter-digit-timeout="2000"
max-failures="3"
confirm-macro="demo_ivr_count"
confirm-key="1"
confirm-attempts="3"
digit-len="4"
>
<entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/888@conference.freeswitch.org"/>
<entry action="menu-exec-app" digits="2" param="transfer 9996 XML default"/> <!-- FS echo -->
<entry action="menu-exec-app" digits="3" param="transfer 9999 XML default"/> <!-- MOH -->
<entry action="menu-sub" digits="4" param="demo_ivr_submenu"/> <!-- demo sub menu -->
<entry action="menu-exec-app" digits="5" param="transfer 1234*256 enum"/> <!-- Screaming monkeys -->
<entry action="menu-exec-app" digits="/^(10[01][0-9])$/" param="transfer $1 XML default"/>
<entry action="menu-top" digits="9" param="demo_ivr"/> <!-- Repeat this menu -->
</menu>
<!-- Demo IVR, Sub Menu -->
<menu name="demo_ivr_submenu"
greet-long="phrase:demo_ivr_sub_menu"
@ -26,7 +32,10 @@
max-failures="3">
<entry action="menu-top" digits="*"/>
</menu>
</menus>
</configuration>

View File

@ -1,5 +1,16 @@
<include><!--This line will be ignored it's here to validate the xml and is optional -->
<macro name="demo_ivr_count">
<input pattern="^(\d+)$">
<match>
<action function="play-file" data="voicemail/vm-you_have.wav"/>
<action function="say" data="$1" method="pronounced" type="name_spelled"/>
<action function="play-file" data="voicemail/vm-messages.wav"/>
</match>
</input>
</macro>
<macro name="demo_ivr_main_menu"> <!-- See conf/autoload_config/ivr.conf.xml for an example on how to use this macro in an IVR -->
<input pattern="(.*)">
<match>