git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15387
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
/* 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];