diff options
author | repo sync <cywang@google.com> | 2011-06-23 19:40:36 +0800 |
---|---|---|
committer | repo sync <cywang@google.com> | 2011-06-27 16:20:28 +0800 |
commit | 1aceda35cc607856ec2e960e0c6cfc6aea87ab8e (patch) | |
tree | df58a646008282041c3f1e1b959a888e01f0f6fe /voip/java/android/net/sip/SipSession.java | |
parent | 14f14863c508ff38fb2fe925c89e2bb2228fcffe (diff) |
Support Invite w/ Replaces request.
bug:3326870
Change-Id: Idbfbe7e3cc6ba83874d42bfb7d149866f454e70a
Diffstat (limited to 'voip/java/android/net/sip/SipSession.java')
-rw-r--r-- | voip/java/android/net/sip/SipSession.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/voip/java/android/net/sip/SipSession.java b/voip/java/android/net/sip/SipSession.java index 5629b3c56d50..5ba162606c61 100644 --- a/voip/java/android/net/sip/SipSession.java +++ b/voip/java/android/net/sip/SipSession.java @@ -160,6 +160,17 @@ public final class SipSession { } /** + * Called when the call is being transferred to a new one. + * + * @hide + * @param newSession the new session that the call will be transferred to + * @param sessionDescription the new peer's session description + */ + public void onCallTransferring(SipSession newSession, + String sessionDescription) { + } + + /** * Called when an error occurs during session initialization and * termination. * @@ -489,6 +500,16 @@ public final class SipSession { } } + public void onCallTransferring(ISipSession session, + String sessionDescription) { + if (mListener != null) { + mListener.onCallTransferring( + new SipSession(session, SipSession.this.mListener), + sessionDescription); + + } + } + public void onCallChangeFailed(ISipSession session, int errorCode, String message) { if (mListener != null) { |