[Freeswitch-svn] [commit] r7416 - in freeswitch/trunk/src: . mod/applications/mod_voicemail
Freeswitch SVN
anthm at freeswitch.org
Mon Jan 28 16:07:20 EST 2008
Author: anthm
Date: Mon Jan 28 16:07:20 2008
New Revision: 7416
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
tweak
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 Jan 28 16:07:20 2008
@@ -901,7 +901,11 @@
if (unlink(file_path) != 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
}
- goto end;
+ if (switch_channel_ready(channel)) {
+ goto record_file;
+ } else {
+ goto end;
+ }
} else {
status = SWITCH_STATUS_SUCCESS;
}
Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c (original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c Mon Jan 28 16:07:20 2008
@@ -126,7 +126,9 @@
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "lang", chan_lang);
if (data) {
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "data", data);
- }
+ } else {
+ data = "";
+ }
switch_channel_event_set_data(channel, hint_data);
if (switch_xml_locate("phrases", NULL, NULL, NULL, &xml, &cfg, hint_data) != SWITCH_STATUS_SUCCESS) {
More information about the Freeswitch-svn
mailing list