From eb6c534dc6a8ff660cae0ee163f12592c03c77f3 Mon Sep 17 00:00:00 2001 From: Paolo Date: Tue, 24 Dec 2024 11:49:32 +0100 Subject: [PATCH] [OW-455] Implement topos disable when header topos : 0 --- modules/kamailio/config/kamailio.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/kamailio/config/kamailio.cfg b/modules/kamailio/config/kamailio.cfg index 2572f4c..5da4a0b 100644 --- a/modules/kamailio/config/kamailio.cfg +++ b/modules/kamailio/config/kamailio.cfg @@ -781,6 +781,14 @@ failure_route[MANAGE_FAILURE] { # event_route[topos:msg-sending] # ----------------------------------------------------------------------------- event_route[topos:msg-sending] { + if is_method("INVITE") { + if($hdr(topos) == "0") { + xlog('L_INFO', "(event_route[topos:msg-sending]) $ci $rm-$cs topos: $hdr(topos) ----- will not apply topos\n"); + remove_hf("topos"); + msg_apply_changes(); + drop; + } + } if ($rd!=$null) { if is_method("OPTIONS|NOTIFY|SUBSCRIBE") { drop;