SIP: Fix incoming re-invite
[lcr.git] / join.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** Linux Call Router                                                         **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** join header file                                                          **
9 **                                                                           **
10 \*****************************************************************************/ 
11
12 enum { JOIN_TYPE_NONE, JOIN_TYPE_PBX};
13
14 /* join
15  *
16  * abstraction for pbx calls and asterisk calls
17  */
18
19
20 class Join
21 {
22         public:
23         Join();
24         virtual ~Join();
25         class Join *next;               /* next node in list of joins */
26         virtual void message_epoint(unsigned int epoint_id, int message, union parameter *param);
27
28         unsigned int j_type;            /* join type (pbx or asterisk) */
29         unsigned int j_serial;          /* serial/unique number of join */
30 }; 
31
32 void join_free(void);
33
34 extern class Join *join_first;
35
36 class Join *find_join_id(unsigned int join_id);
37
38 extern unsigned int join_serial;
39