mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Allow special character when loging into a custom sip account
This commit is contained in:
parent
8937a2cafa
commit
ce4421b5f3
1 changed files with 3 additions and 2 deletions
|
|
@ -1323,8 +1323,9 @@ void assistant_is_account_linked(LinphoneAccountCreator *creator, LinphoneAccoun
|
|||
NSString *displayName = [self findTextField:ViewElement_DisplayName].text;
|
||||
NSString *pwd = [self findTextField:ViewElement_Password].text;
|
||||
LinphoneProxyConfig *config = linphone_core_create_proxy_config(LC);
|
||||
LinphoneAddress *addr =
|
||||
linphone_address_new([NSString stringWithFormat:@"sip:%@@%@", username, domain].UTF8String);
|
||||
LinphoneAddress *addr = linphone_address_new(NULL);
|
||||
linphone_address_set_username(addr, username.UTF8String);
|
||||
linphone_address_set_domain(addr, domain.UTF8String);
|
||||
if (displayName && ![displayName isEqualToString:@""]) {
|
||||
linphone_address_set_display_name(addr, displayName.UTF8String);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue