switch_ivr_originate: Fix a infinite loop that will fill your machine ram... Occur when using bridge group/ and enterprise originate
--- 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);
}