mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
FSCORE-279 Prevent media setup on failed originates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11462 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4b21d70d4b
commit
8187f4a3c1
1 file changed
+1
-1
@@ -2044,7 +2044,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
switch_ivr_sleep(*bleg, 0, SWITCH_TRUE, NULL);
|
switch_ivr_sleep(*bleg, 0, SWITCH_TRUE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oglobals.session) {
|
if (oglobals.session && status == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_ivr_sleep(oglobals.session, 0, SWITCH_TRUE, NULL);
|
switch_ivr_sleep(oglobals.session, 0, SWITCH_TRUE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user