X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=joinremote.cpp;h=c828400fcbbc4856ea75da442db4b8be3726c2e7;hp=7c03dcdddea758034bcaf53443f7f1e3263856df;hb=1e21f69321ba016120c3640fcad0256234b7a377;hpb=c67eb259868a81432a68fe14d3caeea33d7eafb2 diff --git a/joinremote.cpp b/joinremote.cpp index 7c03dcd..c828400 100644 --- a/joinremote.cpp +++ b/joinremote.cpp @@ -85,16 +85,17 @@ void JoinRemote::message_remote(int message_type, union parameter *param) FATAL("No memory for Endpoint instance\n"); j_epoint_id = epoint->ep_serial; PDEBUG(DEBUG_JOIN, "Created endpoint %d\n", j_epoint_id); - if (!(epoint->ep_app = new DEFAULT_ENDPOINT_APP(epoint, 1))) // outgoing - FATAL("No memory for Endpoint Application instance\n"); + epoint->ep_app = new_endpointapp(epoint, 1, EAPP_TYPE_PBX); // outgoing } +#ifdef WITH_MISDN /* set serial on bchannel message * also ref is given, so we send message with ref */ if (message_type == MESSAGE_BCHANNEL) { message_bchannel_from_remote(this, param->bchannel.type, param->bchannel.handle); return; } +#endif /* cannot just forward, because param is not of container "struct lcr_msg" */ message = message_create(j_serial, j_epoint_id, JOIN_TO_EPOINT, message_type);