[OML] Allow each BTS model to specify the OML callback
This allows us to add BTS models that do not use the standard TS 12.21 OML
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index 3605f93..79c3a5a 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -475,6 +475,7 @@
u_int8_t tei, u_int8_t sapi)
{
struct e1inp_sign_link *link;
+ struct gsm_bts *bts;
int ret;
switch (ts->type) {
@@ -492,7 +493,8 @@
switch (link->type) {
case E1INP_SIGN_OML:
msg->trx = link->trx;
- ret = abis_nm_rcvmsg(msg);
+ bts = msg->trx->bts;
+ ret = bts->model->oml_rcvmsg(msg);
break;
case E1INP_SIGN_RSL:
msg->trx = link->trx;