<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/21384">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mgcp_trunk: get rid of magic numbers for E1 slots<br><br>use NUM_E1_TS-1 instead of 31 in relation of E1 timeslot count<br><br>Change-Id: I1cf5fa17f7455448a08ec3c32febca450eadb21e<br>---<br>M include/osmocom/mgcp/mgcp_trunk.h<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/84/21384/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/mgcp/mgcp_trunk.h b/include/osmocom/mgcp/mgcp_trunk.h</span><br><span>index 8127181..c330244 100644</span><br><span>--- a/include/osmocom/mgcp/mgcp_trunk.h</span><br><span>+++ b/include/osmocom/mgcp/mgcp_trunk.h</span><br><span>@@ -1,6 +1,7 @@</span><br><span> #pragma once</span><br><span> </span><br><span> #include <osmocom/gsm/i460_mux.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/abis/e1_input.h></span><br><span> </span><br><span> #define LOGPTRUNK(trunk, cat, level, fmt, args...) \</span><br><span> LOGP(cat, level, "trunk:%u " fmt, \</span><br><span>@@ -59,8 +60,8 @@</span><br><span>                /* E1 specific */</span><br><span>            struct {</span><br><span>                     unsigned int vty_line_nr;</span><br><span style="color: hsl(0, 100%, 40%);">-                       bool ts_in_use[31];</span><br><span style="color: hsl(0, 100%, 40%);">-                     struct osmo_i460_timeslot i460_ts[31];</span><br><span style="color: hsl(120, 100%, 40%);">+                        bool ts_in_use[NUM_E1_TS-1];</span><br><span style="color: hsl(120, 100%, 40%);">+                  struct osmo_i460_timeslot i460_ts[NUM_E1_TS-1];</span><br><span>              } e1;</span><br><span>        };</span><br><span> };</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/21384">change 21384</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-mgw/+/21384"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1cf5fa17f7455448a08ec3c32febca450eadb21e </div>
<div style="display:none"> Gerrit-Change-Number: 21384 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>