提交 265de3d3 authored 作者: Brian West's avatar Brian West

FS-6082 --resolve

上级 bf093e9d
...@@ -160,8 +160,8 @@ static switch_status_t process_event(switch_event_t *event) ...@@ -160,8 +160,8 @@ static switch_status_t process_event(switch_event_t *event)
{ {
switch_status_t status = SWITCH_STATUS_SUCCESS; switch_status_t status = SWITCH_STATUS_SUCCESS;
switch_core_session_t *session = NULL; switch_core_session_t *session = NULL;
char *username[3] = { NULL }; char *username[4] = { NULL };
char *domain[3] = { NULL }; char *domain[4] = { NULL };
char key[512]; char key[512];
char *uuid = NULL, *my_uuid = NULL; char *uuid = NULL, *my_uuid = NULL;
int i; int i;
...@@ -183,7 +183,10 @@ static switch_status_t process_event(switch_event_t *event) ...@@ -183,7 +183,10 @@ static switch_status_t process_event(switch_event_t *event)
username[2] = switch_event_get_header(event, "variable_user_name"); username[2] = switch_event_get_header(event, "variable_user_name");
domain[2] = switch_event_get_header(event, "variable_domain_name"); domain[2] = switch_event_get_header(event, "variable_domain_name");
for (i = 0; i < 3; i++) { username[3] = switch_event_get_header(event, "variable_sip_to_user");
domain[3] = switch_event_get_header(event, "variable_domain_name");
for (i = 0; i < 4; i++) {
if (username[i] && domain[i]) { if (username[i] && domain[i]) {
spy_t *spy = NULL; spy_t *spy = NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论