add proper notification of a vm message being too short

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9615 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-09-22 17:35:22 +00:00
parent cc10211ab3
commit 6c3aa9c7c6
4 changed files with 8 additions and 3 deletions

View File

@ -1 +1 @@
1.0.5
1.0.6

View File

@ -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"/>

View File

@ -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"/>

View 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;