提交 30813ca5 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3130

上级 c79bfa76
...@@ -305,12 +305,15 @@ static void event_handler(switch_event_t *event) ...@@ -305,12 +305,15 @@ static void event_handler(switch_event_t *event)
} }
} }
if (send && l->filters && l->filters->headers) { if (send) {
switch_mutex_lock(l->filter_mutex);
if (l->filters && l->filters->headers) {
switch_event_header_t *hp; switch_event_header_t *hp;
const char *hval; const char *hval;
send = 0; send = 0;
switch_mutex_lock(l->filter_mutex);
for (hp = l->filters->headers; hp; hp = hp->next) { for (hp = l->filters->headers; hp; hp = hp->next) {
if ((hval = switch_event_get_header(event, hp->name))) { if ((hval = switch_event_get_header(event, hp->name))) {
const char *comp_to = hp->value; const char *comp_to = hp->value;
...@@ -356,6 +359,7 @@ static void event_handler(switch_event_t *event) ...@@ -356,6 +359,7 @@ static void event_handler(switch_event_t *event)
} }
switch_mutex_unlock(l->filter_mutex); switch_mutex_unlock(l->filter_mutex);
} }
}
if (send && switch_test_flag(l, LFLAG_MYEVENTS)) { if (send && switch_test_flag(l, LFLAG_MYEVENTS)) {
char *uuid = switch_event_get_header(event, "unique-id"); char *uuid = switch_event_get_header(event, "unique-id");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论