Append RPort to fix non-receiving of in-dialog replies

This commit is contained in:
herlesupreeth
2022-01-11 16:50:05 +01:00
parent 414dcdaf44
commit 6c8b43cfb2
2 changed files with 11 additions and 0 deletions

View File

@@ -163,6 +163,11 @@ route[MO_indialog] {
setflag(FLT_MOBILE_ORIG);
t_on_reply("MO_indialog_reply");
# Append rport only if its a request coming from UE
if (is_request() && ($hdrc(Via) == 1)) {
force_rport();
}
if ($dd != "" && $rd != "" && $fs != "") {
if ($rd =~ ".*" + $dd + ".*") {
ipsec_forward("location");

View File

@@ -87,6 +87,12 @@ route[MT_indialog] {
xnotice("Contact header: $ct\n");
#resetflag(FLT_MOBILE_ORIG);
t_on_reply("MT_indialog_reply");
# Append rport only if its a request coming from UE
if (is_request() && ($hdrc(Via) == 1)) {
force_rport();
}
if ($dd != "" && $rd != "" && $fs != "") {
if ($rd =~ ".*" + $dd + ".*") {
ipsec_forward("location");