aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 12:51:06 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-14 12:51:06 +0000
commit04213ea2a92ab0033fc177d55aa9e0842f24244b (patch)
tree093e951e370956f57ce7b5e80985689a425d2304 /channels
parent3a6b342e1c906933c191b410e9d774fec936c28b (diff)
Accept text messages even with
Content-Type: text/plain;charset=Södermanländska git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116230 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 715fb134c..b96968940 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9735,7 +9735,7 @@ 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 */
+ 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);