[asterisk-commits] rizzo: branch rizzo/astobj2 r48406 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 12 02:07:24 MST 2006


Author: rizzo
Date: Tue Dec 12 03:07:24 2006
New Revision: 48406

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48406
Log:
merge from trunk rev.48318:
Don't send Contact in SIP Messages (imported from 1.2/1.4).
Reported by Gunnar at Omnitor.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=48406&r1=48405&r2=48406
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Tue Dec 12 03:07:24 2006
@@ -6072,7 +6072,7 @@
 		add_header(req, "To", of);
 	}
 	/* Do not add Contact for BYE and Cancel requests */
-	if (sipmethod != SIP_BYE && sipmethod != SIP_CANCEL)
+	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