[asterisk-commits] mmichelson: branch group/CCSS r239471 - /team/group/CCSS/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 12 10:54:21 CST 2010
Author: mmichelson
Date: Tue Jan 12 10:54:17 2010
New Revision: 239471
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239471
Log:
Add Content-Type and Content-Length headers for 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=239471&r1=239470&r2=239471
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Tue Jan 12 10:54:17 2010
@@ -12525,7 +12525,11 @@
}
if (publish_type == SIP_PUBLISH_INITIAL || publish_type == SIP_PUBLISH_MODIFY) {
+ add_header(&req, "Content-Type", "application/pidf+xml");
+ add_header_contentlength(&req, strlen(epa_entry->body));
add_line(&req, epa_entry->body);
+ } else {
+ add_header_contentlength(&req, 0);
}
initialize_initreq(pvt, &req);
More information about the asterisk-commits
mailing list