summaryrefslogtreecommitdiff
path: root/pjsip/src
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-07-10 01:46:08 +0000
committerBenny Prijono <bennylp@teluu.com>2007-07-10 01:46:08 +0000
commit62932f60662ec8cb2196b27aa922e81ce3082423 (patch)
treed89de7d86c00ba7d49f0bf979ffd2e91121249b4 /pjsip/src
parent68a5173aa1e207c4f985ce35306ef3a522ddd8fb (diff)
Ticket #352: added PJSIP_CHECK_VIA_SENT_BY configuration to turn off Via sent-by checking for SIP responses, to support IP address change
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1402 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r--pjsip/src/pjsip/sip_endpoint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pjsip/src/pjsip/sip_endpoint.c b/pjsip/src/pjsip/sip_endpoint.c
index 33620009..859c47d1 100644
--- a/pjsip/src/pjsip/sip_endpoint.c
+++ b/pjsip/src/pjsip/sip_endpoint.c
@@ -823,6 +823,7 @@ static void endpt_on_rx_msg( pjsip_endpoint *endpt,
PJ_LOG(5, (THIS_FILE, "Processing incoming message: %s",
pjsip_rx_data_get_info(rdata)));
+#if defined(PJSIP_CHECK_VIA_SENT_BY) && PJSIP_CHECK_VIA_SENT_BY != 0
/* For response, check that the value in Via sent-by match the transport.
* If not matched, silently drop the response.
* Ref: RFC3261 Section 18.1.2 Receiving Response
@@ -879,6 +880,7 @@ static void endpt_on_rx_msg( pjsip_endpoint *endpt,
return;
}
}
+#endif
/* Distribute to modules, starting from modules with highest priority */