[Freeswitch-svn] [commit] r8064 - in freeswitch/trunk/conf: autoload_configs lang/en/demo

Freeswitch SVN brian at freeswitch.org
Wed Apr 9 14:13:29 EDT 2008


Author: brian
Date: Wed Apr  9 14:13:28 2008
New Revision: 8064

Modified:
   freeswitch/trunk/conf/autoload_configs/ivr.conf.xml
   freeswitch/trunk/conf/lang/en/demo/demo-ivr.xml

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

Modified: freeswitch/trunk/conf/autoload_configs/ivr.conf.xml
==============================================================================
--- freeswitch/trunk/conf/autoload_configs/ivr.conf.xml	(original)
+++ freeswitch/trunk/conf/autoload_configs/ivr.conf.xml	Wed Apr  9 14:13:28 2008
@@ -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 at 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>
 
 

Modified: freeswitch/trunk/conf/lang/en/demo/demo-ivr.xml
==============================================================================
--- freeswitch/trunk/conf/lang/en/demo/demo-ivr.xml	(original)
+++ freeswitch/trunk/conf/lang/en/demo/demo-ivr.xml	Wed Apr  9 14:13:28 2008
@@ -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>



More information about the Freeswitch-svn mailing list