forked from mirrors/linphone-iphone
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* 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];
|
||||
}
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue