<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10129">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS codec pref legacy compat: allow all codecs per default<br><br>Legacy compat: we used to not check the BTS codec-pref settings upon assignment<br>until we added checks for the BTS codec-pref in osmo-bsc<br>5bc43cd107597b78f701f77c7fd4cce8f923dce5, change-id<br>I285234e9c81de74d9fb9907fca2c443b08537435, "codec_pref: check bts codec<br>support". From that commit onwards, config setups without a 'codec-pref'<br>potentially stop working (like all osmo-gsm-tester runs just did), because with<br>no codec-pref settings, now only FR is permitted, while before the patch, we<br>would allow any codecs as long as MSC and the overall BSC config agree on them.<br>So, upon BTS initialization, enable all codecs. These get reset to a more fine<br>grained selection IF a 'codec-pref' appears in the config file (see bsc_vty.c).<br><br>Change-Id: I4650a1f8e350c6f74f48391f43ddfe771be01e1b<br>---<br>M src/osmo-bsc/gsm_data.c<br>1 file changed, 14 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/29/10129/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c</span><br><span>index 0f062d2..6c8bdf3 100644</span><br><span>--- a/src/osmo-bsc/gsm_data.c</span><br><span>+++ b/src/osmo-bsc/gsm_data.c</span><br><span>@@ -757,6 +757,20 @@</span><br><span>     INIT_LLIST_HEAD(&bts->abis_queue);</span><br><span>    INIT_LLIST_HEAD(&bts->loc_list);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Legacy compat: we used to not check the BTS codec-pref settings upon assignment until we added</span><br><span style="color: hsl(120, 100%, 40%);">+      * checks for the BTS codec-pref in osmo-bsc 5bc43cd107597b78f701f77c7fd4cce8f923dce5, change-id</span><br><span style="color: hsl(120, 100%, 40%);">+       * I285234e9c81de74d9fb9907fca2c443b08537435, "codec_pref: check bts codec support". From that</span><br><span style="color: hsl(120, 100%, 40%);">+       * commit onwards, config setups without a 'codec-pref' potentially stop working, because with no</span><br><span style="color: hsl(120, 100%, 40%);">+      * codec-pref settings, now only FR is permitted, while before the patch, we would allow any</span><br><span style="color: hsl(120, 100%, 40%);">+   * codecs as long as MSC and the overall BSC config agree on them.  So, upon BTS initialization,</span><br><span style="color: hsl(120, 100%, 40%);">+       * enable all codecs. These get reset to a more fine grained selection IF a 'codec-pref' appears</span><br><span style="color: hsl(120, 100%, 40%);">+       * in the config file (see bsc_vty.c). */</span><br><span style="color: hsl(120, 100%, 40%);">+     bts->codec = (struct bts_codec_conf){</span><br><span style="color: hsl(120, 100%, 40%);">+              hr = 1,</span><br><span style="color: hsl(120, 100%, 40%);">+               efr = 1,</span><br><span style="color: hsl(120, 100%, 40%);">+              amr = 1,</span><br><span style="color: hsl(120, 100%, 40%);">+      };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         return bts;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10129">change 10129</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/10129"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4650a1f8e350c6f74f48391f43ddfe771be01e1b </div>
<div style="display:none"> Gerrit-Change-Number: 10129 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>