[Freeswitch-svn] [commit] r9613 - freeswitch/trunk/src/mod/applications/mod_voicemail
Freeswitch SVN
anthm at freeswitch.org
Mon Sep 22 12:50:40 EDT 2008
Author: anthm
Date: Mon Sep 22 12:50:39 2008
New Revision: 9613
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
Log:
(MODAPP-133) don't try to deliver vm when no file was recorded.
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 12:50:39 2008
@@ -1039,7 +1039,7 @@
TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "deleted", NULL, NULL));
goto record_file;
} else {
- status = SWITCH_STATUS_BREAK;
+ status = SWITCH_STATUS_FALSE;
goto end;
}
} else {
@@ -2690,6 +2690,8 @@
} else {
TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "saved", NULL, NULL));
}
+ } else {
+ goto end;
}
switch_channel_get_variables(channel, &vars);
More information about the Freeswitch-svn
mailing list