From e36ac7dcfe2918d176c212760dd6394ee03c0365 Mon Sep 17 00:00:00 2001 From: lazedo Date: Wed, 18 Dec 2019 10:25:19 +0000 Subject: [PATCH] add text/html for message content-type * bria uses it --- kamailio/message-role.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kamailio/message-role.cfg b/kamailio/message-role.cfg index 16457ce..05d349c 100644 --- a/kamailio/message-role.cfg +++ b/kamailio/message-role.cfg @@ -12,7 +12,8 @@ route[HANDLE_MESSAGE] sl_send_reply("403", "Forbidden"); exit; } else { - if($hdr(Content-Type) == "text/plain") { + 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"); @@ -50,7 +51,7 @@ event_route[kazoo:consumer-event-sms-outbound] $uac_req(furi) = $var(from_uri); $uac_req(ouri) = "sip:127.0.0.1:5090;transport=tcp"; $uac_req(callid) = $(kzE{kz.json,Message-ID}); - xlog("L_INFO", "$(kzE{kz.json,Call-ID})|log|sending message from $var(from_uri) to $var(to_uri) \n"); + xlog("L_INFO", "$(kzE{kz.json,Message-ID})|log|sending message from $var(from_uri) to $var(to_uri) \n"); uac_req_send(); }