[asterisk-scf-commits] asterisk-scf/integration/media_operations_core.git branch "retry_deux" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Apr 5 10:55:27 CDT 2012


branch "retry_deux" has been updated
       via  9dfe52713c4189d6f797e693dc7915538f20f403 (commit)
      from  80c87649ef2d9c30d53765f5131e14cd2642c8ae (commit)

Summary of changes:
 src/InbandTelephonyEvents.cpp                 |    4 +---
 src/MediaOperationStateReplicatorListener.cpp |    4 +---
 src/TranslatorOperationFactory.cpp            |    4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)


- Log -----------------------------------------------------------------
commit 9dfe52713c4189d6f797e693dc7915538f20f403
Author: David M. Lee <dlee at digium.com>
Date:   Thu Apr 5 10:54:49 2012 -0500

    Used shared default TTL

diff --git a/src/InbandTelephonyEvents.cpp b/src/InbandTelephonyEvents.cpp
index 1ddf177..0d8be0d 100644
--- a/src/InbandTelephonyEvents.cpp
+++ b/src/InbandTelephonyEvents.cpp
@@ -62,8 +62,6 @@ namespace AsteriskSCF
 namespace MediaOperationsCore
 {
 
-const int TTL_SECONDS = 180;
-
 class InbandTelephonyEventOperation : public TranslatorOperation
 {
     class InbandTelephonyEventSource : public TelephonyEventSource
@@ -350,7 +348,7 @@ InbandTelephonyEventOperationFactory::InbandTelephonyEventOperationFactory(
             logger,
             replicationContext,
             "InbandTelephonyEventFactory"),
-      mOperationContextCache(Operations::OperationContextCache::create(TTL_SECONDS, logger, ""))
+      mOperationContextCache(Operations::OperationContextCache::create(DEFAULT_TTL_SECONDS, logger, ""))
 {
     mLocatorParams->category = MediaOperationDiscoveryCategory;
     mLocatorParams->service = InbandTelephonyEventsDiscoveryCategory;
diff --git a/src/MediaOperationStateReplicatorListener.cpp b/src/MediaOperationStateReplicatorListener.cpp
index 166af78..5b00da6 100644
--- a/src/MediaOperationStateReplicatorListener.cpp
+++ b/src/MediaOperationStateReplicatorListener.cpp
@@ -29,10 +29,8 @@ namespace MediaOperationsCore
 
 using namespace AsteriskSCF::Replication::MediaOperationsCore::V1;
 
-const int TTL_SECONDS = 180;
-
 MediaOperationStateReplicatorListenerImpl::MediaOperationStateReplicatorListenerImpl(const Ice::ObjectAdapterPtr& adapter)
-    : mOperationContextCache(Operations::OperationContextCache::create(TTL_SECONDS)), mAdapter(adapter)
+    : mOperationContextCache(Operations::OperationContextCache::create(Operations::DEFAULT_TTL_SECONDS)), mAdapter(adapter)
 {
 }
 
diff --git a/src/TranslatorOperationFactory.cpp b/src/TranslatorOperationFactory.cpp
index a9c0405..397d49e 100644
--- a/src/TranslatorOperationFactory.cpp
+++ b/src/TranslatorOperationFactory.cpp
@@ -28,15 +28,13 @@ using namespace AsteriskSCF::Media::V1;
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::Operations;
 
-const int TTL_SECONDS = 180;
-
 TranslatorOperationFactory::TranslatorOperationFactory(
         const Ice::ObjectAdapterPtr& adapter,
         const Logger& logger,
         const MediaOperationReplicationContextPtr& replicationContext,
         const std::string& name)
     : MediaOperationFactoryImpl(adapter, logger, replicationContext, name),
-      mOperationContextCache(Operations::OperationContextCache::create(TTL_SECONDS))
+      mOperationContextCache(Operations::OperationContextCache::create(DEFAULT_TTL_SECONDS))
 {
     mLocatorParams->category = MediaOperationDiscoveryCategory;
     mLocatorParams->service = MediaOperationDiscoveryTranslatorService;

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


-- 
asterisk-scf/integration/media_operations_core.git



More information about the asterisk-scf-commits mailing list