[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
Mon Oct 18 16:30:31 CDT 2010


branch "master" has been updated
       via  403266007b0859000ddefa87439ab0f090a95dbf (commit)
      from  faaece515a3fe152bedc86bd9473f3e2015d6f13 (commit)

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


- Log -----------------------------------------------------------------
commit 403266007b0859000ddefa87439ab0f090a95dbf
Author: Mark Michelson <mmichelson at digium.com>
Date:   Mon Oct 18 16:33:15 2010 -0500

    Only register with the routing service if we're the primary SIP instance.

diff --git a/src/SipChannelServiceApp.cpp b/src/SipChannelServiceApp.cpp
index 4a49f85..d1d7d76 100644
--- a/src/SipChannelServiceApp.cpp
+++ b/src/SipChannelServiceApp.cpp
@@ -568,7 +568,11 @@ void SipChannelService::start(const string& name, const Ice::CommunicatorPtr& ic
 
    // Register our Endpoint Locator so that we can provide endpoints to the
    // Routing Service for the endpoints we manage.
-   registerWithRoutingService();
+   if (mCommunicator->getProperties()->getPropertyWithDefault("Sip.StateReplicatorListener", "no") != "yes")
+   {
+      //Only register with the routing service if we're the primary SIP instance.
+      registerWithRoutingService();
+   }
 }
 
 void SipChannelService::stop()

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list