Lars, here is the lookup table you requested that determines the
appropriate frequency of the RTP timestamp based upon the payload
type. Thanks for the help.
const int payloadToClockRate[128] =
{
8000, //PCMU
8000, //Reserved
8000, //Reserved
8000, //GSM
8000, //G723
8000, //DVI4
16000, //DVI4
8000, //LPC
8000, //PCMA
8000, //G722
44100, //L16
44100, //L16
8000, //QCELP
8000, //CN
90000, //MPA
8000, //G728
11025, //DVI4
22050, //DVI4
8000, //G729
8000, //reserved
8000, //unassigned
8000, //unassigned
8000, //unassigned
8000, //unassigned
8000, //unassigned
90000, //CelB
90000, //JPEG
8000, //unassigned
90000, //nv
8000, //unassigned
8000, //unassigned
90000, //H261
90000, //MPV
90000, //MP2T
90000, //H263
8000, //35--71 unassigned
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000, //72-76 reserved for RTCP conflict avoidance
8000,
8000,
8000,
8000,
8000, //77-95 unassigned
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000, //96-127 dynamic
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000,
8000
};