00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef OPAL_IM_RFC4103_H
00032 #define OPAL_IM_RFC4103_H
00033
00034 #include <opal/buildopts.h>
00035
00036 #if OPAL_HAS_RFC4103
00037
00038 #include <opal/mediafmt.h>
00039 #include <im/t140.h>
00040 #include <rtp/rtp.h>
00041
00042
00043 class RFC4103Frame : public RTP_DataFrame
00044 {
00045 public:
00046 RFC4103Frame();
00047 RFC4103Frame(const T140String & t140);
00048 void SetPayload(const T140String & t140);
00049 };
00050
00051 class RFC4103Context : public PObject
00052 {
00053 public:
00054 RFC4103Context(const OpalMediaFormat & fmt);
00055 RTP_DataFrameList ConvertToFrames(const T140String & body);
00056
00057 OpalMediaFormat m_mediaFormat;
00058 PMutex m_mutex;
00059 WORD m_sequence;
00060 DWORD m_baseTimeStamp;
00061 PTime m_baseTime;
00062 };
00063
00064
00065 #endif // OPAL_HAS_RFC4103
00066
00067 #endif // OPAL_IM_RFC4103_H