[asterisk-commits] oej: branch 1.4 r116230 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 14 07:51:07 CDT 2008


Author: oej
Date: Wed May 14 07:51:06 2008
New Revision: 116230

URL: http://svn.digium.com/view/asterisk?view=rev&rev=116230
Log:
Accept text messages even with
Content-Type: text/plain;charset=Södermanländska

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?view=diff&rev=116230&r1=116229&r2=116230
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed May 14 07:51:06 2008
@@ -9735,7 +9735,7 @@
 	struct ast_frame f;
 	const char *content_type = get_header(req, "Content-Type");
 
-	if (strcmp(content_type, "text/plain")) { /* No text/plain attachment */
+	if (strncmp(content_type, "text/plain", strlen("text/plain"))) { /* No text/plain attachment */
 		transmit_response(p, "415 Unsupported Media Type", req); /* Good enough, or? */
 		if (!p->owner)
 			sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);




More information about the asterisk-commits mailing list