public class ContextConfiguration
extends java.lang.Object
Constructor and Description |
---|
ContextConfiguration(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
boolean |
enableIPv6()
Gets the global use of Pv6 support
Globally enable Pv6 support.
|
void |
enableIPv6(boolean value)
Sets the global use of Pv6 support
Globally enable Pv6 support.
|
boolean |
enableSIPReliableProvisioning()
Gets the global usage of reliable provisional as described in RFC 3262
The reliability mechanism works by mirroring the current reliability mechanisms for 2xx final responses to
NVITE.
|
void |
enableSIPReliableProvisioning(boolean value)
Sets the global usage of reliable provisional as described in RFC 3262
The reliability mechanism works by mirroring the current reliability mechanisms for 2xx final responses to
NVITE.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
int |
iaxUdpPortInUse()
Gets the actually used IAX UDP port
In case the requested port was already taken the next available one will be opened.
|
IpVersionType |
ipVersionPreference()
Gets the selected preferred IP version
Selects which IP version to prefer when resolving DNS.
|
void |
ipVersionPreference(IpVersionType value)
Selects the preferred IP version
Selects which IP version to prefer when resolving DNS.
|
int |
mediaDSCP()
Gets the configured DSCP for the media streams
This will affect the RTP, SRTP and AX2 sockets.
|
void |
mediaDSCP(int value)
Configures the DSCP for the media streams
This will affect the RTP, SRTP and AX2 sockets.
|
java.lang.String |
rtpEmail()
Gets the configured e-mail address for SDP
Sets the email address to put in SDP offers/answers.
|
void |
rtpEmail(java.lang.String value)
Configures the e-mail address for SDP
Sets the email address to put in SDP offers/answers.
|
int |
rtpPort()
Gets the base port to be used for RTP streams
Get the base UDP port to use for RTP streams.
|
void |
rtpPort(int value)
Sets the base port to be used for RTP streams
Set the base UDP port to use for RTP streams.
|
java.lang.String |
rtpSessionName()
Gets the configured RTP session name for the SDP
Sets the RTP session name for the SDP offers/answers.
|
void |
rtpSessionName(java.lang.String value)
Configures the RTP session name for the SDP
Sets the RTP session name for the SDP offers/answers.
|
java.lang.String |
rtpUrl()
Gets the configured URL for SDP
Sets the URL for the SDP offers/answers.
|
void |
rtpUrl(java.lang.String value)
Configures the URL for SDP
Sets the URL for the SDP offers/answers.
|
java.lang.String |
rtpUsername()
Gets the configured RTP user name for the SDP
Sets the RTP user name for the SDP offers/answers.
|
void |
rtpUsername(java.lang.String value)
Configures the RTP user name for the SDP
Sets the RTP user name for the SDP offers/answers.
|
int |
signalDSCP()
Gets the configured DSCP for the signaling streams
This will affect the SIP sockets (UDP, TCP and TLS).
|
void |
signalDSCP(int value)
Configures the DSCP for the signaling streams
This will affect the SIP sockets (UDP, TCP and TLS).
|
int |
sipTcpPort()
Gets the requested SIP TCP port to be used
In case the requested port was already taken the next available one will be opened.
|
void |
sipTcpPort(int value)
Sets the requested SIP TCP port to be used
In case the requested port was already taken the next available one will be opened.
|
int |
sipTcpPortInUse()
Gets the actually used SIP TCP port
In case the requested port was already taken the next available one will be opened.
|
int |
sipTlsPort()
Gets the requested SIP TLS port to be used
In case the requested port was already taken the next available one will be opened.
|
void |
sipTlsPort(int value)
Sets the requested SIP TCP port to be used
In case the requested port was already taken the next available one will be opened.
|
int |
sipTlsPortInUse()
Gets the actually used SIP TLS port
In case the requested port was already taken the next available one will be opened.
|
int |
sipUdpPort()
Gets the requested SIP UDP port to be used
In case the requested port was already taken the next available one will be opened.
|
void |
sipUdpPort(int value)
Sets the requested SIP UDP port to be used
In case the requested port was already taken the next available one will be opened.
|
int |
sipUdpPortInUse()
Gets the actually used SIP UDP port
In case the requested port was already taken the next available one will be opened.
|
java.lang.String |
userAgent()
Gets the ZDK's user agent
Used in SIP messages mainly.
|
void |
userAgent(java.lang.String value)
Sets the ZDK's user agent
Used in SIP messages mainly.
|
java.lang.String |
userSipInstance()
Generate a random UUID to be used for SIP user instance
Generates a valid RFC 4122 (RFC 2141) UUID URN that can be used for RFC 5626 (SIP Outbound).
|
public ContextConfiguration(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public int sipUdpPort()
sipTcpPort sipTcpPortInUse sipTlsPort sipTlsPortInUse
public void sipUdpPort(int value)
value
- The requested local UDP port for SIP UDP to be used, or 0 for random port to be usedsipTcpPort sipTcpPortInUse sipTlsPort sipTlsPortInUse
public int sipUdpPortInUse()
sipTcpPort sipTcpPortInUse sipTlsPort sipTlsPortInUse
public int sipTcpPort()
sipUdpPortInUse sipTcpPortInUse sipTlsPort sipTlsPortInUse
public void sipTcpPort(int value)
value
- The requested local TCP port for SIP TCP to be usedsipUdpPortInUse sipTcpPortInUse sipTlsPort sipTlsPortInUse
public int sipTcpPortInUse()
sipUdpPortInUse sipTcpPort sipTlsPort sipTlsPortInUse
public int sipTlsPort()
sipUdpPortInUse sipTcpPort sipTcpPortInUse sipTlsPortInUse
public void sipTlsPort(int value)
value
- The requested local TCP port for SIP TLS to be used (not a mistake, TLS run on top of TCP)sipUdpPortInUse sipTcpPort sipTcpPortInUse sipTlsPortInUse
public int sipTlsPortInUse()
sipUdpPortInUse sipTcpPort sipTcpPortInUse sipTlsPort
public int iaxUdpPortInUse()
public int rtpPort()
public void rtpPort(int value)
value
- The RTP port base, or 0 for random port to be usedpublic boolean enableIPv6()
public void enableIPv6(boolean value)
value
- public IpVersionType ipVersionPreference()
IpVersionType
public void ipVersionPreference(IpVersionType value)
value
- The desired preferenceIpVersionType
public java.lang.String userSipInstance()
sipInstance
public boolean enableSIPReliableProvisioning()
public void enableSIPReliableProvisioning(boolean value)
value
- public java.lang.String userAgent()
public void userAgent(java.lang.String value)
value
- UTF-8 encoded user agentpublic int mediaDSCP()
signalDSCP
public void mediaDSCP(int value)
value
- The DiffServ Code PointsignalDSCP
public int signalDSCP()
mediaDSCP
public void signalDSCP(int value)
value
- The DiffServ Code PointmediaDSCP
public java.lang.String rtpSessionName()
rtpUsername rtpUrl rtpEmail
public void rtpSessionName(java.lang.String value)
value
- RTP session namertpUsername rtpUrl rtpEmail
public java.lang.String rtpUsername()
rtpSessionName rtpUrl rtpEmail
public void rtpUsername(java.lang.String value)
value
- RTP user namertpSessionName rtpUrl rtpEmail
public java.lang.String rtpUrl()
rtpSessionName rtpUsername rtpEmail
public void rtpUrl(java.lang.String value)
value
- The URLrtpSessionName rtpUsername rtpEmail
public java.lang.String rtpEmail()
rtpSessionName rtpUsername rtpUrl
public void rtpEmail(java.lang.String value)
value
- The e-mail addressrtpSessionName rtpUsername rtpUrl