diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-05-25 18:43:04 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-05-25 18:44:29 +0200 |
commit | a4ccb04c6c3e6f9d52d3368e2c12969228b52657 (patch) | |
tree | 1716ace1c5a245eed0ede80913e1dfae7359a23e | |
parent | 6fd71a306aa66f233a0521538ff2002ac03a76b0 (diff) |
sysmobts: Implement forwarding the message back to the BSCsysmocom/sysmobts-2050/oml-alert
Address one part of the todo and forward all OML messages to the
main signalling link.
-rw-r--r-- | src/osmo-bts-sysmo/oml_router.c | 10 |
1 files 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 <osmo-bts/logging.h> #include <osmo-bts/oml.h> #include <osmo-bts/msg_utils.h> +#include <osmo-bts/abis.h> #include <osmocom/core/socket.h> #include <osmocom/core/select.h> @@ -33,6 +34,12 @@ #include <string.h> #include <unistd.h> +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; |