]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
initial class structure for handling rtp pairs
authorTuyan Özipek <tuyanozipek@gmail.com>
Tue, 13 Nov 2007 05:05:23 +0000 (05:05 +0000)
committerTuyan Özipek <tuyanozipek@gmail.com>
Tue, 13 Nov 2007 05:05:23 +0000 (05:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6236 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_opal/fsrtp.h

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..09eab4b71d1f3ed4c6580e6fb1db0c43cde5f1b2 100644 (file)
@@ -0,0 +1,45 @@
+
+#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_