提交 d48e3baf authored 作者: Anthony Minessale's avatar Anthony Minessale

let calls live on when nobody answers in mod_bridgecall

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3560 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 baf0174a
...@@ -66,9 +66,12 @@ static void audio_bridge_function(switch_core_session_t *session, char *data) ...@@ -66,9 +66,12 @@ static void audio_bridge_function(switch_core_session_t *session, char *data)
} }
if (switch_ivr_originate(session, &peer_session, &cause, data, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) { if (switch_ivr_originate(session, &peer_session, &cause, data, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot Create Outgoing Channel!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Originate Failed. Cause: %s\n", switch_channel_cause2str(cause));
/* Hangup the channel with the cause code from the failed originate.*/ if (cause != SWITCH_CAUSE_NO_ANSWER) {
/* All Causes besides NO_ANSWER terminate the originating session. We will pass that cause on when we hangup.*/
switch_channel_hangup(caller_channel, cause); switch_channel_hangup(caller_channel, cause);
}
/* Otherwise.. nobody answered. Go back to the dialplan instructions in case there was more to do. */
return; return;
} else { } else {
if (no_media_bridge) { if (no_media_bridge) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论