diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2014-01-21 14:54:41 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-28 12:50:29 +0200 |
commit | f422a753a7c2b6a81a370240470f48ca09819cc6 (patch) | |
tree | c9d4ccc2952aacd64c1a5817bb53646d50704ed4 /include/osmocom | |
parent | c9295ea2dd1f52931f8670e706a7b0d4b3ac536b (diff) |
Support for multiple RSL connections with ABIS/ipaccess (BTS side)
In order to support multiple TRX, multiple RSL connections can be
establised. e1inp_ipa_bts_rsl_connect() requires an additional parameter
to set the TRX number.
The ts[] array (member of struct e1inp_line) refers to OML and RSL.
ts[0] refers to OML link, ts[1] to RSL link of first TRX, ts[2] to
RSL link of second TRX (if exists) and so on.
The code was successfully tested with osmobts-trx and UmTRX with two
transceivers.
The user of e1inp_ipa_bts_rsl_connect() (which is osmo-bts) can use
the new function like this (backwards compatibility function provided):
src/common/oml.c
- rc = e1inp_ipa_bts_rsl_connect(oml_link->ts->line, inet_ntoa(in), port);
+ rc = e1inp_ipa_bts_rsl_connect_n(oml_link->ts->line, inet_ntoa(in), port,
+ trx->nr);
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/abis/e1_input.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index fe5d624..e5d2991 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -270,6 +270,10 @@ struct subch_mux *e1inp_get_mux(uint8_t e1_nr, uint8_t ts_nr); int e1inp_ipa_bts_rsl_connect(struct e1inp_line *line, const char *rem_addr, uint16_t rem_port); +int e1inp_ipa_bts_rsl_connect_n(struct e1inp_line *line, + const char *rem_addr, uint16_t rem_port, + uint8_t trx_id); + void e1inp_sign_link_destroy(struct e1inp_sign_link *link); int e1inp_line_update(struct e1inp_line *line); |