Commit e641faf7 authored by jehan's avatar jehan

add macro BELLE_SIP_DONT_CHECK_HEADERS_IN_MESSAGE to disable headers checking

parent bc36b700
......@@ -164,7 +164,12 @@ static void belle_sip_provider_dispatch_response(belle_sip_provider_t* prov, bel
}
void belle_sip_provider_dispatch_message(belle_sip_provider_t *prov, belle_sip_message_t *msg){
if (belle_sip_message_check_headers(msg)){
if (TRUE
#ifndef BELLE_SIP_DONT_CHECK_HEADERS_IN_MESSAGE
&& belle_sip_message_check_headers(msg)
#endif
){
if (belle_sip_message_is_request(msg)){
belle_sip_provider_dispatch_request(prov,(belle_sip_request_t*)msg);
}else{
......
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