org.mitre.jsip
Class SipCall

java.lang.Object
  |
  +--org.mitre.jsip.SipCall

public class SipCall
extends java.lang.Object


Constructor Summary
SipCall(SipUser local, java.lang.String id)
          Creates a new call for a given SipUser
SipCall(SipUser local, java.lang.String id, int ctype)
           
 
Method Summary
 void callStatusUpdated()
          Triggered whenever the call status changes.
 java.lang.String getCallId()
          Returns the associated call ID
 int getCallStatus()
          getCallStatus
 int getCallType()
           
 SipCallMember getMember(SipUri uri)
          Tries to find a SipCallMember for the given URI.
 java.util.ArrayList getMemberList()
          Returns an iterator for the list of all current members of this call.
 java.lang.String getSubject()
          Returns the subject for this call.
 java.util.ArrayList getTransactionList()
          getTransactionList
 SipUri localAddress()
          Returns the local URI that we are known by for this call.
 SipTransaction newRegister(SipUri registerserver, boolean clear)
          Sends a SIP register under this call to the given call member.
 SipTransaction newRegister(SipUri registerserver, boolean clear, java.lang.String authentication, java.lang.String proxyauthentication, java.lang.String body, MimeContentType bodytype)
           
 SipTransaction newRequest(SipCallMember member, int meth, java.lang.String body, MimeContentType bodytype)
          Sends a SIP request under this call to the given call member.
 SipTransaction newRequest(SipCallMember member, int meth, java.lang.String body, MimeContentType bodytype, SipUri transferto)
           
 void setCallType(int newtype)
          setCallType
 void setSendAddress(SipUri sendAddress)
          Sets the address that messages will be sent to for this call member
 void setSubject(java.lang.String newsubject)
          Set the subject for this call.
static void statusUpdated()
          statusUpdated - do this for now
 void subjectChanged()
          Triggered whenever the call subject changes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipCall

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

SipCall

public SipCall(SipUser local,
               java.lang.String id,
               int ctype)
Method Detail

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 java.lang.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 java.lang.String getSubject()
Returns the subject for this call.
Returns:
String

setSubject

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

getTransactionList

public java.util.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,
                                 java.lang.String body,
                                 MimeContentType bodytype)
Sends a SIP request under this call to the given call member. Returns a SipTransaction for tracking

newRequest

public SipTransaction newRequest(SipCallMember member,
                                 int meth,
                                 java.lang.String body,
                                 MimeContentType bodytype,
                                 SipUri transferto)

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.

newRegister

public SipTransaction newRegister(SipUri registerserver,
                                  boolean clear,
                                  java.lang.String authentication,
                                  java.lang.String proxyauthentication,
                                  java.lang.String body,
                                  MimeContentType bodytype)

getMemberList

public java.util.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.

statusUpdated

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