Module: sems Branch: 1.4 Commit: 60be6e60a7d878a25fb11edfd35a2ffd02004da5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=60be6e60a7d878a25fb11edfd35a2ffd02004da5
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 0840d52..3a32b60 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -902,7 +902,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
