From a4ccb04c6c3e6f9d52d3368e2c12969228b52657 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 25 May 2014 18:43:04 +0200 Subject: sysmobts: Implement forwarding the message back to the BSC Address one part of the todo and forward all OML messages to the main signalling link. --- src/osmo-bts-sysmo/oml_router.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/osmo-bts-sysmo/oml_router.c b/src/osmo-bts-sysmo/oml_router.c index 4af20d50..231f7e3e 100644 --- a/src/osmo-bts-sysmo/oml_router.c +++ b/src/osmo-bts-sysmo/oml_router.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -33,6 +34,12 @@ #include #include +static int oml_dispatch_msg(struct gsm_bts *bts, struct msgb *msg) +{ + msg->trx = bts->c0; + return abis_oml_sendmsg(msg); +} + static int oml_router_read_cb(struct osmo_fd *fd, unsigned int what) { struct msgb *msg; @@ -67,8 +74,7 @@ static int oml_router_read_cb(struct osmo_fd *fd, unsigned int what) goto err; } - /* todo dispatch message */ - + return oml_dispatch_msg(fd->data, msg); err: msgb_free(msg); return -1; -- cgit v1.2.3