|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.mitre.jsip.SipClient
Field Summary | |
static int |
DontHideVia
|
static int |
HideHop
|
static int |
HideRoute
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
void |
addCall(SipCall call)
addCall |
void |
addCallListener(CallListener cl)
Method for adding CallEvent listeners |
void |
callListUpdated()
Triggered when a call is deleted or added to the internal list of calls, or when a call has its type changed. |
void |
deleteCall(SipCall call)
deleteCall |
java.lang.String |
getAcceptLanguage()
|
boolean |
getBusy()
Returns the current state of busy mode. |
java.lang.String |
getBusyMessage()
Returns our current busy message. |
boolean |
getCallForward()
Returns the current state of call forwarding. |
java.lang.String |
getCallForwardMessage()
Returns our current forward message. |
SipUri |
getCallForwardUri()
Returns the URI we are currently forwarding to. |
java.util.ArrayList |
getCallList()
Returns an iterator to teh list of active SIP calls. |
CallListener |
getCallListener()
Method for accessing the CallListener |
SipUri |
getContactUri()
Returns the full contact URI for this client. |
SipCallMember |
getCurrentCallMemb()
|
SipUser |
getDefaultUser()
Returns the current default user. |
boolean |
getDefaultUserMode()
Returns true if we accept calls with a default user |
java.lang.String |
getExplicitProxyAddress()
Returns the explicit proxy for this client, in the same format as above. |
boolean |
getExplicitProxyMode()
Returns true if we are currently sending outgoing requests to the explicit proxy. |
int |
getHideViaMode()
Returns the current Via hiding mode. |
int |
getMaxForwards()
Returns our current max forwards. |
SipUri |
getRegisterContactUri()
Returns the contact URI the client will use when registering. |
static SipClient |
getSipClient()
|
SipUser |
getUser(SipUri userUri)
Returns a user of this client. |
java.lang.String |
getUserAgent()
Returns our User-Agent string (library version) |
boolean |
haveMessages()
Check if incoming messages are available |
void |
incomingCall(SipCall call,
SipCallMember member)
Initiated when a new SIP call is created from an incoming message. |
void |
incomingMessage()
An external trigger for checking incoming messages |
void |
kill()
|
static void |
main(java.lang.String[] args)
Test method |
void |
removeCallListener(CallListener cl)
Method for removing CallEvent listeners |
void |
run()
|
void |
sendQuickResponse(SipMessage origmessage,
SipStatus status)
sendQuickResponse |
void |
sendResponse(SipResponseMessage msg,
boolean contact)
sendResponse |
void |
setAcceptLanguage(java.lang.String languages)
|
void |
setBusy(boolean onoff)
Turns of or off busy mode. |
void |
setBusyMessage(java.lang.String newmessage)
Allows the user to set a message to be displayed when the client discovers we are busy. |
void |
setCallForward(boolean onoff)
Turns of or off call forwarding. |
void |
setCallForwardMessage(java.lang.String newmessage)
Allows the user to set a message to be displayed when a client is forwarded. |
void |
setCallForwardUri(SipUri u)
Sets the URI to forward calls to if call forwarding is enabled. |
void |
setContactCapabilities(int capabilities)
Allows us to set our capabilities |
void |
setContactUri(SipUri cUri)
Allows us to set the contact uri |
void |
setCurrentCallMemb(SipCallMember callMemb)
|
void |
setDefaultUser(SipUser user)
Sets the current default user. |
void |
setDefaultUserMode(boolean onoff)
Turn on default user mode. |
void |
setExplicitProxyAddress(java.lang.String newproxy)
Specify the explicit proxy address for this client. |
void |
setExplicitProxyMode(boolean eproxy)
Turn on explicit proxying. |
void |
setHideViaMode(int newmode)
Set Via hiding mode. |
void |
setMaxForwards(int newmax)
Sets our current max forwards. |
void |
timerTask()
This call does the select on all the client's listening sockets and performs any pending actions. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DontHideVia
public static final int HideHop
public static final int HideRoute
Method Detail |
public static SipClient getSipClient()
public void timerTask()
block
- public SipUri getContactUri()
public void setContactUri(SipUri cUri)
public void setContactCapabilities(int capabilities)
public SipUri getRegisterContactUri()
methods
tags to support Sip.MESSAGE
and Sip.SUBSCRIBE
Contact uri's.public void setDefaultUserMode(boolean onoff)
onoff
- public boolean getDefaultUserMode()
public SipUser getDefaultUser()
public void setDefaultUser(SipUser user)
user
- public void setCallForwardUri(SipUri u)
u
- public SipUri getCallForwardUri()
public void setCallForward(boolean onoff)
onoff
- public boolean getCallForward()
public void setCallForwardMessage(java.lang.String newmessage)
newmessage
- public java.lang.String getCallForwardMessage()
public void setBusy(boolean onoff)
onoff
- public boolean getBusy()
public void setBusyMessage(java.lang.String newmessage)
newmessage
- public java.lang.String getBusyMessage()
public void setExplicitProxyMode(boolean eproxy)
eproxy
- public boolean getExplicitProxyMode()
public void setExplicitProxyAddress(java.lang.String newproxy)
newproxy
- public void setMaxForwards(int newmax)
newmax
- public int getMaxForwards()
public java.lang.String getExplicitProxyAddress()
public void setHideViaMode(int newmode)
newmode
- public int getHideViaMode()
public java.util.ArrayList getCallList()
public SipUser getUser(SipUri userUri)
public java.lang.String getUserAgent()
public void setAcceptLanguage(java.lang.String languages)
public java.lang.String getAcceptLanguage()
public void incomingCall(SipCall call, SipCallMember member)
public void incomingMessage()
public void callListUpdated()
public void addCallListener(CallListener cl)
public void removeCallListener(CallListener cl)
public CallListener getCallListener()
public void run()
run
in class java.lang.Thread
public void kill()
public SipCallMember getCurrentCallMemb()
public void setCurrentCallMemb(SipCallMember callMemb)
public void sendQuickResponse(SipMessage origmessage, SipStatus status)
public void addCall(SipCall call)
call
- public void deleteCall(SipCall call)
call
- public void sendResponse(SipResponseMessage msg, boolean contact)
msg
- contact
- public boolean haveMessages()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |