Print R-URI modifications in S-CSCF
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user