From 0423c24e2e2b7ba2261795fcca78f75a6e29ecc4 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 23 Apr 2006 10:58:47 +0000 Subject: [PATCH] fixed error handling at the beginning of a session. if onInvite failed, Sems would have continued with onSessionStart. this is no more the case. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@38 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/AmSession.cpp b/core/AmSession.cpp index 6c8ab749..d86261dd 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -185,6 +185,7 @@ const string& AmSession::getLocalTag() const void AmSession::setLocalTag(const string& tag) { + DBG("AmSession::setLocalTag(%s)\n",tag.c_str()); dlg.local_tag = tag; } @@ -456,7 +457,7 @@ void AmSession::onSipRequest(const AmSipRequest& req) onInvite(req); - if(detached.get()){ + if(detached.get() && !getStopped()){ onSessionStart(req);