[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "locate-with_id" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Jun 30 14:52:30 CDT 2011


branch "locate-with_id" has been created
        at  3a799fdf5587a0a62e97b1bc40963e438b9fe08e (commit)

- Log -----------------------------------------------------------------
commit 3a799fdf5587a0a62e97b1bc40963e438b9fe08e
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Thu Jun 30 14:47:16 2011 -0500

    Fixed locate params for the replicator.

diff --git a/src/MediaRTPpjmedia.cpp b/src/MediaRTPpjmedia.cpp
index 1cfe458..78671fb 100644
--- a/src/MediaRTPpjmedia.cpp
+++ b/src/MediaRTPpjmedia.cpp
@@ -482,7 +482,7 @@ void MediaRTPpjmediaApp::start(const std::string&, const Ice::CommunicatorPtr& c
     replicatorParams->category = StateReplicatorDiscoveryCategory;
     replicatorParams->service = mCommunicator->getProperties()->getPropertyWithDefault("Rtp.StateReplicatorService", "default"); 
     replicatorParams->id =
-        mCommunicator->getProperties()->getPropertyWithDefault("Rtp.StateReplicatorName", "default"); 
+        mCommunicator->getProperties()->getProperty("Rtp.StateReplicatorName"); 
 
     try
     {  
@@ -559,12 +559,13 @@ void MediaRTPpjmediaApp::start(const std::string&, const Ice::CommunicatorPtr& c
 
     if (mReplicaService->isActive() == true)
     {
-	mGeneralState->mServiceManagement = ServiceManagementPrx::uncheckedCast(
+	    mGeneralState->mServiceManagement = ServiceManagementPrx::uncheckedCast(
             mManagement->addService(RTPMediaServiceProxy, "media_rtp_pjmedia"));
-	/* Now we can add some parameters to help find us. */
-	rtpparams->category = "rtp";
-    rtpparams->service = serviceName;
-	mGeneralState->mServiceManagement->addLocatorParams(rtpparams, mGeneralState->mComparatorId);
+
+	    /* Now we can add some parameters to help find us. */
+	    rtpparams->category = "rtp";
+        rtpparams->service = serviceName;
+	    mGeneralState->mServiceManagement->addLocatorParams(rtpparams, mGeneralState->mComparatorId);
     }
 
     ServiceLocatorParamsPtr genericparams = new ServiceLocatorParams();

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


-- 
asterisk-scf/integration/media_rtp_pjmedia.git



More information about the asterisk-scf-commits mailing list