DP-11
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16063 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6812bfc771
commit
4fe4848acc
|
@ -198,7 +198,10 @@ static void *SWITCH_THREAD_FUNC collect_thread_run(switch_thread_t *thread, void
|
|||
switch_input_args_t args = { 0 };
|
||||
args.buf = buf;
|
||||
args.buflen = sizeof(buf);
|
||||
switch_ivr_play_file(collect->session, NULL, collect->file, &args);
|
||||
if (switch_ivr_play_file(collect->session, NULL, collect->file, &args) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(collect->session), SWITCH_LOG_ERROR, "%s Error Playing File!", switch_channel_get_name(channel));
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
}
|
||||
} else {
|
||||
switch_ivr_collect_digits_count(collect->session, buf, sizeof(buf), 1, SWITCH_BLANK_STRING, &term, 0, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue