Print R-URI modifications in S-CSCF

This commit is contained in:
herlesupreeth
2024-06-05 09:24:19 +02:00
parent 185ca532eb
commit c52d122b6c

View File

@@ -455,10 +455,12 @@ route {
if (!is_method("REGISTER|SUBSCRIBE")) {
# sip:xxx;phone-context=xxxx@xxx format is not desired
if (($ru =~ ".*phone-context.*") && ($ru =~ "sip:.*")) {
$var(old_ruri) = $ru;
$ru = $(ru{re.subst,/sip:/tel:/g});
$ru = $(ru{re.subst,/;phone-context=[A-Za-z.0-9+-@]*;user=phone//g});
$ru = $ru + ";phone-context=" + NETWORKNAME;
msg_apply_changes();
xnotice("SCSCF: Changed R-URI from $var(old_ruri) to $ru\n");
}
}