struct gsm_mncc *resp;
gsm_trace_header(p_g_interface_name, this, msg_type, DIRECTION_IN);
struct gsm_mncc *resp;
gsm_trace_header(p_g_interface_name, this, msg_type, DIRECTION_IN);
- /* send dtmf information, because we bridge RTP directly */
- message = message_create(p_serial, ACTIVE_EPOINT(p_epointlist), PORT_TO_EPOINT, MESSAGE_DTMF);
- message->param.dtmf = mncc->keypad;
- message_put(message);
+ class Port *remote = bridge_remote();
+
+ if (remote) {
+ struct lcr_msg *message;
+
+ /* send dtmf information, because we bridge RTP directly */
+ message = message_create(0, remote->p_serial, EPOINT_TO_PORT, MESSAGE_DTMF);
+ message->param.dtmf = mncc->keypad;
+ message_put(message);
+ }
/* process given callref */
gsm_trace_header(p_g_interface_name, this, 0, DIRECTION_IN);
/* process given callref */
gsm_trace_header(p_g_interface_name, this, 0, DIRECTION_IN);
FATAL("Incoming call but already got an endpoint.\n");
if (!(epoint = new Endpoint(p_serial, 0)))
FATAL("No memory for Endpoint instance\n");
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
} else
pgsm_bs->frame_receive(arg);
/* if we do not bridge we need to inject audio, if available */
} else
pgsm_bs->frame_receive(arg);
/* if we do not bridge we need to inject audio, if available */
add_trace("cause", "coding", "%d", rej->cause.coding);
add_trace("cause", "location", "%d", rej->cause.location);
add_trace("cause", "value", "%d", rej->cause.value);
add_trace("cause", "coding", "%d", rej->cause.coding);
add_trace("cause", "location", "%d", rej->cause.location);
add_trace("cause", "value", "%d", rej->cause.value);
/* creating port object, transparent until setup with hdlc */
SPRINT(name, "%s-%d-in", interface->name, 0);
if (!(pgsm_bs = new Pgsm_bs(PORT_TYPE_GSM_BS_IN, name, NULL, interface)))
/* creating port object, transparent until setup with hdlc */
SPRINT(name, "%s-%d-in", interface->name, 0);
if (!(pgsm_bs = new Pgsm_bs(PORT_TYPE_GSM_BS_IN, name, NULL, interface)))
gsm_bs->type = LCR_GSM_TYPE_NETWORK;
gsm_bs->sun.sun_family = AF_UNIX;
SCPY(gsm_bs->sun.sun_path, "/tmp/bsc_mncc");
gsm_bs->type = LCR_GSM_TYPE_NETWORK;
gsm_bs->sun.sun_family = AF_UNIX;
SCPY(gsm_bs->sun.sun_path, "/tmp/bsc_mncc");