mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
remove uri headers from Contact
This commit is contained in:
parent
9938815eff
commit
e8d63aa3ba
2 changed files with 6 additions and 1 deletions
|
|
@ -123,7 +123,10 @@ void sal_address_set_port(SalAddress *addr, int port){
|
|||
void sal_address_clean(SalAddress *addr){
|
||||
belle_sip_header_address_t* header_addr = BELLE_SIP_HEADER_ADDRESS(addr);
|
||||
belle_sip_uri_t* uri=belle_sip_header_address_get_uri(header_addr);
|
||||
if (uri) belle_sip_parameters_clean(BELLE_SIP_PARAMETERS(uri));
|
||||
if (uri) {
|
||||
belle_sip_parameters_clean(BELLE_SIP_PARAMETERS(uri));
|
||||
belle_sip_uri_headers_clean(uri);
|
||||
}
|
||||
belle_sip_parameters_clean(BELLE_SIP_PARAMETERS(header_addr));
|
||||
return ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -289,6 +289,8 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
|
|||
int localport = -1;
|
||||
const char *localip = NULL;
|
||||
LinphoneAddress *contact=linphone_address_new(obj->reg_identity);
|
||||
|
||||
linphone_address_clean(contact);
|
||||
|
||||
if (obj->contact_params) {
|
||||
// We want to add a list of contacts params to the linphone address
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue