From 55920103ec6a74781c070432fc8b9d454cb95222 Mon Sep 17 00:00:00 2001 From: lazedo Date: Mon, 3 Feb 2020 00:02:03 +0000 Subject: [PATCH] early return for in-dialog transactions --- kamailio/default.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 9b3ca33..46edb7b 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -732,6 +732,11 @@ failure_route[INTERNAL_FAULT] exit; } + if (!is_method("INVITE") || has_totag()) { + xlog("L_INFO", "$ci|failure|internal reply $T_reply_code $T_reply_reason\n"); + return; + } + # Handle redirects if (t_check_status("302")) { $var(redirect) = @from.uri.user + "@" + @from.uri.host + "->"