aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-30 06:24:32 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-01-11 00:51:43 +0100
commite5711efbb54c31afec2eb6791c5ce25f9eec785d (patch)
tree75c898d79afdabdf0d5cfa257c7034bfcd1b6c16
parentf9115ae67adcc8ca06265cff21fc83e82f06d6b5 (diff)
common/abis.c: make use of RSL TEI from OML IPA RSL Connect
-rw-r--r--src/common/abis.c3
-rw-r--r--src/common/oml.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index 2da1ddd3..44b8eff2 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -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;
}
diff --git a/src/common/oml.c b/src/common/oml.c
index 3defa494..7a62faae 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -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);