2007-05-06 13:54:52 +00:00
|
|
|
/*****************************************************************************\
|
|
|
|
** **
|
2007-07-17 17:28:09 +00:00
|
|
|
** Linux Call Router **
|
2007-05-06 13:54:52 +00:00
|
|
|
** **
|
|
|
|
**---------------------------------------------------------------------------**
|
|
|
|
** Copyright: Andreas Eversberg **
|
|
|
|
** **
|
|
|
|
** EndpointApp header file **
|
|
|
|
** **
|
|
|
|
\*****************************************************************************/
|
|
|
|
|
2012-01-16 08:14:22 +00:00
|
|
|
#define EAPP_TYPE_PBX 0
|
|
|
|
#define EAPP_TYPE_BRIDGE 1
|
2007-05-06 13:54:52 +00:00
|
|
|
|
|
|
|
/* structure of an EndpointApp */
|
|
|
|
class EndpointApp
|
|
|
|
{
|
|
|
|
public:
|
2012-01-16 08:14:22 +00:00
|
|
|
EndpointApp(class Endpoint *epoint, int origin, int type);
|
2007-05-06 13:54:52 +00:00
|
|
|
virtual ~EndpointApp();
|
|
|
|
|
2012-01-16 08:14:22 +00:00
|
|
|
int ea_type;
|
2007-05-06 13:54:52 +00:00
|
|
|
class Endpoint *ea_endpoint;
|
2008-06-14 06:34:50 +00:00
|
|
|
virtual void ea_message_port(unsigned int port_id, int message, union parameter *param);
|
|
|
|
virtual void ea_message_join(unsigned int join_id, int message, union parameter *param);
|
2007-05-06 13:54:52 +00:00
|
|
|
};
|
|
|
|
|
2012-01-16 08:14:22 +00:00
|
|
|
class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type);
|
|
|
|
|