[Freeswitch-svn] [commit] r5900 - freeswitch/trunk/conf

Freeswitch SVN brian at freeswitch.org
Tue Oct 16 13:06:15 EDT 2007


Author: brian
Date: Tue Oct 16 13:06:14 2007
New Revision: 5900

Added:
   freeswitch/trunk/conf/voicemail_en.xml

Log:
add voicemail file based xml vs tts still needs files

Added: freeswitch/trunk/conf/voicemail_en.xml
==============================================================================
--- (empty file)
+++ freeswitch/trunk/conf/voicemail_en.xml	Tue Oct 16 13:06:14 2007
@@ -0,0 +1,258 @@
+<include><!--This line will be ignored it's here to validate the xml and is optional -->
+  <macro name="voicemail_enter_id">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-enter_id.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_enter_pass">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-enter_pass.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_fail_auth">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-fail_auth.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_hello">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-hello.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_goodbye">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-goodbye.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_abort">
+    <input pattern="(.*)">
+      <match>
+	<action function="play-file" data="vm-abort.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_message_count">
+    <input pattern="^([^:]+):([^:]+):{0,1}(.*)">
+      <match>
+	<action function="play-file" data="vm-you_have.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-$2.wav"/> <!-- vm-urgent-new.wav, vm-new.wav, vm-urgent-saved, vm-saved.wav -->
+	<action function="play-file" data="vm-message$3.wav"/> <!-- vm-message.wav or vm-messages.wav -->
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_menu">
+    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
+      <match>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-listen_new.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$2" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-listen_saved.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$3" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-advanced.wav"/>
+	<action function="say" data="$4" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-to_exit.wav"/>
+      </match>
+    </input>
+  </macro>
+
+
+  <macro name="voicemail_config_menu">
+    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
+      <match>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-record_greeting.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$2" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-choose_greeting.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$3" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-record_name.wav"/>
+	<action function="say" data="$4" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-main_menu.wav"/>
+      </match>
+    </input>
+  </macro>
+
+
+  <macro name="voicemail_record_name">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-record_name.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_record_file_check">
+    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
+      <match>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-listen_to_recording.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$2" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-save_recording.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$3" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-rerecord.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_record_urgent_check">
+    <input pattern="^([0-9#*]):([0-9#*])$">
+      <match>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-mark_urgent.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$2" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-continue.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_listen_file_check">
+    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
+      <match>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-listen_to_recording.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$2" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-save_recording.wav"/>
+	<action function="play-file" data="vm-press.wav"/>
+	<action function="say" data="$3" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-delete_recording.wav"/>
+	<action function="say" data="$4" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-forward_to_email.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_choose_greeting">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-choose_greeting.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_choose_greeting_fail">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-choose_greeting_fail.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_record_greeting">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-record_greeting.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_record_message">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-record_message.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_greeting_selected">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-greeting.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-selected.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_play_greeting">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+	<action function="play-file" data="vm-not_avaliable.wav"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_say_number">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_say_message_number">
+    <input pattern="^([a-z]+):(.*)$">
+      <match>
+	<action function="play-file" data="vm-$1.wav"/> <!-- vm-saved.wav or vm-new.wav -->
+	<action function="play-file" data="vm-message_number.wav"/>
+	<action fucntion="say" data="$2" method="pronounced" type="items"/> 
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_say_phone_number">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_say_name">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="speak-text" data="$1"/> <!-- not used -->
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_ack">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="play-file" data="vm-message.wav"/>
+	<action function="say" data="$1" method="pronounced" type="items"/>
+      </match>
+    </input>
+  </macro>
+
+  <macro name="voicemail_say_date">
+    <input pattern="^(.*)$">
+      <match>
+	<action function="say" data="$strftime($1|%A, %B %d %Y, %I %M %p)" method="pronounced" type="current_date_time"/>
+      </match>
+    </input>
+  </macro>
+
+</include><!--This line will be ignored it's here to validate the xml and is optional -->



More information about the Freeswitch-svn mailing list