Fix unreliability with custom header handling. (retrofit of commit 384669 from master branch)

This commit is contained in:
Simon Morlat 2018-03-26 15:40:51 +02:00
parent 3ca2b0232d
commit 0945515d6c

View file

@ -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 {