This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
dexter gerrit-no-reply at lists.osmocom.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/21384 ) Change subject: mgcp_trunk: get rid of magic numbers for E1 slots ...................................................................... mgcp_trunk: get rid of magic numbers for E1 slots use NUM_E1_TS-1 instead of 31 in relation of E1 timeslot count Change-Id: I1cf5fa17f7455448a08ec3c32febca450eadb21e --- M include/osmocom/mgcp/mgcp_trunk.h 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/84/21384/1 diff --git a/include/osmocom/mgcp/mgcp_trunk.h b/include/osmocom/mgcp/mgcp_trunk.h index 8127181..c330244 100644 --- a/include/osmocom/mgcp/mgcp_trunk.h +++ b/include/osmocom/mgcp/mgcp_trunk.h @@ -1,6 +1,7 @@ #pragma once #include <osmocom/gsm/i460_mux.h> +#include <osmocom/abis/e1_input.h> #define LOGPTRUNK(trunk, cat, level, fmt, args...) \ LOGP(cat, level, "trunk:%u " fmt, \ @@ -59,8 +60,8 @@ /* E1 specific */ struct { unsigned int vty_line_nr; - bool ts_in_use[31]; - struct osmo_i460_timeslot i460_ts[31]; + bool ts_in_use[NUM_E1_TS-1]; + struct osmo_i460_timeslot i460_ts[NUM_E1_TS-1]; } e1; }; }; -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/21384 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: I1cf5fa17f7455448a08ec3c32febca450eadb21e Gerrit-Change-Number: 21384 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201126/4cf2e58b/attachment.htm>