mirror of https://github.com/sipwise/sems.git
- 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
(cherry picked from commit 38ad6c8d75)
changes/70/37470/1
parent
3ca4e560d9
commit
4c065cfb08
@ -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…
Reference in new issue