Skip to content

Commit

Permalink
[OW-455] Implement topos disable when header topos : 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo committed Dec 24, 2024
1 parent 1be506b commit eb6c534
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 eb6c534

Please sign in to comment.