<p>osmith <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12525">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add IMEI column to subscriber table<br><br>Extend the database scheme, add imei to the hlr_subscriber struct and<br>create db_subscr_update_imei_by_id() and db_subscr_get_by_imei(). The<br>new functions are used in db_test.<br><br>This change requires a HLR DB schema update. Existing databases<br>won't be upgraded automatically. However, osmo-hlr will refuse<br>to operate with databases which are not upgraded.<br><br>SQLite can only insert new columns at the end of the table, so this<br>happens when upgrading the database. In new databases, the column is<br>placed after the IMEISV column (where it makes more sense in my<br>opinion). This should not have any effect, as we never rely on the<br>order of the columns in the tables.<br><br>A follow-up commit will make use of this column to save the IMEI as<br>received from the MSC/VLR with the Check-IMEI Procedure. It was<br>decided to use Check-IMEI instead of the recent Automatic Device<br>Detection Procedure (which would send the IMEISV) in OS#3733, because<br>with Check-IMEI we don't need to rely on very recent releases of the<br>specification.<br><br>Depends: Id2d2a3a93b033bafc74c62e15297034bf4aafe61 (libosmocore)<br>Related: OS#2541<br>Change-Id: If232c80bea35d5c6864b889ae92d477eeaa3f45d<br>---<br>M sql/hlr.sql<br>M src/db.c<br>M src/db.h<br>M src/db_hlr.c<br>M tests/db/db_test.c<br>M tests/db/db_test.err<br>6 files changed, 212 insertions(+), 15 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/25/12525/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12525">change 12525</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/12525"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: If232c80bea35d5c6864b889ae92d477eeaa3f45d </div>
<div style="display:none"> Gerrit-Change-Number: 12525 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>