TT#73957 Handle BYE after 180 with to_tag

- customer has a scenario when 180 has to_tag and call terminated by caller with BYE but calle did not get any call termination signalling.
 - a bit more special for such cases BYE handling added.

Change-Id: If826a2ebf5c570bbf4e3cbe00a3ad27bffa6efef
changes/63/37463/1
Marco Capetta 7 years ago
parent 13cbc203f0
commit 38ad6c8d75

@ -34,3 +34,4 @@ sipwise/introduce_forcesdp_from_pbx.patch
sipwise/0001-TT-34704-Fix-sems-and-sems-pbx-to-write-pid-file-whe.patch
sipwise/0001-TT-53685-add_header_pattern_match_support.patch
sipwise/add-vsc-to-disable_all_cf.patch
sipwise/handle_bye_after_180.patch

@ -0,0 +1,15 @@
--- a/apps/sbc/CallLeg.cpp
+++ b/apps/sbc/CallLeg.cpp
@@ -961,7 +961,11 @@ void CallLeg::onSipRequest(const AmSipRe
}
}
else {
- if(getCallStatus() == Disconnected &&
+ if (getCallStatus() == Ringing && !getOtherId().empty() && req.method == SIP_METH_BYE) {
+ dlg->reply(req,200,"OK");
+ stopCall(&req);
+ }
+ else if(getCallStatus() == Disconnected &&
req.method == SIP_METH_BYE) {
// seems that we have already sent/received a BYE
// -> we'd better terminate this ASAP
Loading…
Cancel
Save