public class RtpEndpointSettings
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
RtpEndpointSettings() |
RtpEndpointSettings(RtpEndpointSettings settings) |
RtpEndpointSettings(java.lang.String ipAddress,
java.lang.String txPort,
java.lang.String rxPort,
int voxTimeout,
int eventsPayloadType,
int namedEventPayloadType,
int toneEventPayloadType)
Defines a RTP end-point with the specified IP address and UDP ports.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventsPayloadType() |
java.lang.String |
getIpAddress() |
int |
getNamedEventPayloadType() |
java.util.List |
getPortList(java.lang.String portRegex)
Helper which converts a valid regular expression to a list of UDP port numbers
which match the regular expression.
|
java.lang.String |
getRxPort() |
int |
getToneEventPayloadType() |
java.lang.String |
getTxPort() |
int |
getVoxTimeout() |
void |
setEventsPayloadType(int eventsPayloadType) |
void |
setIpAddress(java.lang.String ipAddress) |
void |
setNamedEventPayloadType(int namedEventPayloadType) |
void |
setRxPort(java.lang.String rxPort) |
void |
setToneEventPayloadType(int toneEventPayloadType) |
void |
setTxPort(java.lang.String txPort) |
void |
setVoxTimeout(int voxTimeout) |
java.lang.String |
toString() |
public RtpEndpointSettings(java.lang.String ipAddress, java.lang.String txPort, java.lang.String rxPort, int voxTimeout, int eventsPayloadType, int namedEventPayloadType, int toneEventPayloadType)
ipAddress
- The IP address of the end point can generate and/or receive RTP packets.txPort
- Valid UDP port that the end-point is using when sending RTP packets. Or,
null
if the end-point does not send RTP packets.
The value must be a valid regular expression that matches one or more valid
UDP port numbers (0, 65535]. For example, "7000" matches UDP port number 7000,
while "7[0-2]00" matches port range [7000, 7200].rxPort
- Valid UDP port that the end-point is using when receiving RTP packets. Or,
null
if the end-point does not receive RTP packets.
The value must be a valid regular expression that matches one or more valid
UDP port numbers (0, 65535]. For example, "7000" matches UDP port number 7000,
while "7[0-2]00" matches port range [7000, 7200].voxTimeout
- The time, in seconds, that the system will keep recording after it has detected
that there is no longer RTP packets on the stream being recorded. The system will
end recording after this time.eventsPayloadType
- RTP payload type that identifies RTP packets that carry more than one RFC 2833
events. Set to -1 if RTP packets carry single telephony or tone events.namedEventPayloadType
- RTP payload type that identifies RTP packets that carry a single RFC 2833
named event. Set to -1 if RTP packets carry multiple named events.toneEventPayloadType
- RTP payload type that identifies RTP packets that carry a single RFC 2833
tone event. Set to -1 if RTP packets carry multiple tone events.public RtpEndpointSettings(RtpEndpointSettings settings)
public RtpEndpointSettings()
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
public java.lang.String getTxPort()
public void setTxPort(java.lang.String txPort)
public java.lang.String getRxPort()
public void setRxPort(java.lang.String rxPort)
public int getVoxTimeout()
public void setVoxTimeout(int voxTimeout)
public int getEventsPayloadType()
public void setEventsPayloadType(int eventsPayloadType)
public int getNamedEventPayloadType()
public void setNamedEventPayloadType(int namedEventPayloadType)
public int getToneEventPayloadType()
public void setToneEventPayloadType(int toneEventPayloadType)
public java.util.List getPortList(java.lang.String portRegex)
portRegex
- A valid regular expression that matches one or more valid UDP port numbers (0, 65535].
For example, "7000" matches UDP port number 7000, while "7[0-2]00" matches port range
[7000, 7200].Integer
s that represent the UDP port numbers which match the
regular expression.public java.lang.String toString()
toString
in class java.lang.Object
Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.