common/abis.c: make use of RSL TEI from OML IPA RSL Connect

Change-Id: I5927f59a49724170a63e87be604973f7c9d5d8be
This commit is contained in:
Vadim Yanitskiy 2019-11-30 06:24:32 +07:00
parent f9115ae67a
commit e5711efbb5
2 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,8 @@ static struct e1inp_sign_link *sign_link_up(void *unit, struct e1inp_line *line,
e1inp_ts_config_sign(&line->ts[type-1], line);
sign_link = trx->rsl_link =
e1inp_sign_link_create(&line->ts[type-1],
E1INP_SIGN_RSL, trx, 0, 0);
E1INP_SIGN_RSL, trx,
trx->rsl_tei, 0);
trx_link_estab(trx);
break;
}

View File

@ -1323,8 +1323,10 @@ static int rx_oml_ipa_rsl_connect(struct gsm_bts_trx *trx, struct msgb *msg,
if (trx->bts->variant == BTS_OSMO_OMLDUMMY) {
rc = 0;
LOGP(DOML, LOGL_NOTICE, "%s: Not connecting RSL in OML-DUMMY!\n", trx_name);
} else
} else {
trx->rsl_tei = stream_id;
rc = e1inp_ipa_bts_rsl_connect_n(oml_link->ts->line, inet_ntoa(in), port, trx->nr);
}
if (rc < 0) {
LOGP(DOML, LOGL_ERROR, "%s: Error in abis_open(RSL): %d\n", trx_name, rc);
return oml_fom_ack_nack(msg, NM_NACK_CANT_PERFORM);