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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Sep 15 11:16:12 CDT 2010


branch "master" has been updated
       via  d16eb416395e2fcf7646da8eb05cee92083a5a86 (commit)
      from  87bfba1826eb2037adcdc90eedaddbe321e4ac63 (commit)

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


- Log -----------------------------------------------------------------
commit d16eb416395e2fcf7646da8eb05cee92083a5a86
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Sep 15 13:22:16 2010 -0300

    Having a state replicator is not a requirement for running at this point in time, and probably never.

diff --git a/src/SipChannelServiceApp.cpp b/src/SipChannelServiceApp.cpp
index 5a89256..78a4cea 100644
--- a/src/SipChannelServiceApp.cpp
+++ b/src/SipChannelServiceApp.cpp
@@ -369,8 +369,15 @@ void SipChannelServiceApp::locateStateReplicator()
    ServiceLocatorParamsPtr genericparams = new ServiceLocatorParams();
    genericparams->category = SIP::V1::StateReplicatorDiscoveryCategory;
 
+   try
+   {
    Ice::ObjectPrx objectPrx = mDataModelInstance.mServiceLocator->locate(genericparams);
    mDataModelInstance.mStateReplicator = SIP::V1::SipStateReplicatorPrx::checkedCast(objectPrx);
+   }
+   catch (...)
+   {
+      std::cout << "State replicator could not be found, operating without." << std::endl;
+   }
 
 }
 

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list