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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Sep 21 14:54:55 2010 +0200

b/f: terminate other leg only if existing

---

 core/AmB2BSession.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index 71b1e68..b7ba269 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -310,7 +310,9 @@ void AmB2BSession::terminateLeg()
 
 void AmB2BSession::terminateOtherLeg()
 {
-  relayEvent(new B2BEvent(B2BTerminateLeg));
+  if (!other_id.empty())
+    relayEvent(new B2BEvent(B2BTerminateLeg));
+
   clear_other();
 }
 

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

Reply via email to