]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Dec 2009 20:19:58 +0000 (20:19 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Dec 2009 20:19:58 +0000 (20:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15848 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 86d8bcea20b6ee843ec01b65a8b6982ea703394e..87c5910c8ce7cc1629d5c76927bc67bad59ec282 100644 (file)
@@ -2466,7 +2466,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                oglobals.ringback_ok = 0;
                        }
 
-                       soft_holding = switch_channel_get_variable(caller_channel, SWITCH_SOFT_HOLDING_UUID_VARIABLE);                  
+                       if (caller_channel) {
+                               soft_holding = switch_channel_get_variable(caller_channel, SWITCH_SOFT_HOLDING_UUID_VARIABLE);
+                       }
 
                        while ((!caller_channel || switch_channel_ready(caller_channel) || switch_channel_test_flag(caller_channel, CF_XFER_ZOMBIE)) &&
                    check_channel_status(&oglobals, originate_status, and_argc)) {