提交 5406fb8a authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-5185 --resolve

上级 65ba846a
...@@ -3869,19 +3869,14 @@ static void actual_message_query_handler(switch_event_t *event) ...@@ -3869,19 +3869,14 @@ static void actual_message_query_handler(switch_event_t *event)
char *id, *domain; char *id, *domain;
dup = strdup(account); dup = strdup(account);
id = dup;
if (!strncasecmp(account, "sip:", 4)) { switch_split_user_domain(dup, &id, &domain);
id += 4;
}
if (!id) { if (!id || !domain) {
free(dup); free(dup);
return; return;
} }
if ((domain = strchr(id, '@'))) {
*domain++ = '\0';
profile = NULL; profile = NULL;
if (globals.message_query_exact_match) { if (globals.message_query_exact_match) {
...@@ -3902,7 +3897,6 @@ static void actual_message_query_handler(switch_event_t *event) ...@@ -3902,7 +3897,6 @@ static void actual_message_query_handler(switch_event_t *event)
} }
} }
} }
}
switch_safe_free(dup); switch_safe_free(dup);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论