[Freeswitch-svn] [commit] r13228 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Mon May 4 13:43:09 PDT 2009


Author: mrene
Date: Mon May  4 15:43:09 2009
New Revision: 13228

Log:
Make { } vars take precedence over channel variables

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Mon May  4 15:43:09 2009
@@ -1082,7 +1082,7 @@
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "variable string %d = [%s]\n", x, var_array[x]);
 				if ((inner_var_count =
 					 switch_separate_string(var_array[x], '=', inner_var_array, (sizeof(inner_var_array) / sizeof(inner_var_array[0])))) == 2) {
-
+					switch_event_del_header(var_event, inner_var_array[0]);
 					switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, inner_var_array[0], inner_var_array[1]);
 				}
 			}



More information about the Freeswitch-svn mailing list