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
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
