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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Sun Apr 10 16:56:08 2011 +0200

b/f: avoid relaying events if the session is stopped.

Without this patch, a new callee session would be created when 
AmB2BCallerSession::relayEvent(...) is called after setStopped(); 
terminatedOtherLeg();

---

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

diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index 3832a82..884456d 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -901,7 +901,7 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev)
 
 int AmB2BCallerSession::relayEvent(AmEvent* ev)
 {
-  if(other_id.empty()){
+  if(other_id.empty() && !getStopped()){
 
     bool create_callee = false;
     B2BSipEvent* sip_ev = dynamic_cast<B2BSipEvent*>(ev);

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

Reply via email to