aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 13:13:18 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 13:13:18 +0000
commit192468bae9997f24dd33ec6309f9d56f8de86fc0 (patch)
tree6c8aba2263c629769b63b1a94c4c0ea3120f948a /channels/chan_sip.c
parent9fcbcd9fd7d86f05a727cbfc8c96ffd9990b5434 (diff)
Merged revisions 116234 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r116234 | oej | 2008-05-14 15:05:15 +0200 (Ons, 14 Maj 2008) | 11 lines 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 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@116236 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ebbafbeb6..e4f95b7be 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11575,8 +11575,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 (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;