]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 116230 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Wed, 14 May 2008 13:05:15 +0000 (13:05 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 14 May 2008 13:05:15 +0000 (13:05 +0000)
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

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116234 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 71a5744ad48a0b94f94d0f50c978656b8bef33aa..dca3740a10670d3925638052f951036bd438305a 100644 (file)
@@ -11976,9 +11976,8 @@ static void receive_message(struct sip_pvt *p, struct sip_request *req)
        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;