<p>osmith <strong>uploaded patch set #4</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_imsi() and db_subscr_get_by_imei(). The<br>new functions are used in db_test, and in follow-up commits [1], [2].<br><br>Upgrade DB schema to version 2. SQLite can only insert new columns at<br>the end of the table, so this happens when upgrading the database. In<br>new databases, the column is placed after the IMEISV column (where it<br>makes more sense in my opinion). This should not have any effect, as<br>we never rely on the order of the columns in the tables.<br><br>Follow-up commit [1] 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>[1] change-id I09274ecbed64224f7ae305e09ede773931da2a57<br>    "Optionally store IMEI in subscriber table"<br>[2] change-id I1af7b573ca2a1cb22497052665012d9c1acf3b30<br>    "VTY: integrate IMEI"<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, 186 insertions(+), 14 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/4</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: 4 </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: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>