|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.RawPacket
net.java.sip.communicator.impl.neomedia.transform.dtmf.DtmfRawPacket
public class DtmfRawPacket
DtmfRawPacket represent an RTP Packet. You create your DtmfRawPacket by calling the constructor. You specify the DTMF attributes : code=9, end=false, marker=true ... Then you fill the packet using init( ... dtmf attributes ... );
| Field Summary | |
|---|---|
static int |
DTMF_PACKET_SIZE
The fixed size of a DTMF packet. |
| Fields inherited from class net.java.sip.communicator.impl.neomedia.RawPacket |
|---|
EXT_HEADER_SIZE, FIXED_HEADER_SIZE |
| Constructor Summary | |
|---|---|
DtmfRawPacket(byte[] buffer,
int offset,
byte payload)
Creates a DtmfRawPacket using the specified buffer. |
|
DtmfRawPacket(RawPacket pkt)
Used for incoming DTMF packets, creating DtmfRawPacket from RTP one. |
|
| Method Summary | |
|---|---|
int |
getCode()
The event code of the current packet. |
int |
getDuration()
The duration of the current event. |
void |
init(int code,
boolean end,
boolean marker,
int duration,
long timestamp)
Initializes DTMF specific values in this packet. |
boolean |
isEnd()
Is this an end packet. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.RawPacket |
|---|
addExtension, append, extractCsrcLevels, extractCsrcList, getBuffer, getCsrcCount, getExtensionBit, getExtensionLength, getHeaderExtensionType, getHeaderLength, getLength, getOffset, getPaddingSize, getPayload, getPayloadLength, getPayloadType, GetRTCPSSRC, getSequenceNumber, getSRTCPIndex, getSSRC, getTimestamp, grow, isPacketMarked, readByte, readInt, readRegion, readRegionToBuff, readShort, readTimeStampIntoByteArray, readUnsignedIntAsLong, readUnsignedShortAsInt, removeExtension, setBuffer, setCsrcList, setLength, setMarker, setOffset, setPayload, setTimestamp, shrink, writeByte, writeInt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DTMF_PACKET_SIZE
| Constructor Detail |
|---|
public DtmfRawPacket(byte[] buffer,
int offset,
byte payload)
buffer - the byte array that we should use to store packet
contentoffset - the index where we should start using the buffer.payload - the payload that has been negotiated for telephone events
by our signaling modules.public DtmfRawPacket(RawPacket pkt)
pkt - the RTP packet.| Method Detail |
|---|
public void init(int code,
boolean end,
boolean marker,
int duration,
long timestamp)
code - the DTMF code representing the digit.end - the DTMF End flagmarker - the RTP Marker flagduration - the DTMF durationtimestamp - the RTP timestamppublic int getCode()
public boolean isEnd()
public int getDuration()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||