[Freeswitch-trunk] [commit] r6236 - freeswitch/trunk/src/mod/endpoints/mod_opal

Freeswitch SVN tuyan at freeswitch.org
Tue Nov 13 00:05:23 EST 2007


Author: tuyan
Date: Tue Nov 13 00:05:23 2007
New Revision: 6236

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_opal/fsrtp.h

Log:
initial class structure for handling rtp pairs


Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/fsrtp.h
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_opal/fsrtp.h	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/fsrtp.h	Tue Nov 13 00:05:23 2007
@@ -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_



More information about the Freeswitch-trunk mailing list