aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 13:05:15 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 13:05:15 +0000
commit7dd656be4810ec86df58a1362085159e09401563 (patch)
treee8c7cdc8700e543adc9bb1230e24dea1b04ac1a6
parent8890616992e83d3aebd3e6b20ac5e9cf5313e006 (diff)
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/trunk@116234 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 71a5744ad..dca3740a1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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;