Allow to define MS side GSM interface again
[lcr.git] / joinremote.cpp
index 7c03dcd..c828400 100644 (file)
@@ -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);