summaryrefslogtreecommitdiffstats
path: root/join.h
diff options
context:
space:
mode:
authorSuper User2007-07-17 19:28:09 +0200
committerSuper User2007-07-17 19:28:09 +0200
commit5a22e57828617abc14e27814ee918cc63b96fd46 (patch)
tree049837484887d674939020203a2111197c7e3d5d /join.h
parentbackup (diff)
downloadlcr-5a22e57828617abc14e27814ee918cc63b96fd46.tar.gz
lcr-5a22e57828617abc14e27814ee918cc63b96fd46.tar.xz
lcr-5a22e57828617abc14e27814ee918cc63b96fd46.zip
alpha phase is open, this means:
it compiles! it runs! it calls without known bug yet! comments to jolly@eversberg.eu
Diffstat (limited to 'join.h')
-rw-r--r--join.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/join.h b/join.h
new file mode 100644
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);
+