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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Apr 11 13:55:34 CDT 2011


branch "configuration" has been updated
       via  df6502431fb6d495c88eb9a223820f063432bd7e (commit)
      from  6fa0d1a69f5290d1154951965017380dc4e61825 (commit)

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


- Log -----------------------------------------------------------------
commit df6502431fb6d495c88eb9a223820f063432bd7e
Author: Joshua Colp <jcolp at digium.com>
Date:   Mon Apr 11 15:58:27 2011 -0300

    Move initialization of the routing service proxy so it can be passed to the configuration service.

diff --git a/src/SipSessionManagerApp.cpp b/src/SipSessionManagerApp.cpp
index 82738d5..c896e1c 100644
--- a/src/SipSessionManagerApp.cpp
+++ b/src/SipSessionManagerApp.cpp
@@ -533,6 +533,9 @@ void SipSessionManager::initialize(const std::string appName, const Ice::Communi
         mEndpointFactory.reset(new SipEndpointFactory(mGlobalAdapter, mPJSipManager, mServiceLocator, mReplicaService));
         lg(Debug) << "Created SIP endpoint factory";
 
+	// Locate the Routing Service so that we can do routing. This is done here so it can be passed to the configuration service.
+	locateRoutingService();
+
         // Create and publish our Configuration interface support.
         mConfigurationService = new ConfigurationServiceImpl(mPJSipManager, mEndpointFactory, mRoutingId, mRoutingServiceLocatorRegistry);
         mGlobalAdapter->add(mConfigurationService, mCommunicator->stringToIdentity(ConfigurationServiceId));
@@ -578,9 +581,6 @@ void SipSessionManager::start(const string& name, const Ice::CommunicatorPtr& ic
     // can be located.
     registerWithServiceLocator();
 
-    // Locate the Routing Service so that we can do routing.
-    locateRoutingService();
-
     // Locate the Session Router so we can REALLY do routing.
     locateSessionRouter();
 

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list