From: Anthony Minessale Date: Tue, 21 May 2013 15:21:45 +0000 (-0500) Subject: FS-5457 X-Git-Tag: v1.2.13~356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f7fda044221e58ca004c815e7a2c27b74eb632;p=thirdparty%2Ffreeswitch.git FS-5457 --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 603297ec55..13896f7b13 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -1380,7 +1380,7 @@ static void *SWITCH_THREAD_FUNC enterprise_originate_thread(switch_thread_t *thr switch_mutex_unlock(handle->mutex); if (handle->done != 2) { - if (handle->status == SWITCH_STATUS_SUCCESS) { + if (handle->status == SWITCH_STATUS_SUCCESS && handle->bleg) { switch_channel_t *channel = switch_core_session_get_channel(handle->bleg); switch_channel_set_variable(channel, "group_dial_status", "loser");