[asterisk-commits] oej: branch 1.4 r48317 - in /branches/1.4: ./
channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 6 05:27:43 MST 2006
Author: oej
Date: Wed Dec 6 06:27:43 2006
New Revision: 48317
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48317
Log:
Don't send Contact on MESSAGE
Modified:
branches/1.4/ (props changed)
branches/1.4/channels/chan_sip.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=48317&r1=48316&r2=48317
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Dec 6 06:27:43 2006
@@ -5629,9 +5629,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