X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=gsm_bs.cpp;h=9608be6e75cb7f3681af81c367b096b00400c0a9;hp=ed1d2c02615d1420832cb9a02c2f50b6a26bcc52;hb=810c051a69a0c07d8cba5237324a836d8ac7a5b5;hpb=d928442c511fbe7a0d0d0f9e701412b9b494457c diff --git a/gsm_bs.cpp b/gsm_bs.cpp index ed1d2c0..9608be6 100644 --- a/gsm_bs.cpp +++ b/gsm_bs.cpp @@ -212,6 +212,17 @@ void Pgsm_bs::setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_ class Endpoint *epoint; struct lcr_msg *message; struct gsm_mncc *mode, *proceeding, *frame; + struct interface *interface = interface_first; + + while (interface) { + if (!strcmp(interface->name, p_g_interface_name)) + break; + interface = interface->next; + } + if (!interface) { + PERROR("Cannot find interface %s.\n", p_g_interface_name); + return; + } /* process given callref */ gsm_trace_header(p_g_interface_name, this, 0, DIRECTION_IN); @@ -299,8 +310,7 @@ void Pgsm_bs::setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_ 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, interface->app); //incoming epointlist_new(epoint->ep_serial); /* modify lchan to GSM codec V1 */