[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Oct 19 22:22:34 CDT 2010


branch "master" has been updated
       via  9718cc5806a90c0b22c571b87be0aa30d02e2c85 (commit)
      from  adf748377411cb3c17fbee0fc140d4975d275abc (commit)

Summary of changes:
 src/SipSession.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 9718cc5806a90c0b22c571b87be0aa30d02e2c85
Author: Mark Michelson <mmichelson at digium.com>
Date:   Tue Oct 19 22:24:56 2010 -0500

    Unlock the session before trying to replicate state.

diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index 0cc67e4..2d158eb 100644
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -211,6 +211,7 @@ AsteriskSCF::SessionCommunications::V1::SessionInfoPtr SipSession::addListener(c
    if (mImplPriv->mInviteSession)
    {
       PJSipSessionModInfo *session_mod_info = static_cast<PJSipSessionModInfo*>(mImplPriv->mInviteSession->mod_data[mImplPriv->mManager->getSessionModule()->getModule().id]);
+      lock.unlock();
       session_mod_info->updateSessionState(mImplPriv->mInviteSession);
 	  mImplPriv->mManager->getSessionModule()->replicateState(NULL, NULL, session_mod_info);
    }
@@ -389,6 +390,7 @@ void SipSession::removeListener(const AsteriskSCF::SessionCommunications::V1::Se
    if (mImplPriv->mInviteSession)
    {
       PJSipSessionModInfo *session_mod_info = static_cast<PJSipSessionModInfo*>(mImplPriv->mInviteSession->mod_data[mImplPriv->mManager->getSessionModule()->getModule().id]);
+      lock.unlock();
       session_mod_info->updateSessionState(mImplPriv->mInviteSession);
 	  mImplPriv->mManager->getSessionModule()->replicateState(NULL, NULL, session_mod_info);
    }

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list