org.mitre.jsip
Clase SipCall

public class SipCall
extends Object
Detalle del constructor

SipCall

public SipCall(SipUser local,
               String id)
Creates a new call for a given SipUser

Detalle del método

getCallStatus

public int getCallStatus()
getCallStatus
Returns:
CallStatus

getCallType

public int getCallType()
Returns:
CallType

setCallType

public void setCallType(int newtype)
setCallType
Parameters:
newtype -

localAddress

public SipUri localAddress()
Returns the local URI that we are known by for this call. If there is none, returns the URI of our client parent.
Returns:
SipUri &

getCallId

public String getCallId()
Returns the associated call ID
Returns:
String &

getMember

public SipCallMember getMember(SipUri uri)
Tries to find a SipCallMember for the given URI. If one not found, create a new one
Parameters:
uri -
Returns:
SipCallMember*

getSubject

public String getSubject()
Returns the subject for this call.
Returns:
String

setSubject

public void setSubject(String newsubject)
Set the subject for this call. Will be used on all outgoing INVITEs sent afterwards.
Parameters:
newsubject -

getTransactionList

public ArrayList getTransactionList()
getTransactionList
Returns:
Tranlist

setSendAddress

public void setSendAddress(SipUri sendAddress)
Sets the address that messages will be sent to for this call member

newRequest

public SipTransaction newRequest(SipCallMember member,
                                 int meth,
                                 String body,
                                 MimeContentType bodytype)
Sends a SIP request under this call to the given call member. Returns a SipTransaction for tracking

newRegister

public SipTransaction newRegister(SipUri registerserver,
                                  boolean clear)
Sends a SIP register under this call to the given call member. Returns a SipTransaction for tracking.

getMemberList

public ArrayList getMemberList()
Returns an iterator for the list of all current members of this call.
Returns:
SipCallMemberIterator

callStatusUpdated

public void callStatusUpdated()
Triggered whenever the call status changes.

subjectChanged

public void subjectChanged()
Triggered whenever the call subject changes.

auditCall

private void auditCall()
auditCall

incomingRequest

SipCallMember incomingRequest(SipRequestMessage message)
incomingRequest
Parameters:
message -
Returns:
SipCallMember*

incomingResponse

void incomingResponse(SipResponseMessage message)
incomingResponse
Parameters:
message -

sendRequest

void sendRequest(SipRequestMessage reqmsg)
sendRequest
Parameters:
reqmsg -
contact -

sendResponse

private void sendResponse(SipResponseMessage responsemsg,
                          boolean contact)
sendResponse
Parameters:
responsemsg -
contact -

sendRaw

void sendRaw(SipRequestMessage msg)
sendRaw
Parameters:
msg -

addMember

void addMember(SipCallMember newmember)
addMember
Parameters:
newmember -

statusUpdated

public static void statusUpdated()
statusUpdated - do this for now