[svn-commits] oej: trunk r116234 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed May 14 08:05:15 CDT 2008
Author: oej
Date: Wed May 14 08:05:15 2008
New Revision: 116234
URL: http://svn.digium.com/view/asterisk?view=rev&rev=116234
Log:
Merged revisions 116230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r116230 | oej | 2008-05-14 14:51:06 +0200 (Ons, 14 Maj 2008) | 3 lines
Accept text messages even with
Content-Type: text/plain;charset=Södermanländska
........
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=116234&r1=116233&r2=116234
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed May 14 08:05:15 2008
@@ -11976,9 +11976,8 @@
struct ast_frame f;
const char *content_type = get_header(req, "Content-Type");
- if (strncmp(content_type, "text/plain", strlen("text/plain"))) {
- //if (strcmp(content_type, "text/plain")) { /* No text/plain attachment */
- transmit_response(p, "415 Unsupported Media Type", req);
+ 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);
return;
More information about the svn-commits
mailing list