[SR-Users] Reload an individual entry into a hash table from database

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 5 18:45:49 CEST 2017


Hello,


On 05.07.17 15:24, Jonathan Hunter wrote:
> Hi Guys,
>
> We are currently building a wholesale platform to route numbers to
> particular carriers, and we are looking to do this with hash tables.
>
> We will potentially have 100s of thousands of numbers we will need to
> lookup and query as to where to route them, and one idea is to
> populate them in a database, we would then load these values into a
> hash table which will be defined in the kamailio configuration file
> for us to query in realtime when an Invite arrives.
>
> The backend database will be modified constantly, so we would have the
> need to reload the hash table on demand.
>
> I can see there is the ability to reload a whole hash table,
> sht_reload, but is there an option to reload for an individual entry
> which has been added to the database, and we therefore want it in the
> hash table?
>
> I dont see anything in documentation (forgive me if I have missed it),
> is there an option to reload just an individual key entry from the
> database into cache?
>
loading an individual record from database is not available now,
however, there is a rpc command to set the value of a record in memory,
see htable.seti/s rpc commands.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170705/107eaac0/attachment.html>


More information about the sr-users mailing list