<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello George,</p>
<p>if you have a static mapping from a AoR to an IP address you could also just route this in the cfg or with another database table (e.g. with a sqlops query). More or less the whole point of the usrloc/registrar modules is to have people register to your
 server and then maintain this mapping.<br>
</p>
<p>About the expiration - the easist would be to just enter a value that is in the future. This is e.g. the default value of the location table: DEFAULT_LOCATION_EXPIRES "2030-05-28 21:32:15"<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 20.09.19 um 15:37 schrieb George Diamantopoulos:<br>
</div>
<blockquote type="cite" cite="mid:CAPcKEYPvkG8o98y9ZTdHkYmV_qc6=SbhNWqXjc5b-YfYgHdGyw@mail.gmail.com">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>Normally I wouldn't be asking this but I was surprised to find no reference to anyone doing this online. I need to have a few AoRs with static entries in kami's location table, which will always be reachable at their contacts without ever having to register
 with Kamailio.</div>
<div><br>
</div>
<div>Am I right in thinking that merely INSERTing respective rows in kamailio's location DB backend will do the trick? Is there anything I need to worry about, like contacts being periodically purged? If yes, how do I prevent that from happening? And will kamailio
 always query the DB when performing location lookup or do I need to restart upon inserting new records (to purge caches, for example)?<br>
</div>
<div><br>
</div>
<div>Lastly, I'm not sure how to treat some fields present in usrloc tables like ruid, expires (can I set this to NULL?), callid and cseq (which is irrelevant since there's no REGISTER), flags, cflags and methods.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>George<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Kamailio Merchandising - <a class="moz-txt-link-freetext" href="https://skalatan.de/merchandising/">https://skalatan.de/merchandising/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a>
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a></pre>
</body>
</html>