<p>Stefan Sperling <strong>uploaded patch set #6</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12121">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">store a timestamp of the last location update seen from a subscriber<br><br>Timestamps are stored in the HLR DB in the new 'last_lu_seen' column<br>of the 'subscriber' table, in UTC and in granularity of seconds.<br><br>At present, osmo-hlr only records these timestamps but otherwise<br>makes no use of them. Because the timestamps are stored in a<br>human-readable form, they may already provide value to external<br>processes which need this information. For example:<br><br>  sqlite> select imsi,last_lu_seen from subscriber;<br>  901990000000001|2018-12-04 14:17:12<br><br>I didn't bother adding additional tests because the code added<br>with this commit is already being exercised by several calls<br>to db_subscr_lu() in db_test.c.<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>Change-Id: Ibeb49d45aec18451a260a6654b8c51b8fc3bec50<br>Related: OS#2838<br>---<br>M sql/hlr.sql<br>M src/db.c<br>M src/db.h<br>M src/db_hlr.c<br>4 files changed, 108 insertions(+), 5 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/21/12121/6</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12121">change 12121</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/12121"/><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: Ibeb49d45aec18451a260a6654b8c51b8fc3bec50 </div>
<div style="display:none"> Gerrit-Change-Number: 12121 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <stsp@stsp.name> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <stsp@stsp.name> </div>
<div style="display:none"> Gerrit-CC: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>