[asterisk-scf-commits] asterisk-scf/integration/bridging.git branch "transfer" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Oct 12 10:06:50 CDT 2010


branch "transfer" has been updated
       via  20f7a25fede8398a030a9871bd93634822b3f2f6 (commit)
      from  692012f59fdfac9848878698c1870b9659d4fa44 (commit)

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


- Log -----------------------------------------------------------------
commit 20f7a25fede8398a030a9871bd93634822b3f2f6
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Oct 12 12:35:49 2010 -0230

    Adding a modifier to BridgeSession to allow connected state to be
    explicitly set.

diff --git a/src/BridgeImpl.cpp b/src/BridgeImpl.cpp
index ea3a448..1a0d47d 100644
--- a/src/BridgeImpl.cpp
+++ b/src/BridgeImpl.cpp
@@ -543,6 +543,7 @@ void AsteriskSCF::BridgeService::BridgeImpl::sessionConnected(const AsteriskSCF:
     std::vector<BridgeSessionPtr>::iterator i = find_if(mSessions.begin(), mSessions.end(), AsteriskSCF::BridgeService::FindImpl(session));
     if(i != mSessions.end())
     {
+        (*i)->setConnected();
         (*i)->setConnector(mSplicer.connect(session));
     }
 }
diff --git a/src/BridgeImpl.h b/src/BridgeImpl.h
index 4a5f4c4..0f7854a 100644
--- a/src/BridgeImpl.h
+++ b/src/BridgeImpl.h
@@ -50,6 +50,12 @@ namespace BridgeService
                 mConnected = true;
             }
 
+            void setConnected()
+            {
+                IceUtil::Mutex::Lock lock(mMutex);
+                mConnected = true;
+            }
+
             SessionCommunications::V1::SessionPrx getSession() const
             {
                 return mSession;

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


-- 
asterisk-scf/integration/bridging.git



More information about the asterisk-scf-commits mailing list