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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Feb 10 11:38:17 CST 2012


branch "master" has been updated
       via  7207e3ad1c6587173441bd94e05c25f5397156b5 (commit)
      from  aa883ce019d88df3a9b50f2df78370ea6c8837c1 (commit)

Summary of changes:
 src/ComponentStateReplicator.cpp |    3 ++-
 src/SIPConfiguration.cpp         |   10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 7207e3ad1c6587173441bd94e05c25f5397156b5
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Feb 10 11:37:46 2012 -0600

    Changes to base class ComponentStateReplicator and some logging during configuration.

diff --git a/src/ComponentStateReplicator.cpp b/src/ComponentStateReplicator.cpp
index 34446c6..d2f6383 100644
--- a/src/ComponentStateReplicator.cpp
+++ b/src/ComponentStateReplicator.cpp
@@ -45,7 +45,8 @@ public:
     ComponentStateReplicator() :
       AsteriskSCF::Component::ComponentStateReplicator(lg, 
           AsteriskSCF::Replication::SIPSessionManager::V1::StateReplicatorComponentCategory, 
-          true) // if true, supports configuration
+          true,                               // if true, supports configuration
+          AsteriskSCF::Configuration::SIPSessionManager::V1::ConfigurationDiscoveryCategory) 
     {
     }
 
diff --git a/src/SIPConfiguration.cpp b/src/SIPConfiguration.cpp
index 484d7a2..7f133a0 100644
--- a/src/SIPConfiguration.cpp
+++ b/src/SIPConfiguration.cpp
@@ -25,6 +25,7 @@
 #include <boost/bind.hpp>
 
 #include <AsteriskSCF/System/Component/ConfigurationIf.h>
+#include <AsteriskSCF/Logger.h>
 
 #include "SIPConfigurationIf.h"
 #include "PJSIPManager.h"
@@ -38,12 +39,18 @@
 #include <vector>
 #include <AsteriskSCF/Helpers/Network.h>
 
+using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::System::Configuration::V1;
 using namespace AsteriskSCF::Configuration::SIPSessionManager::V1;
 using namespace AsteriskSCF::SessionCommunications::PartyIdentification::V1;
 using namespace AsteriskSCF::Core::Routing::V1;
 using namespace std;
 
+namespace
+{
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.SIPSessionGateway");
+}
+
 //
 // Note: the general group receives a default value in this refactoring no matter what, I suspect that this is actually
 // wrong and will address.
@@ -1552,6 +1559,7 @@ private:
         if (!endpoint)
         {
 	    endpoint = mEndpointFactory->createEndpoint(group->name);
+            lg(Debug) << "Configuration: Added endpoint " << group->name;
         }
         return boost::shared_ptr<EndpointConfigHelper>(
             new EndpointConfigHelper(endpoint, mEndpointFactory, mRoutingServiceLocatorRegistry, mRoutingId))->getVisitor();
@@ -1940,6 +1948,8 @@ static void runPostProcessing()
 void ConfigurationServiceImpl::setConfiguration(const AsteriskSCF::System::Configuration::V1::ConfigurationGroupSeq& groups,
         const Ice::Current&)
 {
+    lg(Debug) << "Configuration: setting configuration data.";
+
     class GroupsVisitor : public SIPConfigurationGroupVisitor
     {
     public:

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list