Browse Source

fix the check for content-type

4.3 4.3.24
lazedo 6 years ago
parent
commit
03a23947d5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kamailio/message-role.cfg

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

@ -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");


Loading…
Cancel
Save