WIP: chan_lcr support for Asterisk 11.5
[lcr.git] / endpointapp.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** Linux Call Router                                                         **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** EndpointApp header file                                                   **
9 **                                                                           **
10 \*****************************************************************************/ 
11
12 #define EAPP_TYPE_PBX           0
13 #define EAPP_TYPE_BRIDGE        1
14
15 /* structure of an EndpointApp */
16 class EndpointApp
17 {
18         public:
19         EndpointApp(class Endpoint *epoint, int origin, int type);
20         virtual ~EndpointApp();
21
22         int ea_type;
23         class Endpoint          *ea_endpoint;
24         virtual void ea_message_port(unsigned int port_id, int message, union parameter *param);
25         virtual void ea_message_join(unsigned int join_id, int message, union parameter *param);
26         virtual void trace_header(const char *name, int direction);
27
28 #ifdef WITH_MISDN
29         struct mISDNport *hunt_port(char *ifname, int *channel);
30 #endif
31         struct interface *hunt_interface(char *ifname);
32 };
33
34 class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type);
35