From 03a23947d5c9f7422638119ad77248e3152f2a0c Mon Sep 17 00:00:00 2001 From: lazedo Date: Fri, 1 May 2020 00:10:19 +0000 Subject: [PATCH] fix the check for content-type --- kamailio/message-role.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kamailio/message-role.cfg b/kamailio/message-role.cfg index 05d349c..5ce1d09 100644 --- a/kamailio/message-role.cfg +++ b/kamailio/message-role.cfg @@ -12,8 +12,8 @@ route[HANDLE_MESSAGE] sl_send_reply("403", "Forbidden"); exit; } else { - if($hdr(Content-Type) == "text/plain" || - $hdr(Content-Type) == "text/html") { + if($hdr(Content-Type) =~ "text/plain" || + $hdr(Content-Type) =~ "text/html") { route(MESSAGE_INBOUND); } else { xlog("L_WARN", "$ci|end|dropping MESSAGE $hdr(Content-Type)\n");