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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Sep 29 11:46:20 CDT 2011


branch "bridgetelephony" has been updated
       via  5607d8da13b02b66f51a8da8b8f186217a1882c6 (commit)
      from  8329ef134ca920bd05c6e2b73a0d6594931e8a58 (commit)

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


- Log -----------------------------------------------------------------
commit 5607d8da13b02b66f51a8da8b8f186217a1882c6
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Thu Sep 29 11:46:28 2011 -0500

    Incorporated review feedback.

diff --git a/src/BridgeImpl.cpp b/src/BridgeImpl.cpp
index 3a62e0a..fa859a8 100755
--- a/src/BridgeImpl.cpp
+++ b/src/BridgeImpl.cpp
@@ -703,7 +703,15 @@ protected:
         // part of the bridge's session collection. 
         for (SessionSeq::iterator i = mNewSessions.begin(); i != mNewSessions.end(); ++i)
         {
-            TelephonySessionPrx telephonySession = TelephonySessionPrx::checkedCast(*i);
+            TelephonySessionPrx telephonySession;
+            try
+            {
+                telephonySession = TelephonySessionPrx::checkedCast(*i);
+            }
+            catch(...)
+            {
+                continue;
+            }
 
             if (telephonySession == 0)
             {
@@ -744,7 +752,15 @@ protected:
     {
         for (SessionSeq::iterator i = mDisconnectingSessions.begin(); i != mDisconnectingSessions.end(); ++i)
         {
-            TelephonySessionPrx telephonySession = TelephonySessionPrx::checkedCast(*i);
+            TelephonySessionPrx telephonySession;
+            try
+            {
+                telephonySession = TelephonySessionPrx::checkedCast(*i);
+            }
+            catch(...)
+            {
+                continue;
+            }
 
             if (telephonySession == 0)
             {

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


-- 
asterisk-scf/integration/bridging.git



More information about the asterisk-scf-commits mailing list