Adding simple bridge application to forward calls without PBX app.
[lcr.git] / ss5.cpp
diff --git a/ss5.cpp b/ss5.cpp
index a12f936..7157d8f 100644 (file)
--- a/ss5.cpp
+++ b/ss5.cpp
@@ -1694,8 +1694,7 @@ void Pss5::do_setup(char *dial, int complete)
                FATAL("Incoming call but already got an endpoint.\n");
        if (!(epoint = new Endpoint(p_serial, 0)))
                FATAL("No memory for Endpoint instance\n");
-       if (!(epoint->ep_app = new DEFAULT_ENDPOINT_APP(epoint, 0))) //incoming
-               FATAL("No memory for Endpoint Application instance\n");
+       epoint->ep_app = new_endpointapp(epoint, 0, p_m_mISDNport->ifport->interface->app); //incoming
        epointlist_new(epoint->ep_serial);
 
        /* send setup message to endpoit */