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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Oct 13 13:43:35 CDT 2010


branch "transfer" has been updated
       via  732ef0fa29bd33d0aca4835a49be919b2736b399 (commit)
      from  9705e7d70b3721a3aeccd8ada97181242c7f1098 (commit)

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


- Log -----------------------------------------------------------------
commit 732ef0fa29bd33d0aca4835a49be919b2736b399
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Oct 13 16:12:24 2010 -0230

    Fix bug where listeners weren't being registered with IceStorm

diff --git a/src/TestEndpoint.cpp b/src/TestEndpoint.cpp
index 39f9e64..c4db008 100644
--- a/src/TestEndpoint.cpp
+++ b/src/TestEndpoint.cpp
@@ -132,6 +132,7 @@ public:
         const AsteriskSCF::SessionCommunications::V1::SessionListenerPrx& listener,
                 const Ice::Current&)
     {
+        mListeners->addListener(listener);
         mEndpointManager->log(mId, __FUNCTION__);
         return mInfo;
     }
@@ -184,6 +185,7 @@ public:
     void removeListener(const AsteriskSCF::SessionCommunications::V1::SessionListenerPrx& listener,
             const Ice::Current&)
     {
+        mListeners->removeListener(listener);
         mEndpointManager->log(mId, __FUNCTION__);
     }
 
@@ -218,6 +220,7 @@ public:
     {
         boost::unique_lock<boost::shared_mutex> lock(mMutex);
         mCurrentBridge = newBridge;
+        mListeners->addListener(listener);
         mEndpointManager->log(mId, __FUNCTION__);
         return mInfo;
     }
@@ -229,6 +232,7 @@ public:
         {
             throw AsteriskSCF::SessionCommunications::V1::NotBridged();
         }
+        mListeners->removeListener(listener);
         mCurrentBridge = 0;
         mEndpointManager->log(mId, __FUNCTION__);
     }

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


-- 
asterisk-scf/integration/test_channel.git



More information about the asterisk-scf-commits mailing list