[Freeswitch-svn] [commit] r9615 - in freeswitch/trunk: build conf/lang/en/vm docs/phrase src/mod/applications/mod_voicemail

Freeswitch SVN anthm at freeswitch.org
Mon Sep 22 13:35:23 EDT 2008


Author: anthm
Date: Mon Sep 22 13:35:22 2008
New Revision: 9615

Modified:
   freeswitch/trunk/build/sounds_version.txt
   freeswitch/trunk/conf/lang/en/vm/sounds.xml
   freeswitch/trunk/docs/phrase/phrase_en.xml
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c

Log:
add proper notification of a vm message being too short

Modified: freeswitch/trunk/build/sounds_version.txt
==============================================================================
--- freeswitch/trunk/build/sounds_version.txt	(original)
+++ freeswitch/trunk/build/sounds_version.txt	Mon Sep 22 13:35:22 2008
@@ -1 +1 @@
-1.0.5
+1.0.6

Modified: freeswitch/trunk/conf/lang/en/vm/sounds.xml
==============================================================================
--- freeswitch/trunk/conf/lang/en/vm/sounds.xml	(original)
+++ freeswitch/trunk/conf/lang/en/vm/sounds.xml	Mon Sep 22 13:35:22 2008
@@ -292,6 +292,11 @@
   </macro>
   <!-- Note: Update this to marked-urgent,emailed and saved once new sound files are recorded -->
   <macro name="voicemail_ack"> 
+    <input pattern="^(too-small)$">
+      <match>
+	<action function="play-file" data="voicemail/vm-too-small.wav"/>
+      </match>
+    </input>
     <input pattern="^(deleted)$">
       <match>
 	<action function="play-file" data="voicemail/vm-message.wav"/>

Modified: freeswitch/trunk/docs/phrase/phrase_en.xml
==============================================================================
--- freeswitch/trunk/docs/phrase/phrase_en.xml	(original)
+++ freeswitch/trunk/docs/phrase/phrase_en.xml	Mon Sep 22 13:35:22 2008
@@ -213,6 +213,7 @@
       <prompt phrase="is not available" filename="vm-not_available.wav"/>
       <prompt phrase="message number" filename="vm-message_number.wav"/>
       <prompt phrase="deleted" filename="vm-deleted.wav"/>
+      <prompt phrase="Your recording is below the minimum acceptable length, please try again" filename="vm-too-small.wav"/>
       <prompt phrase="in folder inbox" filename="vm-in_folder.wav"/>
       <prompt phrase="to return the call now" filename="vm-return_call.wav"/>
       <prompt phrase="urgent" filename="vm-urgent.wav"/>

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	Mon Sep 22 13:35:22 2008
@@ -1035,8 +1035,7 @@
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
 			}
 			if (switch_channel_ready(channel)) {
-				/* TODO Rel 1.0 : Add Playback of Prompt <message is too short, please rerecord your message>, then go back at record_file */
-				TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "deleted", NULL, NULL));
+				TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "too-small", NULL, NULL));
 				goto record_file;
 			} else {
 				status = SWITCH_STATUS_FALSE;



More information about the Freeswitch-svn mailing list