<h3>Description</h3>
<p>Currently, the <code>geoip2</code> module loads the IP database at startup and keeps it in cache and there is no way to tell Kamailio to reload the database without a full restart.</p>
<h3>Possible Solutions</h3>
<p>To keep this module inline with other modules that use external datasources, I would suggest to implement a new RPC command and a new geoip2 function to reload the database defined in the <code>path</code> geoip2 modparam without the need of a restart.</p>
<p>I'm not aware of the effort required for implementing either of them, but only having an RPC command would effectively solve this issue as you can call RPC commands from within Kamailio conf, thus, the reload function would not be something strictly required but more of a nice-to-have.</p>
<h3>Examples:</h3>
<p>Function:</p>
<pre><code>geoip2_reload()
</code></pre>
<p>RPC command:</p>
<pre><code>kamctl rpc gip2.reload / kamctl rpc geoip2.reload
</code></pre>
<p>Kamcmd command:</p>
<pre><code>kamcmd geoip2.reload
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2029?email_source=notifications&email_token=ABO7UZM5QPNHLNUIY6KY4VLQDM235A5CNFSM4IKEJL72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HD73JGQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLI5AHDIYEGBSDDK4LQDM235ANCNFSM4IKEJL7Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZNQW62SVG5TM5VRBV3QDM235A5CNFSM4IKEJL72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HD73JGQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2029?email_source=notifications\u0026email_token=ABO7UZM5QPNHLNUIY6KY4VLQDM235A5CNFSM4IKEJL72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HD73JGQ",
"url": "https://github.com/kamailio/kamailio/issues/2029?email_source=notifications\u0026email_token=ABO7UZM5QPNHLNUIY6KY4VLQDM235A5CNFSM4IKEJL72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HD73JGQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>