From: Michael Jerris Date: Thu, 28 Mar 2013 15:24:49 +0000 (-0400) Subject: dont ever return success when we don't end up with a new session X-Git-Tag: v1.3.17-final~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b15ac31174a8c04a4f1e71be243e870880d70c91;p=thirdparty%2Ffreeswitch.git dont ever return success when we don't end up with a new session --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index f204ee1f4e..1f16473949 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -3756,6 +3756,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess *bleg = NULL; } + if (bleg && !*bleg && status == SWITCH_STATUS_SUCCESS) { + status = SWITCH_STATUS_FALSE; + } + if (bleg && *bleg) { switch_channel_t *bchan = switch_core_session_get_channel(*bleg);