mgcp_endp: use NUM_E1_TS from e1_input.h
do not introduce another define constant, use NUM_E1_TS as number of E1
timeslots.
Change-Id: I3bbfb6822d5595f9d243849141883490fa8037cb
diff --git a/src/libosmo-mgcp/mgcp_endp.c b/src/libosmo-mgcp/mgcp_endp.c
index 668d88b..c4f3653 100644
--- a/src/libosmo-mgcp/mgcp_endp.c
+++ b/src/libosmo-mgcp/mgcp_endp.c
@@ -27,9 +27,9 @@
#include <osmocom/mgcp/mgcp_endp.h>
#include <osmocom/mgcp/mgcp_trunk.h>
+#include <osmocom/abis/e1_input.h>
#include <osmocom/mgcp/mgcp_e1.h>
-#define E1_TIMESLOTS 32
#define E1_RATE_MAX 64
#define E1_OFFS_MAX 8
@@ -375,7 +375,7 @@
if (strncmp(token, "s-", 2) == 0) {
errno = 0;
res = strtoul(token + 2, NULL, 10);
- if (errno == ERANGE || res > E1_TIMESLOTS)
+ if (errno == ERANGE || res > NUM_E1_TS)
return 0xff;
return (uint8_t) res;
}