alpha phase is open, this means:
[lcr.git] / join.h
diff --git a/join.h b/join.h
new file mode 100644 (file)
index 0000000..8c255cc
--- /dev/null
+++ b/join.h
@@ -0,0 +1,38 @@
+/*****************************************************************************\
+**                                                                           **
+** Linux Call Router                                                         **
+**                                                                           **
+**---------------------------------------------------------------------------**
+** Copyright: Andreas Eversberg                                              **
+**                                                                           **
+** join header file                                                          **
+**                                                                           **
+\*****************************************************************************/ 
+
+enum { JOIN_TYPE_NONE, JOIN_TYPE_PBX, JOIN_TYPE_ASTERISK};
+
+/* join
+ *
+ * abstraction for pbx calls and asterisk calls
+ */
+
+
+class Join
+{
+       public:
+       Join();
+       virtual ~Join();
+       class Join *next;               /* next node in list of joins */
+       virtual void message_epoint(unsigned long epoint_id, int message, union parameter *param);
+       virtual int handler(void);
+
+       unsigned long c_type;           /* join type (pbx or asterisk) */
+       unsigned long c_serial;         /* serial/unique number of join */
+}; 
+
+void join_free(void);
+
+extern class Join *join_first;
+
+class Join *find_join_id(unsigned long join_id);
+