Fix switch_split_user_domain handling of sips: URLs

In commit 7efeabbd88 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 7d2456ea27 Brian fixed the
regression, but introduced a regression causing sips:example.com URLs
to be handled incorrectly.
This commit is contained in:
Travis Cross 2014-03-02 07:56:32 +00:00
parent fd1b0279e2
commit b22aa39e66
1 changed files with 2 additions and 1 deletions

View File

@ -3123,7 +3123,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;