]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont ever return success when we don't end up with a new session
authorMichael Jerris <mike@jerris.com>
Thu, 28 Mar 2013 15:24:49 +0000 (11:24 -0400)
committerMichael Jerris <mike@jerris.com>
Thu, 28 Mar 2013 15:24:49 +0000 (11:24 -0400)
src/switch_ivr_originate.c

index f204ee1f4e47fa93e646d969e8957bb10becc0e4..1f16473949af492b48a283c85ae92e92067cf13a 100644 (file)
@@ -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);