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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Oct 18 17:42:22 CDT 2010


branch "master" has been updated
       via  caac9520790942c4278bf03d9038695c7587d93a (commit)
      from  71f93bdcde70b09afd77b59769812ba7e3dddbb7 (commit)

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


- Log -----------------------------------------------------------------
commit caac9520790942c4278bf03d9038695c7587d93a
Author: Brent Eagles <beagles at digium.com>
Date:   Mon Oct 18 20:10:51 2010 -0230

    Giving the bridge's session listener a real name so it's easier to determine from
    the publisher side if the bridge has stopped listening.

diff --git a/src/BridgeImpl.cpp b/src/BridgeImpl.cpp
index 1e7b9bc..1eea734 100644
--- a/src/BridgeImpl.cpp
+++ b/src/BridgeImpl.cpp
@@ -381,7 +381,12 @@ AsteriskSCF::BridgeService::BridgeImpl::BridgeImpl(
     {
         mListeners->addListener(ev);
     }
-    mSessionListenerPrx = AsteriskSCF::SessionCommunications::V1::SessionListenerPrx::uncheckedCast(mObjAdapter->addWithUUID(mSessionListener));
+    std::string listenerId = mObjAdapter->getCommunicator()->identityToString(prx->ice_getIdentity());
+    listenerId += ".sessionListener";
+    mSessionListenerPrx = 
+        AsteriskSCF::SessionCommunications::V1::SessionListenerPrx::uncheckedCast(
+          mObjAdapter->add(mSessionListener, mObjAdapter->getCommunicator()->stringToIdentity(listenerId))
+          );
 }
 
 AsteriskSCF::BridgeService::BridgeImpl::~BridgeImpl()

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


-- 
asterisk-scf/integration/bridging.git



More information about the asterisk-scf-commits mailing list