]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add proper notification of a vm message being too short
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 22 Sep 2008 17:35:22 +0000 (17:35 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 22 Sep 2008 17:35:22 +0000 (17:35 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9615 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index 90a27f9cea6e8f02e05a8bbab5d14650e3e932af..af0b7ddbffd5d5a877581ba8ba10deed158da14d 100644 (file)
@@ -1 +1 @@
-1.0.5
+1.0.6
index a8aa208afee7d6ffd9670d0ca8d70ff5bb4868f4..cf8b3ffeacfa3b3abeb8d62133983ea49351a769 100644 (file)
   </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"/>
index 84c98d9f01bd770398e86a498f055d8ea6a43e1e..9c12499479ced2697518a2befe5a847df2fac429 100644 (file)
       <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"/>
index 151f3aef36ea79f7c3a76d9eeb225f24ba427359..722ad5757dde4645964520ec44307f90ce9a695a 100644 (file)
@@ -1035,8 +1035,7 @@ static switch_status_t create_file(switch_core_session_t *session, vm_profile_t
                                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;