com.sipresponse.flibblecallmgr.internal.media
Class RtpHelper

java.lang.Object
  extended by com.sipresponse.flibblecallmgr.internal.media.RtpHelper

public class RtpHelper
extends java.lang.Object


Constructor Summary
RtpHelper()
           
 
Method Summary
static short bigEndianBytesToShort(byte[] buffer, int offset)
           
static int byteArrayToInt(byte b1, byte b2, byte b3, byte b4)
           
static int byteArrayToShort(byte b1, byte b2)
           
static short bytesToShort(byte[] bytes, int off, int len, boolean little)
           
static byte[] createDtmfEvent(int payloadId, int seqNo, long timestamp, long ssid, int code, boolean marker, boolean end)
           
static int getSeqNo(byte[] data)
           
static int getSSID(byte[] data)
           
static int getTimestamp(byte[] data)
           
static short littleEndianBytesToShort(byte[] buffer, int offset)
           
static byte[] shortToByteArray(short value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtpHelper

public RtpHelper()
Method Detail

getSeqNo

public static int getSeqNo(byte[] data)

getTimestamp

public static int getTimestamp(byte[] data)

getSSID

public static int getSSID(byte[] data)

shortToByteArray

public static byte[] shortToByteArray(short value)

byteArrayToInt

public static int byteArrayToInt(byte b1,
                                 byte b2,
                                 byte b3,
                                 byte b4)

byteArrayToShort

public static int byteArrayToShort(byte b1,
                                   byte b2)

bytesToShort

public static short bytesToShort(byte[] bytes,
                                 int off,
                                 int len,
                                 boolean little)

bigEndianBytesToShort

public static short bigEndianBytesToShort(byte[] buffer,
                                          int offset)

littleEndianBytesToShort

public static short littleEndianBytesToShort(byte[] buffer,
                                             int offset)

createDtmfEvent

public static byte[] createDtmfEvent(int payloadId,
                                     int seqNo,
                                     long timestamp,
                                     long ssid,
                                     int code,
                                     boolean marker,
                                     boolean end)