<p></p>

<h3>Description</h3>
<p>Looking for a mechanism to reload Location attributes at runtime.</p>
<p>Having both registered and permanent Contacts under AoR, with Attributes from <code>usrloc</code> to be used for various routing decisions.</p>
<p>This is about attributes of permanent Contacts. Registered ones have <code>xavp_contact</code> of <code>usrloc</code> to store attributes during registration.<br>
  <br>
<strong>Problem:</strong></p>
<p>Only way to make it work is: </p>
<ol>
<li>adding a permanent Contact using <code>rpc ul.add</code></li>
<li>assigning attributes in DB <code>location_attr</code> per RUID (can't find an rpc function for attributes)</li>
<li>restart Kamailio</li>
</ol>
<p>modparam("usrloc", "db_mode", 1)<br>
modparam("usrloc", "db_load", 1)</p>
<p>This however is far from ideal, having to restart Kamailio for every change in attributes of a Contact.</p>
<h3>Expected behavior</h3>
<h4>Actual observed behavior</h4>
<h4>Debugging Data</h4>
<pre><code>(paste your debugging data here)
</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<p>version: kamailio 5.3.3 (x86_64/linux) 44ccb9</p>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>(paste your output here)
</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/2299">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK7JTYIUZGFAY6ITALROCFO3ANCNFSM4MPK66WA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMPEDW5W2GWAWT52KTROCFO3A5CNFSM4MPK66WKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JA3PGEA.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/2299",
"url": "https://github.com/kamailio/kamailio/issues/2299",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>