[asterisk-scf-commits] asterisk-scf/release/sip.git branch "ami-route" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Nov 18 10:41:05 CST 2010


branch "ami-route" has been updated
       via  aff455f2325eaeccf88893db4ed650d5062272ba (commit)
      from  b962dd79ee29ad9a06c680b0dbe588104629b98b (commit)

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


- Log -----------------------------------------------------------------
commit aff455f2325eaeccf88893db4ed650d5062272ba
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Nov 18 10:45:48 2010 -0600

    Use "const" qualifier for new exception catching blocks added in this branch.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 317e86d..68b8ec7 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -69,7 +69,7 @@ public:
         {
             router->end_routeSession(r);
         }
-        catch (DestinationNotFoundException &)
+        catch (const DestinationNotFoundException &)
         {
             pjsip_inv_end_session(cookie->mInvSession, 404, NULL, &cookie->mTData);
             pjsip_inv_send_msg(cookie->mInvSession, cookie->mTData);
@@ -474,7 +474,7 @@ void PJSipSessionModule::handleNewInvite(pjsip_rx_data *rdata)
             mSessionRouter->begin_routeSession(session->getSessionProxy(), destination, d, cookie);
         }
     }
-    catch (Ice::CommunicatorDestroyedException &)
+    catch (const Ice::CommunicatorDestroyedException &)
     {
         // Everything else doesn't really map so they just become internal server errors
         pjsip_inv_end_session(inv_session, 500, NULL, &tdata);

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list