[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
Tue Sep 28 11:00:07 CDT 2010
branch "master" has been updated
via 9e99b6d939369a2d6a3a6c4699cd35b11a67abbb (commit)
from 3a2da0236713dac3cb4042432a882951e69cc629 (commit)
Summary of changes:
src/SipChannelServiceApp.cpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 9e99b6d939369a2d6a3a6c4699cd35b11a67abbb
Author: Mark Michelson <mmichelson at digium.com>
Date: Tue Sep 28 11:00:14 2010 -0500
Add some debug to startup.
We're having an exception thrown on startup...yuck.
diff --git a/src/SipChannelServiceApp.cpp b/src/SipChannelServiceApp.cpp
index c7c9446..a490ff0 100644
--- a/src/SipChannelServiceApp.cpp
+++ b/src/SipChannelServiceApp.cpp
@@ -495,38 +495,49 @@ void SipChannelServiceApp::initialize(const std::string appName)
boost::shared_ptr<SipChannelServiceEventPublisher> eventPublisherPtr(new SipChannelServiceEventPublisher());
mDataModelInstance.mEventPublisher = eventPublisherPtr;
+ std::cerr << "[DEBUG] Created SIP Channel Service event publisher" << std::endl;
// Initialize PJSIP
mPJSipManager = new PJSipManager(communicator()->getProperties());
mDataModelInstance.mPJSipManager = mPJSipManager;
+ std::cerr << "[DEBUG] Created PJSIP manager" << std::endl;
// Create the global adapter.
mGlobalAdapter = communicator()->createObjectAdapter("SipChannelServiceAdapter");
+ std::cerr << "[DEBUG] Created global object adapter" << std::endl;
// Create the local adapter.
mLocalAdapter = communicator()->createObjectAdapter("SipChannelServiceLocalAdapter");
+ std::cerr << "[DEBUG] Created local object adapter" << std::endl;
boost::shared_ptr<SipEndpointFactory> endpointFactoryPtr(new SipEndpointFactory(mGlobalAdapter));
mDataModelInstance.mEndpointFactory = endpointFactoryPtr;
+ std::cerr << "[DEBUG] Created SIP endpoint factory" << std::endl;
// Create and configure our Endpoint Locator.
mDataModelInstance.mEndpointLocator = new SipChannelServiceEndpointLocator(endpointFactoryPtr);
mGlobalAdapter->add(mDataModelInstance.mEndpointLocator, communicator()->stringToIdentity(EndpointLocatorObjectId));
+ std::cerr << "[DEBUG] Got proxy to endpoint locator" << std::endl;
// Create and publish our ComponentService interface support.
mComponentService = new ComponentServiceImpl(*this);
mLocalAdapter->add(mComponentService, communicator()->stringToIdentity(ComponentServiceId));
+ std::cerr << "[DEBUG] Added component service to object adapter" << std::endl;
// Create and publish our state replicator listener interface.
mReplicatorListener = new SipStateReplicatorListenerI();
mReplicatorListenerProxy = SipStateReplicatorListenerPrx::uncheckedCast(mLocalAdapter->addWithUUID(mReplicatorListener));
+ std::cerr << "[DEBUG] Got proxy to SIP state replicator" << std::endl;
mGlobalAdapter->activate();
mLocalAdapter->activate();
+ std::cerr << "[DEBUG] Activated object adapters" << std::endl;
configureEndpoints(endpointFactoryPtr);
+ std::cerr << "[DEBUG] Endpoints configured" << std::endl;
registerPJSipModules();
+ std::cerr << "[DEBUG] Registered PJSIP modules" << std::endl;
}
catch(...)
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list