[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
Fri Sep 24 12:43:36 CDT 2010


branch "master" has been updated
       via  7848baf1b065b3b404c945cf76aa5fc78f9b9a51 (commit)
      from  449ef8e79aaf01d87b87ba25efba7c8f4cd8db0c (commit)

Summary of changes:
 src/PJSipSessionModule.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 7848baf1b065b3b404c945cf76aa5fc78f9b9a51
Author: Joshua Colp <jcolp at digium.com>
Date:   Fri Sep 24 14:42:53 2010 -0300

    Only talk to a replicator if one is actually configured and operational.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index a301769..68dabf5 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -236,11 +236,11 @@ static void replicateState(PJSipDialogModInfo *dlgInfo, PJSipTransactionModInfo
 		}
 	}
 	SipStateReplicatorPrx replicator = SipChannelServiceDataModel::getInstance().getStateReplicator();
-	if (setItems.size() != 0)
+	if (setItems.size() != 0 && replicator)
 	{
 		replicator->setState(setItems);
 	}
-	if (removeItems.size() != 0)
+	if (removeItems.size() != 0 && replicator)
 	{
 		replicator->removeState(removeItems);
 	}

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list