Module: sems
Branch: master
Commit: 4900e24b6a047c6f5e39431749b8ac79bf487578
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=4900e24b6a047c6f5e39431749b8ac79bf487578

Author: Václav Kubart <[email protected]>
Committer: Václav Kubart <[email protected]>
Date:   Mon Oct 28 12:55:11 2013 +0100

sbc b/f: terminate non-connected legs if BYE is recevied

... otherwise they will stay alive without having their peer leg
... happens when a call leg is being reconnected to another peer (for example
unattended call transfer)

---

 apps/sbc/CallLeg.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp
index 752ff75..4e779a1 100644
--- a/apps/sbc/CallLeg.cpp
+++ b/apps/sbc/CallLeg.cpp
@@ -934,6 +934,7 @@ void CallLeg::onRemoteDisappeared(const AmSipReply& reply)
 // was for caller only
 void CallLeg::onBye(const AmSipRequest& req)
 {
+  terminateNotConnectedLegs();
   updateCallStatus(Disconnected, &req);
   clearRtpReceiverRelay(); // FIXME: shouldn't be cleared in AmB2BSession as 
well?
   AmB2BSession::onBye(req);

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to