From 8e479aece2df0720a6d2bbda0fe8972a22390b2a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 27 Jun 2011 15:19:11 +0200 Subject: ipaccess: fix RSL link establishment This patch fixes the RSL link establishment which made openBSC port over libosmo-abis crash. --- src/input/ipaccess.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/input/ipaccess.c') diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 5d084d8..259c2fe 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -367,13 +367,18 @@ static int ipaccess_bsc_oml_cb(struct ipa_server_link *link, int fd) static int ipaccess_bsc_rsl_cb(struct ipa_server_link *link, int fd) { struct osmo_fd *bfd; + struct e1inp_line *line = link->line; int ret; + /* create virtual E1 timeslots for signalling */ + e1inp_ts_config_sign(&line->ts[E1INP_SIGN_RSL-1], line); + bfd = talloc_zero(tall_ipa_ctx, struct osmo_fd); if (!bfd) return -ENOMEM; bfd->fd = fd; + bfd->data = line; bfd->priv_nr = E1INP_SIGN_RSL; bfd->cb = ipaccess_fd_cb; bfd->when = BSC_FD_READ; -- cgit v1.2.3-55-g7522