]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5457
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 21 May 2013 15:21:45 +0000 (10:21 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 21 May 2013 15:22:02 +0000 (10:22 -0500)
src/switch_ivr_originate.c

index 603297ec55e258657eef499bdb0e254bb5e3ff13..13896f7b134047345cd99dba0f3beedeed9358a6 100644 (file)
@@ -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");