mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fix unreliability with custom header handling. (retrofit of commit 384669 from master branch)
This commit is contained in:
parent
3ca2b0232d
commit
0945515d6c
1 changed files with 7 additions and 4 deletions
|
|
@ -218,11 +218,14 @@ void Sal::process_request_event_cb (void *ud, const belle_sip_request_event_t *e
|
|||
if (!op->call_id) {
|
||||
op->call_id=ms_strdup(belle_sip_header_call_id_get_call_id(BELLE_SIP_HEADER_CALL_ID(belle_sip_message_get_header_by_type(BELLE_SIP_MESSAGE(req), belle_sip_header_call_id_t))));
|
||||
}
|
||||
/*It is worth noting that proxies can (and
|
||||
will) remove this header field*/
|
||||
/*It is worth noting that proxies can (and will) remove this header field*/
|
||||
op->set_privacy_from_message((belle_sip_message_t*)req);
|
||||
|
||||
op->assign_recv_headers((belle_sip_message_t*)req);
|
||||
|
||||
if (strcmp("ACK",method) != 0){
|
||||
/*The ACK custom header is processed specifically later on*/
|
||||
op->assign_recv_headers((belle_sip_message_t*)req);
|
||||
}
|
||||
|
||||
if (op->callbacks && op->callbacks->process_request_event) {
|
||||
op->callbacks->process_request_event(op,event);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue