org.mitre.jsip
Clase SipCallMember
- public class SipCallMember
- extends Object
SipCallMember
public SipCallMember(SipCall parent,
SipUri uri)
- Creates a new member for this call with the given URI. Initially, this sets the Contact URI for the call member to be the same.
- Parameters:
parent
-
uri
-
getStatus
public int getStatus()
- Returns the current status of the call member.
- Returns:
- Status
getSessionDescription
public String getSessionDescription()
- Returns the most recent session description provided by the member for sending media to them.
- Returns:
- String
getSessionDescriptionType
public MimeContentType getSessionDescriptionType()
- Returns the MIME Content Type of the session description provided by the call member. If none was provided, this function returns NULL.
- Returns:
- MimeContentType
getLocalSessionDescription
public String getLocalSessionDescription()
- Returns the most recently sent local session description. Provided for reference.
- Returns:
- String
getLocalSessionDescriptionType
public MimeContentType getLocalSessionDescriptionType()
- Returns the MIME Content Type of the most recently sent local session description.
- Returns:
- MimeContentType
getLocalStatusDescription
public String getLocalStatusDescription()
- Returns a text description of our current status. Basically, this is the text from the response line of the last message we received, or a text description of what we're currently doing or waiting for. Useful for showing the user what is going on.
- Returns:
- String
getMostRecentMessageBody
public String getMostRecentMessageBody()
- Returns the most recent message body we received that was not a session description.
- Returns:
- String
getMostRecentMessageBodyType
public MimeContentType getMostRecentMessageBodyType()
- Returns the MIME type of the most recent message body we received that was not a session description.
- Returns:
- MimeContentType
requestInvite
public void requestInvite(String body,
MimeContentType bodytype)
- Sends a SIP INVITE request, asking the member to join in the session described in the given body. The body and MIME type provided will become the new local session description for this call member.
requestCancel
public void requestCancel()
- Send a CANCEL msg for the given request
requestDisconnect
public void requestDisconnect(String body,
MimeContentType bodytype)
- Sends a SIP BYE request to disconnect the session.
requestTransfer
public void requestTransfer(SipUri transferto,
String body,
MimeContentType bodytype)
- Disconnects the session with a request to transfer to another party.
requestMessage
public void requestMessage(String messageBody)
- Sends a MESSAGE request
requestOptions
public void requestOptions(String body,
MimeContentType bodytype)
- Sends a SIP OPTIONS request, asking the member what they support. The body and MIME type provided serve no known purpose at this time. The response to the OPTIONS request will become the new remote session description, so this should not be called on an active call. It is provided here for consistency.
requestInfo
public void requestInfo(String body,
MimeContentType bodytype)
- Requests an INFO message
- Parameters:
body
- The body of the INFO message
bodytype
- The content type of the body
requestSubscribe
public void requestSubscribe(String body,
MimeContentType bodytype)
- Request a SUBSCRIBE message be sent
requestNotify
public void requestNotify(String body,
MimeContentType bodytype)
- Request a NOTIFY message be sent
acceptInvite
public void acceptInvite(String body,
MimeContentType bodytype)
- Accepts the invitation to join the session sent by the call member. The body and MIME type provided will become the new local session description for this call member.
declineInvite
public void declineInvite(String body,
MimeContentType bodytype)
- Declines the invitation to join the session sent by the call member. The body and MIME type provided are for possibly giving a reason as to why the call was declined.
getUri
public SipUri getUri()
- Returns the URI for this call member.
- Returns:
- SipUri &
getContactUri
public SipUri getContactUri()
- Returns the current Contact URI for this call member.
- Returns:
- SipUri &
setContactUri
public void setContactUri(SipUri newcontact)
- Sets the Contact URI for this call member.
- Parameters:
newcontact
-
setUri
public void setUri(SipUri newuri)
- Updates the URI for this call member.
- Parameters:
newuri
-
getRedirectList
public SipUriList getRedirectList()
- Returns the list of URIs where we were redirected.
- Returns:
- SipUriList &
localStatusUpdated
void localStatusUpdated()
- localStatusUpdated
remoteStatusUpdated
void remoteStatusUpdated()
- remoteStatusUpdated
incomingTransaction
void incomingTransaction(SipTransaction newtrans)
- incomingTransaction
- Parameters:
newtrans
-