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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Feb 15 09:46:51 CST 2011


branch "async-bridging" has been updated
       via  a8b20b2310bc2e8a33089671ff94e4574445576e (commit)
      from  d8d244cf8c1bf16fe12911fc53b38a805a351780 (commit)

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


- Log -----------------------------------------------------------------
commit a8b20b2310bc2e8a33089671ff94e4574445576e
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Feb 15 11:55:15 2011 -0330

    Changing signature of replaceSession to AMD type.

diff --git a/src/BridgeImpl.cpp b/src/BridgeImpl.cpp
index 3f09183..d21e94e 100644
--- a/src/BridgeImpl.cpp
+++ b/src/BridgeImpl.cpp
@@ -161,6 +161,8 @@ public:
     void removeListener(const BridgeListenerPrx& listener, const Ice::Current& current);
 
     void replaceSession(const SessionPrx&, const SessionSeq& newSessions, const Ice::Current& current);
+    void replaceSession_async(const AMD_Bridge_replaceSessionPtr& callbac, const SessionPrx& sessionToReplace,
+            const SessionSeq& newSessions, const Ice::Current& current);
 
     //
     // BridgeServant methods
@@ -908,6 +910,24 @@ void BridgeImpl::replaceSession(const SessionPrx& oldSession, const SessionSeq&
     }
 }
 
+void BridgeImpl::replaceSession_async(const AMD_Bridge_replaceSessionPtr& callback, const SessionPrx& sessionToReplace,
+        const SessionSeq& newSessions, const Ice::Current& current)
+{
+    try
+    {
+        replaceSession(sessionToReplace, newSessions, current);
+        callback->ice_response();
+    }
+    catch (const std::exception& ex)
+    {
+        callback->ice_exception(ex);
+    }
+    catch (...)
+    {
+        callback->ice_exception();
+    }
+}
+
 bool BridgeImpl::destroyed()
 {
     boost::shared_lock<boost::shared_mutex> lock(mLock);

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


-- 
asterisk-scf/integration/bridging.git



More information about the asterisk-scf-commits mailing list