[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 Nov 1 13:55:18 CDT 2010
branch "master" has been updated
via 4973cd441e119715fb35632c1e5a5a38138de8fb (commit)
from 826fb785a64ae94050ea18c3eab26d6bdba35e1a (commit)
Summary of changes:
src/PJSipSessionModuleConstruction.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 4973cd441e119715fb35632c1e5a5a38138de8fb
Author: Mark Michelson <mmichelson at digium.com>
Date: Mon Nov 1 13:57:17 2010 -0500
Don't use a stack variable for setting the PJSIP session module's name.
diff --git a/src/PJSipSessionModuleConstruction.cpp b/src/PJSipSessionModuleConstruction.cpp
index 847ef3f..39ebde6 100644
--- a/src/PJSipSessionModuleConstruction.cpp
+++ b/src/PJSipSessionModuleConstruction.cpp
@@ -22,6 +22,8 @@ namespace AsteriskSCF
namespace SipSessionManager
{
+static char moduleName[] = "PJSipSessionModule";
+
static PJSipSessionModule *sessionModule;
static pj_status_t sessionLoad(pjsip_endpoint *endpoint)
@@ -95,13 +97,12 @@ PJSipSessionModule::PJSipSessionModule(pjsip_endpoint *endpt,
AsteriskSCF::Core::Discovery::V1::ServiceLocatorPrx serviceLocator,
AsteriskSCF::ProxyWrapper::ProxyWrapper<AsteriskSCF::SIP::V1::SipStateReplicatorPrx> stateReplicator,
AsteriskSCF::System::Component::V1::ReplicaPtr replica)
- : mName("Session Module"), mEndpointFactory(endpointFactoryPtr),
+ : mName(moduleName), mEndpointFactory(endpointFactoryPtr),
mSessionRouter(sessionRouter), mServiceLocator(serviceLocator),
mStateReplicator(stateReplicator), mReplica(replica)
{
sessionModule = this;
- char name[] = "AsteriskSCF";
- mModule.name = pj_str(name);
+ mModule.name = pj_str(moduleName);
mModule.priority = PJSIP_MOD_PRIORITY_APPLICATION;
mModule.load = sessionLoad;
mModule.start = sessionStart;
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list