Revision
16913
Author
mochouinard
Date
2010-03-05 07:38:40 -0600 (Fri, 05 Mar 2010)

Log Message

switch_ivr_originate: Fix a infinite loop that will fill your machine ram... Occur when using bridge group/ and enterprise originate

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_originate.c (16912 => 16913)


--- freeswitch/trunk/src/switch_ivr_originate.c	2010-03-05 07:07:57 UTC (rev 16912)
+++ freeswitch/trunk/src/switch_ivr_originate.c	2010-03-05 13:38:40 UTC (rev 16913)
@@ -1375,7 +1375,7 @@
 		}
 	}
 
-	if (ovars) {
+	if (ovars && ovars != var_event) {
 		for (hi = ovars->headers; hi; hi = hi->next) {
 			switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, hi->name, hi->value);
 		}