tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7416 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
28e07fb347
commit
9cb51f53f7
|
@ -901,7 +901,11 @@ record_file:
|
||||||
if (unlink(file_path) != 0) {
|
if (unlink(file_path) != 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
|
||||||
}
|
}
|
||||||
|
if (switch_channel_ready(channel)) {
|
||||||
|
goto record_file;
|
||||||
|
} else {
|
||||||
goto end;
|
goto end;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
status = SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
|
||||||
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "lang", chan_lang);
|
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "lang", chan_lang);
|
||||||
if (data) {
|
if (data) {
|
||||||
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "data", data);
|
switch_event_add_header_string(hint_data, SWITCH_STACK_BOTTOM, "data", data);
|
||||||
|
} else {
|
||||||
|
data = "";
|
||||||
}
|
}
|
||||||
switch_channel_event_set_data(channel, hint_data);
|
switch_channel_event_set_data(channel, hint_data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue