]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
again, thx moc
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 6 Nov 2009 16:47:43 +0000 (16:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 6 Nov 2009 16:47:43 +0000 (16:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15387 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index ff8d0b699c4dc9edf43d36350b0a00181e6cc2bc..12593db2332d41aad63c38970d1bf493945a134a 100644 (file)
@@ -1324,7 +1324,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
        }
 
        /* A comma (,) separated list of variable names that should ne propagated from originator to originatee */
-       if ((export_vars = switch_channel_get_variable(caller_channel, SWITCH_EXPORT_VARS_VARIABLE))) {
+       if (caller_channel && (export_vars = switch_channel_get_variable(caller_channel, SWITCH_EXPORT_VARS_VARIABLE))) {
                char *cptmp = switch_core_session_strdup(session, export_vars);
                int argc;
                char *argv[256];