[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "indicate" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Apr 7 09:34:42 CDT 2011
branch "indicate" has been updated
via 413bb6369fb40c99a952305fa924dc087da7792c (commit)
from 626ae7f220d8b0ad44820a5110eeceb61248d032 (commit)
Summary of changes:
src/SipSession.cpp | 85 ----------------------------------------------------
1 files changed, 0 insertions(+), 85 deletions(-)
- Log -----------------------------------------------------------------
commit 413bb6369fb40c99a952305fa924dc087da7792c
Author: Joshua Colp <jcolp at digium.com>
Date: Thu Apr 7 11:37:50 2011 -0300
Remove old code.
diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index 0354394..6fb6409 100644
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -293,29 +293,6 @@ void SipSession::indicate(const AsteriskSCF::SessionCommunications::V1::Indicati
}
/**
- * An implementation of the connect method as defined in SessionCommunications.ice which sends
- * a 200 OK with SDP to the SIP endpoint.
- */
-void SipSession::connect(const Ice::Current&)
-{
- pjmedia_sdp_session *sdp = createSDPOffer();
- pjsip_tx_data *packet;
- if ((pjsip_inv_answer(mImplPriv->mInviteSession, 200, NULL, sdp, &packet)) == PJ_SUCCESS)
- {
- pjsip_inv_send_msg(mImplPriv->mInviteSession, packet);
- }
-}
-
-/**
- * An implementation of the flash method as defined in SessionCommunications.ice which sends
- * nothing, presently, to the SIP endpoint.
- */
-void SipSession::flash(const Ice::Current&)
-{
- // This is usually transported using INFO or RFC2833, so for now just pretend it does not exist
-}
-
-/**
* An implementation of the getEndpoint method as defined in SessionCommunications.ice
*/
AsteriskSCF::SessionCommunications::V1::SessionEndpointPrx SipSession::getEndpoint(const Ice::Current&)
@@ -427,37 +404,6 @@ void SipSession::removeBridge(const AsteriskSCF::SessionCommunications::V1::Sess
}
/**
- * An implementation of the hold method as defined in SessionCommunications.ice which sends
- * a reinvite with sendonly attribute and no connection info to the SIP endpoint.
- */
-void SipSession::hold(const Ice::Current&)
-{
- // TODO: Update SDP with sendonly attribute and no IP
-
- // TODO: This is actually passing the hold through, we will need to support local generation
-
- pjsip_tx_data *packet;
- if ((pjsip_inv_reinvite(mImplPriv->mInviteSession, NULL, NULL, &packet)) == PJ_SUCCESS)
- {
- pjsip_inv_send_msg(mImplPriv->mInviteSession, packet);
- }
-}
-
-/**
- * An implementation of the progress method as defined in SessionCommunications.ice which sends
- * a 183 Session Progress with SDP to the SIP endpoint.
- */
-void SipSession::progress(const AsteriskSCF::SessionCommunications::V1::ResponseCodePtr&, const Ice::Current&)
-{
- pjmedia_sdp_session *sdp = createSDPOffer();
- pjsip_tx_data *packet;
- if ((pjsip_inv_answer(mImplPriv->mInviteSession, 183, NULL, sdp, &packet)) == PJ_SUCCESS)
- {
- pjsip_inv_send_msg(mImplPriv->mInviteSession, packet);
- }
-}
-
-/**
* An implementation of the removeListener method as defined in SessionCommunications.ice
*/
void SipSession::removeListener(const AsteriskSCF::SessionCommunications::V1::SessionListenerPrx& listener, const Ice::Current&)
@@ -477,20 +423,6 @@ void SipSession::removeListener(const AsteriskSCF::SessionCommunications::V1::Se
}
/**
- * An implementation of the ring method as defined in SessionCommunications.ice which sends
- * a 180 Ringing without SDP to the SIP endpoint.
- */
-void SipSession::ring(const Ice::Current&)
-{
- pjsip_tx_data *packet;
-
- if ((pjsip_inv_answer(mImplPriv->mInviteSession, 180, NULL, NULL, &packet)) == PJ_SUCCESS)
- {
- pjsip_inv_send_msg(mImplPriv->mInviteSession, packet);
- }
-}
-
-/**
* An implementation of the start method as defined in SessionCommunications.ice which sends
* an INVITE with SDP to the SIP endpoint.
*/
@@ -586,23 +518,6 @@ void SipSession::stop(const AsteriskSCF::SessionCommunications::V1::ResponseCode
}
/**
- * An implementation of the unhold method as defined in SessionCommunications.ice which sends
- * a reinvite with sendrecv attribute and connection information to the SIP endpoint.
- */
-void SipSession::unhold(const Ice::Current&)
-{
- // TODO: Update SDP with sendrecv and IP
-
- // TODO: This is actually passing the unhold through, we will need to support local generation
-
- pjsip_tx_data *packet;
- if ((pjsip_inv_reinvite(mImplPriv->mInviteSession, NULL, NULL, &packet)) == PJ_SUCCESS)
- {
- pjsip_inv_send_msg(mImplPriv->mInviteSession, packet);
- }
-}
-
-/**
* Internal function called to destroy an endpoint. This is controlled by signaling.
*/
void SipSession::destroy()
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list