[asterisk-commits] oej: branch 1.4 r46276 -
/branches/1.4/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Oct 25 13:14:57 MST 2006
Author: oej
Date: Wed Oct 25 15:14:57 2006
New Revision: 46276
URL: http://svn.digium.com/view/asterisk?rev=46276&view=rev
Log:
Old todo note - Don't add Contact header on BYE and Cancel
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?rev=46276&r1=46275&r2=46276&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Oct 25 15:14:57 2006
@@ -5556,7 +5556,9 @@
add_header(req, "From", ot);
add_header(req, "To", of);
}
- add_header(req, "Contact", p->our_contact);
+ /* Do not add Contact for BYE and Cancel requests */
+ if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL)
+ 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