Skip to content

Commit

Permalink
[OW-455] Implement topos disable when header topos : 0 (#51)
Browse files Browse the repository at this point in the history
NethServer/dev#7183

Co-authored-by: Paolo <paolo.visintin@timenet.it>
  • Loading branch information
Stell0 and Paolo authored Jan 8, 2025
1 parent 1be506b commit 140611c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/kamailio/config/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 140611c

Please sign in to comment.