mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 14:48:07 +00:00
Handle sips: prefix as valid SIP address
This commit is contained in:
parent
02ac9da3bd
commit
0e95a54e52
3 changed files with 3 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
if(remoteAddress != nil) {
|
||||
[remoteAddress release];
|
||||
}
|
||||
if ([aRemoteAddress hasPrefix:@"sip:"]) {
|
||||
if ([aRemoteAddress hasPrefix:@"sip:"] || [aRemoteAddress hasPrefix:@"sips:"]) {
|
||||
remoteAddress = [aRemoteAddress copy];
|
||||
} else {
|
||||
char normalizedUserName[256];
|
||||
|
|
|
|||
|
|
@ -1294,7 +1294,7 @@ static void audioRouteChangeListenerCallback (
|
|||
LinphoneCall* call=NULL;
|
||||
|
||||
if ([address length] == 0) return; //just return
|
||||
if ([address hasPrefix:@"sip:"]) {
|
||||
if ([address hasPrefix:@"sip:"] || [address hasPrefix:@"sips:"]) {
|
||||
LinphoneAddress* linphoneAddress = linphone_address_new([address cStringUsingEncoding:[NSString defaultCStringEncoding]]);
|
||||
if(displayName!=nil) {
|
||||
linphone_address_set_display_name(linphoneAddress,[displayName cStringUsingEncoding:[NSString defaultCStringEncoding]]);
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
|
|||
}
|
||||
|
||||
+ (BOOL)isSipURI:(NSString*)address {
|
||||
return [address hasPrefix:@"sip:"];
|
||||
return [address hasPrefix:@"sip:"] || [address hasPrefix:@"sips:"];
|
||||
}
|
||||
|
||||
+ (NSString*)appendCountryCodeIfPossible:(NSString*)number {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue