[asterisk-commits] mmichelson: branch group/CCSS r239189 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 11 15:53:15 CST 2010


Author: mmichelson
Date: Mon Jan 11 15:53:12 2010
New Revision: 239189

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239189
Log:
Check for the proper content type in CC PUBLISHES.


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=239189&r1=239188&r2=239189
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Mon Jan 11 15:53:12 2010
@@ -23843,7 +23843,7 @@
 	const char *content_type = get_header(req, "Content-Type");
 	int res;
 
-	if (ast_strlen_zero(content_type) || strcmp(content_type, "application/xml+pidf")) {
+	if (ast_strlen_zero(content_type) || strcmp(content_type, "application/pidf+xml")) {
 		ast_log(LOG_WARNING, "Content type is not PIDF\n");
 		return FALSE;
 	}




More information about the asterisk-commits mailing list