[SR-Users] hash table not loading

Olli Attila attiolli at gmail.com
Mon May 4 21:44:55 CEST 2015


Hello,

I am trying to load a test hash table on kamailio startup but I keep 
getting the following error with kamctl after i restart Kamailio and try 
to list all the tables in memory:

kamcmd> htable.listTables
error: 500 - No htables

I have the following configured in kamailio.cfg:
# ---- loading the htable module
loadmodule "htable.so"
# ----- htable params -----
modparam("htable", "htable", "abc=>size=8;autoexpire=0;dbtable=htable;")
modparam("htable", "db_url", DBURL)
modparam("htable", "fetch_rows", 1000)

The DBURL is pointed to the kamailio database on the same machine.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif

I have also added the following values for testing purposes to the 
kamailio.htable:
    id  key_name    key_type  value_type  key_value  expires
------  ----------  --------  ----------  ---------  ---------
      1  test         0           0  12345              0

Is there anything else that i might be missing here? Im running kamailio 
v.4.2.4.

Cheers,

-- Olli



More information about the sr-users mailing list