[Freeswitch-trunk] [commit] r3560 - freeswitch/trunk/src/mod/applications/mod_bridgecall
Freeswitch SVN
anthm at freeswitch.org
Wed Dec 6 16:37:30 EST 2006
Author: anthm
Date: Wed Dec 6 16:37:29 2006
New Revision: 3560
Modified:
freeswitch/trunk/src/mod/applications/mod_bridgecall/mod_bridgecall.c
Log:
let calls live on when nobody answers in mod_bridgecall
Modified: freeswitch/trunk/src/mod/applications/mod_bridgecall/mod_bridgecall.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_bridgecall/mod_bridgecall.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_bridgecall/mod_bridgecall.c Wed Dec 6 16:37:29 2006
@@ -66,9 +66,12 @@
}
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");
- /* Hangup the channel with the cause code from the failed originate.*/
- switch_channel_hangup(caller_channel, cause);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Originate Failed. Cause: %s\n", switch_channel_cause2str(cause));
+ 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);
+ }
+ /* Otherwise.. nobody answered. Go back to the dialplan instructions in case there was more to do. */
return;
} else {
if (no_media_bridge) {
More information about the Freeswitch-trunk
mailing list