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:
parent
7ae7d9d434
commit
cb6f5f3954
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue