[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "threading" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Sun May 15 17:15:51 CDT 2011
branch "threading" has been updated
via 080f90db10d408e73b4dc9e8eeea8f32c5c0fcb1 (commit)
from 9353dd8149dd64b463bd207a9be0bc5bd02e1b8f (commit)
Summary of changes:
src/PJSipSessionModule.cpp | 73 --------------------------------------------
1 files changed, 0 insertions(+), 73 deletions(-)
- Log -----------------------------------------------------------------
commit 080f90db10d408e73b4dc9e8eeea8f32c5c0fcb1
Author: Mark Michelson <mmichelson at digium.com>
Date: Sun May 15 17:15:51 2011 -0500
Remove unused AMI callback classes.
diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index d4f3883..85e4b4a 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -102,79 +102,6 @@ private:
};
typedef IceUtil::Handle<RouteSessionCallback> RouteSessionCallbackPtr;
-
-class ConnectBridgedSessionsWithDestinationCallback : public IceUtil::Shared
-{
-public:
- ConnectBridgedSessionsWithDestinationCallback(pjsip_inv_session *inv_session,
- pjsip_tx_data *tdata,
- pjsip_transaction *tsx,
- SipSessionPtr session,
- const std::string& target,
- const std::string& operationId)
- : mInvSession(inv_session),
- mTdata(tdata),
- mTsx(tsx),
- mSession(session),
- mTarget(target),
- mOperationId(operationId)
- {
- }
-
- void callback(const Ice::AsyncResultPtr &r)
- {
- SessionRouterPrx router = SessionRouterPrx::uncheckedCast(r->getProxy());
- try
- {
- router->end_connectBridgedSessions(r);
- }
- catch (const AsteriskSCF::Core::Routing::V1::DestinationNotFoundException &)
- {
- lg(Debug) << "ConnectBridgedSessionsWithDestination sending 404 due to destination not found for target: "
- << mTarget;
-
- pjsip_dlg_modify_response(mInvSession->dlg, mTdata, 400, NULL);
- pjsip_dlg_send_response(mInvSession->dlg, mTsx, mTdata);
- return;
- }
- catch (const std::exception &e)
- {
- lg(Debug) << "ConnectBridgedSessionsWithDestination sending 400 due to exception: " << e.what();
- pjsip_dlg_modify_response(mInvSession->dlg, mTdata, 400, NULL);
- pjsip_dlg_send_response(mInvSession->dlg, mTsx, mTdata);
- return;
- }
- pjsip_dlg_send_response(mInvSession->dlg, mTsx, mTdata);
-
- Ice::Current current;
- lg(Debug) << "ConnectBridgedSessionsWithDestination calling session->stop(). ";
- mSession->stop(new ResponseCode(16), current);
- }
-private:
- pjsip_inv_session *mInvSession;
- pjsip_tx_data *mTdata;
- pjsip_transaction *mTsx;
- SipSessionPtr mSession;
- std::string mTarget;
- std::string mOperationId;
-};
-
-typedef IceUtil::Handle<ConnectBridgedSessionsWithDestinationCallback> ConnectBridgedSessionsWithDestinationCallbackPtr;
-
-class ListenerCallback : public IceUtil::Shared
-{
-public:
- ListenerCallback(const std::string& name) : mCallbackName(name) {}
- void failure(const Ice::Exception& ex)
- {
- lg(Error) << "Ice exception when attempting to relate " << mCallbackName << " state: " << ex.what();
- }
-private:
- const std::string mCallbackName;
-};
-
-typedef IceUtil::Handle<ListenerCallback> ListenerCallbackPtr;
-
PJSipSessionModInfo::PJSipSessionModInfo(pjsip_inv_session *inv_session,
const SipSessionPtr& session) :
mSessionState(new SipSessionStateItem),
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list