]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
commit work in progress on demo IVR to show up the new features.
authorBrian West <brian@freeswitch.org>
Wed, 9 Apr 2008 18:13:28 +0000 (18:13 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 9 Apr 2008 18:13:28 +0000 (18:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8064 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/ivr.conf.xml
conf/lang/en/demo/demo-ivr.xml

index 9edb0a5eb1fa2e221bb7d295bd28650460c892ff..63cb7a99f3e4701e5d48c4dd31318cf488bfe8fd 100644 (file)
@@ -7,16 +7,22 @@
           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
index d996faaf9d1d0958d3e89d49fad030778bfef1e6..baa62b25b35047fc654e537e1d57d3c03cbb4d73 100644 (file)
@@ -1,5 +1,16 @@
 <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