1 /*****************************************************************************\
3 ** Linux Call Router **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg **
8 ** The EndpointApp represents the application for the Endpoint. **
10 \*****************************************************************************/
15 * EndpointApp constructor
17 EndpointApp::EndpointApp(class Endpoint *epoint, int origin, int type)
27 EndpointApp::~EndpointApp(void)
32 /* mini application for test purpose only */
34 void EndpointApp::ea_message_port(unsigned int port_id, int message_type, union parameter *param)
36 PDEBUG(DEBUG_EPOINT, "%s: Spare function.\n", __FUNCTION__);
39 void EndpointApp::ea_message_join(unsigned int join_id, int message_type, union parameter *param)
41 PDEBUG(DEBUG_EPOINT, "%s: Spare function.\n", __FUNCTION__);
45 /* create endpoint app */
46 class EndpointApp *new_endpointapp(class Endpoint *epoint, int origin, int type)
48 class EndpointApp *app = NULL;
52 app = new EndpointAppPBX(epoint, origin);
54 case EAPP_TYPE_BRIDGE:
55 app = new EndpointAppBridge(epoint, origin);
60 FATAL("Failed to create endpoint APP (type %d)\n", type);
62 epoint->ep_app_type = type;