Commit 6d11f76c authored by Ghislain MARY's avatar Ghislain MARY

Clean the new To uri when creating the new INVITE after a redirection.

parent eb21b8ab
......@@ -404,6 +404,9 @@ int SalOp::process_redirect(){
this->call_id = NULL;
}
belle_sip_request_set_uri(request, redirect_uri);
redirect_uri = BELLE_SIP_URI(belle_sip_object_clone(BELLE_SIP_OBJECT(redirect_uri)));
belle_sip_uri_set_port(redirect_uri, 0);
belle_sip_uri_set_transport_param(redirect_uri, nullptr);
belle_sip_header_address_set_uri((belle_sip_header_address_t*)to, redirect_uri);
send_request(request);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment