public class SipConnector extends Object implements Serializable
| Constructor and Description |
|---|
SipConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllSockets()
Cleans up all cached TCP/TLS/SCTP sockets in case they are stalled.
|
boolean |
closeReliableConnection(String ipAddress,
int port)
Allow to close a given TCP/TLS/SCTP connection
|
boolean |
equals(Object obj) |
String |
getHostNames() |
String |
getIpAddress() |
int |
getPort() |
String |
getStaticServerAddress() |
int |
getStaticServerPort() |
String |
getStunServerAddress() |
int |
getStunServerPort() |
String |
getTransport() |
int |
hashCode() |
boolean |
isReplaceStaticServerAddressForInternalRoutingRequest() |
boolean |
isUseStaticAddress() |
boolean |
isUseStun() |
void |
sendHeartBeat(String ipAddress,
int port)
Send a heartbeat to the specified Ip address and port
via this listening point.
|
void |
setHostNames(String hostNames) |
void |
setIpAddress(String ipAddress) |
boolean |
setKeepAliveTimeout(String ipAddress,
int port,
long timeout)
Allow to reset the RFC5626 Section 4.4.1 keeplive on a given TCP/TLS/SCTP connection
|
void |
setPort(int port) |
void |
setReplaceStaticServerAddressForInternalRoutingRequest(boolean value) |
void |
setStaticServerAddress(String staticServerAddress) |
void |
setStaticServerPort(int staticServerPort) |
void |
setStunServerAddress(String stunServerAddress) |
void |
setStunServerPort(int stunServerPort) |
void |
setTransport(String transport) |
void |
setUseStaticAddress(boolean useStaticAddress) |
void |
setUseStun(boolean useStun) |
String |
toString() |
public String getTransport()
public void setTransport(String transport)
transport - the transport to setpublic int getPort()
public void setPort(int port)
port - the port to setExceptionpublic void setIpAddress(String ipAddress)
public String getIpAddress()
public String getStunServerAddress()
public void setStunServerAddress(String stunServerAddress)
stunServerAddress - the stunServerAddress to setpublic int getStunServerPort()
public void setStunServerPort(int stunServerPort)
stunServerPort - the stunServerPort to setpublic boolean isUseStun()
public void setUseStun(boolean useStun)
useStun - the useStun to setpublic String getStaticServerAddress()
public void setStaticServerAddress(String staticServerAddress)
public int getStaticServerPort()
public void setStaticServerPort(int staticServerPort)
public boolean isUseStaticAddress()
public void setUseStaticAddress(boolean useStaticAddress)
public boolean isReplaceStaticServerAddressForInternalRoutingRequest()
public void setReplaceStaticServerAddressForInternalRoutingRequest(boolean value)
public void closeAllSockets()
public void sendHeartBeat(String ipAddress, int port) throws Exception
ipAddress - port - Exceptionpublic boolean setKeepAliveTimeout(String ipAddress, int port, long timeout) throws Exception
ipAddress - port - timeout - Exceptionpublic boolean closeReliableConnection(String ipAddress, int port) throws Exception
ipAddress - port - Exceptionpublic String getHostNames()
public void setHostNames(String hostNames)
hostNames - the hostNames to setCopyright © 2015. All Rights Reserved.