Append RPort to fix non-receiving of in-dialog replies
This commit is contained in:
@@ -163,6 +163,11 @@ route[MO_indialog] {
|
|||||||
setflag(FLT_MOBILE_ORIG);
|
setflag(FLT_MOBILE_ORIG);
|
||||||
t_on_reply("MO_indialog_reply");
|
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 ($dd != "" && $rd != "" && $fs != "") {
|
||||||
if ($rd =~ ".*" + $dd + ".*") {
|
if ($rd =~ ".*" + $dd + ".*") {
|
||||||
ipsec_forward("location");
|
ipsec_forward("location");
|
||||||
|
|||||||
@@ -87,6 +87,12 @@ route[MT_indialog] {
|
|||||||
xnotice("Contact header: $ct\n");
|
xnotice("Contact header: $ct\n");
|
||||||
#resetflag(FLT_MOBILE_ORIG);
|
#resetflag(FLT_MOBILE_ORIG);
|
||||||
t_on_reply("MT_indialog_reply");
|
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 ($dd != "" && $rd != "" && $fs != "") {
|
||||||
if ($rd =~ ".*" + $dd + ".*") {
|
if ($rd =~ ".*" + $dd + ".*") {
|
||||||
ipsec_forward("location");
|
ipsec_forward("location");
|
||||||
|
|||||||
Reference in New Issue
Block a user