mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-20 01:38:28 +00:00
Merge branch 'new_ui' of git://git.linphone.org/linphone-iphone into castel
This commit is contained in:
commit
4992f09e7e
1 changed files with 5 additions and 1 deletions
|
|
@ -68,7 +68,11 @@
|
||||||
|
|
||||||
+ (NSString*)normalizeSipURI:(NSString*)address {
|
+ (NSString*)normalizeSipURI:(NSString*)address {
|
||||||
NSString* ret = address;
|
NSString* ret = address;
|
||||||
if([address rangeOfString:@"@"].location != NSNotFound && ![address hasPrefix:@"sip:"]) {
|
if([address rangeOfString:@"@"].location != NSNotFound) {
|
||||||
|
if([address rangeOfString:@"sip:" options:NSCaseInsensitiveSearch].location == 0) {
|
||||||
|
// have to be sure that start with sip: in lower case
|
||||||
|
ret = [ret substringFromIndex:4];
|
||||||
|
}
|
||||||
ret = [@"sip:" stringByAppendingString:ret];
|
ret = [@"sip:" stringByAppendingString:ret];
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue