[asterisk-commits] oej: trunk r48318 - in /trunk: ./
channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 6 05:34:58 MST 2006
Author: oej
Date: Wed Dec 6 06:34:58 2006
New Revision: 48318
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48318
Log:
Don't send Contact in SIP Messages (imported from 1.2/1.4).
Reported by Gunnar at Omnitor.
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=48318&r1=48317&r2=48318
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Dec 6 06:34:58 2006
@@ -5733,9 +5733,10 @@
add_header(req, "From", ot);
add_header(req, "To", of);
}
- /* Do not add Contact for BYE and Cancel requests */
- if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL)
+ /* Do not add Contact for MESSAGE, BYE and Cancel requests */
+ if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL && sipmethod != SIP_MESSAGE)
add_header(req, "Contact", p->our_contact);
+
copy_header(req, orig, "Call-ID");
add_header(req, "CSeq", tmp);
More information about the asterisk-commits
mailing list