summaryrefslogtreecommitdiffstats
path: root/join.h
blob: 442aa5d6b6b269179d9e39567054108c36a9c776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*****************************************************************************\
**                                                                           **
** Linux Call Router                                                         **
**                                                                           **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg                                              **
**                                                                           **
** join header file                                                          **
**                                                                           **
\*****************************************************************************/ 

enum { JOIN_TYPE_NONE, JOIN_TYPE_PBX, JOIN_TYPE_REMOTE};

/* 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 int epoint_id, int message, union parameter *param);

	unsigned int j_type;		/* join type (pbx or asterisk) */
	unsigned int j_serial;		/* serial/unique number of join */
}; 

void join_free(void);

extern class Join *join_first;

class Join *find_join_id(unsigned int join_id);