From: Mathieu Rene Date: Fri, 23 Jan 2009 14:16:34 +0000 (+0000) Subject: FSCORE-279 Prevent media setup on failed originates X-Git-Tag: v1.0.3~589 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8187f4a3c183735e4492100a5bb5f61ddfd46c3b;p=thirdparty%2Ffreeswitch.git FSCORE-279 Prevent media setup on failed originates git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11462 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 5ca70516ea..d0c6e06b23 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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); } - if (oglobals.session) { + if (oglobals.session && status == SWITCH_STATUS_SUCCESS) { switch_ivr_sleep(oglobals.session, 0, SWITCH_TRUE, NULL); }