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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16913 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Marc Olivier Chouinard 2010-03-05 13:38:40 +00:00
parent 7ae7d9d434
commit cb6f5f3954
1 changed files with 1 additions and 1 deletions

View File

@ -1375,7 +1375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
}
}
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);
}