[asterisk-scf-commits] asterisk-scf/integration/routing.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Oct 20 15:44:43 CDT 2010
branch "master" has been updated
via 0c779c4b6097467d51a5ef8932786b544f846beb (commit)
from 21d2b2dbb486a0552c4264016135cc2156fe8b3b (commit)
Summary of changes:
src/EndpointRegistry.cpp | 2 +-
src/SessionRouter.cpp | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 0c779c4b6097467d51a5ef8932786b544f846beb
Author: Ken Hunt <ken.hunt at digium.com>
Date: Wed Oct 20 15:43:22 2010 -0500
Added additional debug print of the proxies.
diff --git a/src/EndpointRegistry.cpp b/src/EndpointRegistry.cpp
index 19cce64..5aebfc4 100644
--- a/src/EndpointRegistry.cpp
+++ b/src/EndpointRegistry.cpp
@@ -127,7 +127,7 @@ void EndpointRegistry::addEndpointLocator(const std::string& locatorId, const Re
{
try
{
- lg(Debug) << "EndpointRegistry::addEndpointLocator() adding locator " << locatorId;
+ lg(Debug) << "EndpointRegistry::addEndpointLocator() adding locator for " << locatorId << ". Proxy details: " << locator->ice_toString() << std::endl;
EndpointLocatorMapIterator existing(0);
EndpointLocatorMapIterator end(0);
diff --git a/src/SessionRouter.cpp b/src/SessionRouter.cpp
index 88ada7e..a78628c 100644
--- a/src/SessionRouter.cpp
+++ b/src/SessionRouter.cpp
@@ -94,7 +94,7 @@ public:
}
catch(const Ice::Exception &e)
{
- lg(Error) << "Session Listener unable to forward stop to session " << (*s) << " due to " << e.what() << std::endl;
+ lg(Error) << "Session Listener unable to forward stop to session " << (*s)->ice_toString() << " due to " << e.what() << std::endl;
}
}
@@ -134,7 +134,7 @@ public:
}
catch(const Ice::Exception &e)
{
- lg(Error) << "Exception adding listener to session " << session << ". Details: " << e.what() << std::endl;
+ lg(Error) << "Exception adding listener to session " << session->ice_toString() << ". Details: " << e.what() << std::endl;
}
}
}
@@ -165,12 +165,12 @@ public:
{
try
{
- lg(Debug) << "Removing listener from session " << (*s) << std::endl ;
+ lg(Debug) << "Removing listener from session " << (*s)->ice_toString() << std::endl ;
(*s)->removeListener(mListenerPrx);
}
catch(const Ice::Exception &e)
{
- lg(Error) << "Exception removing listener from session " << (*s) << ". Details: " << e.what() << std::endl;
+ lg(Error) << "Exception removing listener from session " << (*s)->ice_toString() << ". Details: " << e.what() << std::endl;
}
}
@@ -384,6 +384,8 @@ void SessionRouter::routeSession(const AsteriskSCF::SessionCommunications::V1::S
// Create a session on the destination.
lg(Debug) << "routeSession(): Creating a session at destination " << destination;
SessionPrx destSession = sessionEndpoint->createSession(destination, listener->getProxy());
+ lg(Debug) << " Session proxy: " << destSession->ice_toString() << std::endl;
+
listener->addSession(destSession);
newSessions.push_back(destSession);
}
@@ -564,7 +566,7 @@ void SessionRouter::connectBridgedSessions(const SessionPrx& sessionToReplace,
}
catch(const NotBridged& e)
{
- lg(Error) << "connectBridgedSessions(): Unable to obtain bridge from sessionToReplace in connectBridgedSessions(). " ;
+ lg(Error) << "connectBridgedSessions(): Unable to obtain bridge from sessionToReplace " << sessionToReplace->ice_toString() << " in connectBridgedSessions(). " ;
throw e; // rethrow
}
-----------------------------------------------------------------------
--
asterisk-scf/integration/routing.git
More information about the asterisk-scf-commits
mailing list