提交 ed9dc194 authored 作者: Tuyan Özipek's avatar Tuyan Özipek

initial class structure for handling rtp pairs


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6236 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c4cf0fd7
#ifndef __FREESWITCH_RTP_H_
#define __FREESWITCH_RTP_H_
#define HAVE_APR
#include <switch.h>
#include <switch_version.h>
#include <ptlib.h>
#include <opal/buildopts.h>
#include <opal/connection.h>
#include <opal/rtp.h>
// keeps the freeswitch - opal rtp mapping
class FSRTPPairs : public PObject
{
PCLASSINFO(FSRTPPairs, PObject);
public:
FSRTPPairs();
~FSRTPPairs();
private:
switch_rtp_t *fsrtp;
RTP_UDP *opalrtp;
};
// fsrtp session is different from opalrtp session
// we just keep the rtp sessions in fsrtpsession
//
class FSRTPSession : public PObject
{
PCLASSINFO(FSRTPSession, PObject);
public:
FSRTPSession(WORD port, BOOL isOpalRTP = FALSE);
private:
class RTPPairsDictionary : public PSafeDictionary<PString, FSRTPPairs>
{
virtual void DeleteObject(PObject * object) const;
}rtpPairs;
};
#endif //__FREESWITCH_RTP_H_
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论