Fix call not disconnected upon callee hangup
This commit is contained in:
@@ -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] {
|
||||
|
Reference in New Issue
Block a user