Browse Source

add text/html for message content-type

* bria uses it
master
lazedo 6 years ago
parent
commit
e36ac7dcfe
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      kamailio/message-role.cfg

+ 3
- 2
kamailio/message-role.cfg View File

@ -12,7 +12,8 @@ route[HANDLE_MESSAGE]
sl_send_reply("403", "Forbidden"); sl_send_reply("403", "Forbidden");
exit; exit;
} else { } else {
if($hdr(Content-Type) == "text/plain") {
if($hdr(Content-Type) == "text/plain" ||
$hdr(Content-Type) == "text/html") {
route(MESSAGE_INBOUND); route(MESSAGE_INBOUND);
} else { } else {
xlog("L_WARN", "$ci|end|dropping MESSAGE $hdr(Content-Type)\n"); 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(furi) = $var(from_uri);
$uac_req(ouri) = "sip:127.0.0.1:5090;transport=tcp"; $uac_req(ouri) = "sip:127.0.0.1:5090;transport=tcp";
$uac_req(callid) = $(kzE{kz.json,Message-ID}); $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(); uac_req_send();
} }


Loading…
Cancel
Save