switch_ivr_originate: Fix a infinite loop that will fill your machine ram...…

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
上级 7ae7d9d4
...@@ -1375,7 +1375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess ...@@ -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) { for (hi = ovars->headers; hi; hi = hi->next) {
switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, hi->name, hi->value); switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, hi->name, hi->value);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论