[svn-commits] mmichelson: branch group/CCSS r230380 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 16 08:59:22 CST 2009


Author: mmichelson
Date: Mon Nov 16 08:59:18 2009
New Revision: 230380

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=230380
Log:
Clarify when to add body to a SIP PUBLISH.


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=230380&r1=230379&r2=230380
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Mon Nov 16 08:59:18 2009
@@ -11739,7 +11739,10 @@
 		add_header(&req, "SIP-If-Match", epa_entry->entity_tag);
 	}
 
-	add_line(&req, body);
+	if (publish_type == SIP_PUBLISH_INITIAL || publish_type == SIP_PUBLISH_MODIFY) {
+		add_line(&req, body);
+	}
+
 	send_request(pvt, &req, XMIT_RELIABLE, INITIAL_CSEQ);
 
 	return 0;




More information about the svn-commits mailing list