mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
Fix switch_split_user_domain handling of sips: URLs
In commit7efeabbd88Anthony 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 commit7d2456ea27Brian fixed the regression, but introduced a regression causing sips:example.com URLs to be handled incorrectly.
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user