MT#55831 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.
(real ticket number: TT#73957)

Change-Id: I9ebbf4f3a504d3587550e55aec926438199be5e9
mr11.2.1
Marco Capetta 4 years ago committed by Donat Zenichev
parent b1c8aa3f2c
commit d4d1fc7bb8

@ -961,7 +961,11 @@ void CallLeg::onSipRequest(const AmSipRequest& req)
}
}
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