mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fix issue when using email as username
This commit is contained in:
parent
573f530569
commit
b050b22924
1 changed files with 4 additions and 8 deletions
|
|
@ -277,18 +277,14 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
|
|||
|
||||
const char *localip = NULL;
|
||||
char *tmp;
|
||||
LinphoneAddress *contact=linphone_address_new(obj->reg_identity);
|
||||
|
||||
|
||||
if (obj->contact_params)
|
||||
tmp=ms_strdup_printf("<sip:%s@%s;%s>",linphone_address_get_username(contact)
|
||||
,linphone_address_get_domain(contact)
|
||||
,obj->contact_params);
|
||||
tmp = ms_strdup_printf("%s;%s", obj->reg_identity, obj->contact_params);
|
||||
else
|
||||
tmp=ms_strdup_printf("<sip:%s@%s>",linphone_address_get_username(contact)
|
||||
,linphone_address_get_domain(contact));
|
||||
tmp = strdup(obj->reg_identity);
|
||||
|
||||
linphone_address_destroy(contact);
|
||||
contact=linphone_address_new(tmp);
|
||||
LinphoneAddress *contact = linphone_address_new(tmp);
|
||||
if (!contact) {
|
||||
ms_error("No valid contact_params for [%s]",linphone_address_get_domain(proxy));
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue