Revision
15387
Author
anthm
Date
2009-11-06 10:47:43 -0600 (Fri, 06 Nov 2009)

Log Message

again, thx moc

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_originate.c (15386 => 15387)


--- freeswitch/trunk/src/switch_ivr_originate.c	2009-11-06 16:11:26 UTC (rev 15386)
+++ freeswitch/trunk/src/switch_ivr_originate.c	2009-11-06 16:47:43 UTC (rev 15387)
@@ -1324,7 +1324,7 @@
 	}
 
 	/* 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];