Fix switch_split_user_domain handling of sips: URLs
In commit7efeabbd88
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 commit7d2456ea27
Brian fixed the regression, but introduced a regression causing sips:example.com URLs to be handled incorrectly.
This commit is contained in:
parent
fd1b0279e2
commit
b22aa39e66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue