greet-short="phrase:demo_ivr_main_menu_short"\r
invalid-sound="voicemail/vm-hello.wav"\r
exit-sound="voicemail/vm-goodbye.wav"\r
- timeout ="15"\r
- max-failures="3">\r
+ timeout ="10000"\r
+ inter-digit-timeout="2000"\r
+ max-failures="3"\r
+ confirm-macro="demo_ivr_count"\r
+ confirm-key="1"\r
+ confirm-attempts="3"\r
+ digit-len="4"\r
+ >\r
<entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/888@conference.freeswitch.org"/>\r
<entry action="menu-exec-app" digits="2" param="transfer 9996 XML default"/> <!-- FS echo -->\r
<entry action="menu-exec-app" digits="3" param="transfer 9999 XML default"/> <!-- MOH -->\r
<entry action="menu-sub" digits="4" param="demo_ivr_submenu"/> <!-- demo sub menu -->\r
<entry action="menu-exec-app" digits="5" param="transfer 1234*256 enum"/> <!-- Screaming monkeys -->\r
+ <entry action="menu-exec-app" digits="/^(10[01][0-9])$/" param="transfer $1 XML default"/> \r
<entry action="menu-top" digits="9" param="demo_ivr"/> <!-- Repeat this menu -->\r
</menu>\r
-\r
<!-- Demo IVR, Sub Menu -->\r
<menu name="demo_ivr_submenu"\r
greet-long="phrase:demo_ivr_sub_menu"\r
max-failures="3">\r
<entry action="menu-top" digits="*"/>\r
</menu>\r
+\r
</menus>\r
+\r
+\r
</configuration>\r
\r
\r
<include><!--This line will be ignored it's here to validate the xml and is optional -->\r
\r
+\r
+ <macro name="demo_ivr_count">\r
+ <input pattern="^(\d+)$">\r
+ <match>\r
+ <action function="play-file" data="voicemail/vm-you_have.wav"/>\r
+ <action function="say" data="$1" method="pronounced" type="name_spelled"/>\r
+ <action function="play-file" data="voicemail/vm-messages.wav"/>\r
+ </match>\r
+ </input>\r
+ </macro>\r
+\r
<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 -->\r
<input pattern="(.*)">\r
<match>\r