Fix call not disconnected upon callee hangup

This commit is contained in:
herlesupreeth
2020-11-21 12:07:49 +01:00
parent 4be4d8c241
commit 1cb01f5752

View File

@@ -162,6 +162,14 @@ route[MO_indialog] {
xnotice("Contact header: $ct\n");
setflag(FLT_MOBILE_ORIG);
t_on_reply("MO_indialog_reply");
if ($du != "" && $ru != "") {
# Remove sips: and sip: from destination URI for comparision
$var(destination) = $(du{re.subst,/sips://g});
$var(destination) = $(var(destination){re.subst,/sip://g});
if (is_request() && $ru =~ ".*" + $var(destination) + ".*") {
ipsec_forward("location");
}
}
}
onreply_route[MO_indialog_reply] {