提交 2dcac7d3 authored 作者: Travis Cross's avatar Travis Cross

Fix switch_split_user_domain handling of sips: URLs

In commit 7efeabbd Anthony fixed the
handling of sip:example.com and sips:example.com URLs, however he
introduced a regression causing URLs starting with 's' to be parsed
incorrectly.

In commit 7d2456ea Brian fixed the
regression, but introduced a regression causing sips:example.com URLs
to be handled incorrectly.
上级 3ad8d246
......@@ -3112,7 +3112,8 @@ SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domai
if (!strncasecmp(in, "sip", 3)) {
in += 3;
while(*in == ':') in++;
if (*in == 's') in++;
if (*in == ':') in++;
}
u = in;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论