Lines Matching defs:session

412     // Wrapper call session to interworking the IMS service (server).
414 // Call profile of the current session.
423 // Media session to control media (audio/video) operations for an IMS call
429 // While a merge is progressing, we bury any session termination requests
436 // termination request was made on the original session in case we need to act
513 public static boolean isSessionAlive(ImsCallSession session) {
514 return session != null && session.isAlive();
536 throw new ImsException("No call session",
557 throw new ImsException("No call session",
589 * @return the session state
604 * @return the session object that carries this call
617 * @return the media session object that handles the media operation of this call
638 throw new ImsException("No call session",
827 * @param session the session that receives the incoming call
828 * @throws ImsException if the IMS service fails to attach this object to the session
830 public void attachSession(ImsCallSession session) throws ImsException {
832 log("attachSession :: session=" + session);
836 mSession = session;
851 * @param session the {@link ImsCallSession} for carrying out the call
855 public void start(ImsCallSession session, String callee)
858 log("start(1) :: session=" + session + ", callee=" + callee);
862 mSession = session;
865 session.setListener(createCallSessionListener());
866 session.start(callee, mCallProfile);
878 * @param session the {@link ImsCallSession} for carrying out the call
882 public void start(ImsCallSession session, String[] participants)
885 log("start(n) :: session=" + session + ", callee=" + participants);
889 mSession = session;
892 session.setListener(createCallSessionListener());
893 session.start(participants, mCallProfile);
1015 // (when the underlying session of the host of the new conference
1060 throw new ImsException("No call session",
1099 throw new ImsException("No call session",
1130 loge("merge :: no call session");
1131 throw new ImsException("No call session",
1144 // session will just go active and any other sessions will be terminated
1229 throw new ImsException("No call session",
1268 throw new ImsException("No call session",
1289 throw new ImsException("No call session",
1309 throw new ImsException("No call session",
1346 log("startDtmf :: session=" + mSession + ", code=" + c);
1361 log("stopDtmf :: session=" + mSession);
1384 throw new ImsException("No call session",
1400 * Creates an IMS call session listener.
1406 private ImsCall createNewCall(ImsCallSession session, ImsCallProfile profile) {
1410 call.attachSession(session);
1534 * Perform all cleanup and notification around the termination of a session.
1536 * we receive a session termination on the primary session when we are
1540 * @param reasonInfo The reason for the session termination
1557 // session is really terminated. Let's flag this and revisit if
1590 * the transient session used in the process of creating a conference. This function should only
1596 * @param session - The {@link ImsCallSession} that the function needs to analyze
1599 private boolean isTransientConferenceSession(ImsCallSession session) {
1600 if (session != null && session != mSession && session == mTransientConferenceSession) {
1669 // conference. That means that there is a transient session on the merge
1674 loge("processMergeComplete :: No transient session!");
1682 // Since we are the host, we have the transient session attached to us. Let's detach
1687 // Clear the listener for this transient session, we'll create a new listener
1691 // Determine which call the transient session should be moved to. If the current
1692 // call session is still alive and the merge peer's session is not, we have a
1699 // I'm the host but we are moving the transient session to the peer since its
1700 // session was disconnected and my session is still alive. This signifies that
1701 // their session was properly added to the conference but mine was not because
1716 // The transient session stays with us and the disconnect sound should be played
1728 // The transient session stays with us and the disconnect sound should not be
1745 // Add the transient session to the ImsCall that ended up being the host for the
1773 * Handles the case where the session has ended during a merge by reporting the termination
1785 // previously buried termination callback for our primary session now that
1813 * and should have been called on the session that was in the foreground
1840 loge("processMergeFailed :: No transient session!");
1843 // Clean up any work that we performed on the transient session.
1854 // Ensure any terminations are surfaced from this session.
1910 public void callSessionProgressing(ImsCallSession session, ImsStreamMediaProfile profile) {
1911 if (isTransientConferenceSession(session)) {
1912 // If it is a transient (conference) session, there is no action for this signal.
1913 log("callSessionProgressing :: not supported for transient conference session=" +
1914 session);
1919 log("callSessionProgressing :: session=" + session + " profile=" + profile);
1939 public void callSessionStarted(ImsCallSession session, ImsCallProfile profile) {
1941 log("callSessionStarted :: session=" + session + " profile=" + profile);
1944 if (!isTransientConferenceSession(session)) {
1946 // closure as far as this call's primary session is concerned. If we are not
1951 log("callSessionStarted :: on transient session=" + session);
1960 if (isTransientConferenceSession(session)) {
1961 // No further processing is needed if this is the transient session.
1982 public void callSessionStartFailed(ImsCallSession session, ImsReasonInfo reasonInfo) {
1983 if (isTransientConferenceSession(session)) {
1984 // We should not get this callback for a transient session.
1985 log("callSessionStartFailed :: not supported for transient conference session=" +
1986 session);
1991 log("callSessionStartFailed :: session=" + session + " reasonInfo=" + reasonInfo);
2011 public void callSessionTerminated(ImsCallSession session, ImsReasonInfo reasonInfo) {
2012 if (isTransientConferenceSession(session)) {
2013 log("callSessionTerminated :: on transient session=" + session);
2015 // transient session only exists when in the process of a merge and the
2016 // termination of this session is effectively the end of the merge.
2022 log("callSessionTerminated :: session=" + session + " reasonInfo=" + reasonInfo);
2030 // If session has terminated, it is no longer pending merge.
2039 public void callSessionHeld(ImsCallSession session, ImsCallProfile profile) {
2040 if (isTransientConferenceSession(session)) {
2041 // We should not get this callback for a transient session.
2042 log("callSessionHeld :: not supported for transient conference session=" + session);
2047 log("callSessionHeld :: session=" + session + "profile=" + profile);
2053 // If the session was held, it is no longer pending a merge -- this means it could
2084 public void callSessionHoldFailed(ImsCallSession session, ImsReasonInfo reasonInfo) {
2085 if (isTransientConferenceSession(session)) {
2086 // We should not get this callback for a transient session.
2087 log("callSessionHoldFailed :: not supported for transient conference session=" +
2088 session);
2093 log("callSessionHoldFailed :: session" + session + "reasonInfo=" + reasonInfo);
2118 public void callSessionHoldReceived(ImsCallSession session, ImsCallProfile profile) {
2119 if (isTransientConferenceSession(session)) {
2120 // We should not get this callback for a transient session.
2121 log("callSessionHoldReceived :: not supported for transient conference session=" +
2122 session);
2127 log("callSessionHoldReceived :: session=" + session + "profile=" + profile);
2147 public void callSessionResumed(ImsCallSession session, ImsCallProfile profile) {
2148 if (isTransientConferenceSession(session)) {
2149 log("callSessionResumed :: not supported for transient conference session=" +
2150 session);
2155 log("callSessionResumed :: session=" + session + "profile=" + profile);
2191 public void callSessionResumeFailed(ImsCallSession session, ImsReasonInfo reasonInfo) {
2192 if (isTransientConferenceSession(session)) {
2193 log("callSessionResumeFailed :: not supported for transient conference session=" +
2194 session);
2199 log("callSessionResumeFailed :: session=" + session + "reasonInfo=" + reasonInfo);
2219 public void callSessionResumeReceived(ImsCallSession session, ImsCallProfile profile) {
2220 if (isTransientConferenceSession(session)) {
2221 log("callSessionResumeReceived :: not supported for transient conference session=" +
2222 session);
2227 log("callSessionResumeReceived :: session=" + session + "profile=" + profile);
2247 public void callSessionMergeStarted(ImsCallSession session,
2250 log("callSessionMergeStarted :: session=" + session + " newSession=" + newSession +
2260 // There are 2 ways that we can go here. If the session that supplied the params
2261 // is not null, then it is the new session that represents the new conference
2264 if (session == null) {
2282 // Keep track of this session for future callbacks to indicate success
2292 public void callSessionMergeComplete(ImsCallSession session) {
2294 log("callSessionMergeComplete :: session=" + session);
2305 public void callSessionMergeFailed(ImsCallSession session, ImsReasonInfo reasonInfo) {
2307 log("callSessionMergeFailed :: session=" + session + "reasonInfo=" + reasonInfo);
2333 public void callSessionUpdated(ImsCallSession session, ImsCallProfile profile) {
2334 if (isTransientConferenceSession(session)) {
2335 log("callSessionUpdated :: not supported for transient conference session=" +
2336 session);
2341 log("callSessionUpdated :: session=" + session + " profile=" + profile);
2362 public void callSessionUpdateFailed(ImsCallSession session, ImsReasonInfo reasonInfo) {
2363 if (isTransientConferenceSession(session)) {
2364 log("callSessionUpdateFailed :: not supported for transient conference session=" +
2365 session);
2370 log("callSessionUpdateFailed :: session=" + session + " reasonInfo=" + reasonInfo);
2390 public void callSessionUpdateReceived(ImsCallSession session, ImsCallProfile profile) {
2391 if (isTransientConferenceSession(session)) {
2393 "session=" + session);
2398 log("callSessionUpdateReceived :: session=" + session + " profile=" + profile);
2419 public void callSessionConferenceExtended(ImsCallSession session, ImsCallSession newSession,
2421 if (isTransientConferenceSession(session)) {
2423 "session=" + session);
2428 log("callSessionConferenceExtended :: session=" + session + " newSession=" +
2435 callSessionConferenceExtendFailed(session, new ImsReasonInfo());
2456 public void callSessionConferenceExtendFailed(ImsCallSession session,
2458 if (isTransientConferenceSession(session)) {
2460 "conference session=" + session);
2486 public void callSessionConferenceExtendReceived(ImsCallSession session,
2488 if (isTransientConferenceSession(session)) {
2490 "conference session" + session);
2522 public void callSessionInviteParticipantsRequestDelivered(ImsCallSession session) {
2523 if (isTransientConferenceSession(session)) {
2525 "conference session=" + session);
2549 public void callSessionInviteParticipantsRequestFailed(ImsCallSession session,
2551 if (isTransientConferenceSession(session)) {
2553 "conference session=" + session);
2577 public void callSessionRemoveParticipantsRequestDelivered(ImsCallSession session) {
2578 if (isTransientConferenceSession(session)) {
2580 "conference session=" + session);
2604 public void callSessionRemoveParticipantsRequestFailed(ImsCallSession session,
2606 if (isTransientConferenceSession(session)) {
2608 "conference session=" + session);
2632 public void callSessionConferenceStateUpdated(ImsCallSession session,
2634 if (isTransientConferenceSession(session)) {
2636 "conference session=" + session);
2648 public void callSessionUssdMessageReceived(ImsCallSession session, int mode,
2650 if (isTransientConferenceSession(session)) {
2652 "conference session=" + session);
2677 public void callSessionTtyModeReceived(ImsCallSession session, int mode) {
2833 * Determines if the call session is pending merge into a conference or not.
2842 * Sets flag indicating whether the call session is pending merge into a conference or not.
2859 * and the transient conference session is alive in the case of an initial conference.
2881 // 2. The transient conference session is alive.
2890 // Only check the transient session when there is no existing conference
2901 // Only check the transient session when there is no existing conference
2963 sb.append(" session:");