File asterisk.enablechathtml.patch of Package asterisk

diff -Naru asterisk-13.1.0_orig/channels/chan_sip.c asterisk-13.1.0/channels/chan_sip.c
--- asterisk-13.1.0_orig/channels/chan_sip.c	2014-12-10 23:41:05.000000000 +0900
+++ asterisk-13.1.0/channels/chan_sip.c	2015-02-23 18:10:43.000000000 +0900
@@ -18737,7 +18737,8 @@
 	char stripped[SIPBUFSIZE];
 	enum sip_get_dest_result dest_result;
 
-	if (strncmp(content_type, "text/plain", strlen("text/plain"))) { /* No text/plain attachment */
+	if ((strncmp(content_type, "text/plain", strlen("text/plain")))
+           && (strncmp(content_type, "text/html", strlen("text/html")))) { /* No text/plain or text/html attachment */
 		transmit_response(p, "415 Unsupported Media Type", req); /* Good enough, or? */
 		if (!p->owner) {
 			sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);