[SR-Users] hash table not loading

Daniel-Constantin Mierla miconda at gmail.com
Tue May 5 21:03:39 CEST 2015



On 05/05/15 18:08, Olli Attila wrote:
> Hello,
>
> Problem solved.
>
> I had improper #!ifdef conditions defined and therefore the htable
> definitions were not enabled.
>
> Thank you Daniel.
Welcome! It can happen!

Cheers,
Daniel

>
> -Olli
>
> On 5.5.2015 18:48, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>> can you check that you have no improper #!ifdef conditions? Maybe the
>> part of the config related to htable is not enabled.
>>
>> Cheers,
>> Daniel
>>
>> On 05/05/15 16:22, Olli Attila wrote:
>>> Hello,
>>>
>>> I get the result:
>>>
>>> kamailio # kamcmd htable.dump abc
>>> error: 500 - No such htable
>>>
>>> --Olli
>>>
>>> On 5.5.2015 10:19, Daniel-Constantin Mierla wrote:
>>>> Hello,
>>>>
>>>> can you list the content of the table 'abc'?
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>> On 04/05/15 21:44, Olli Attila wrote:
>>>>> 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
>>>>>
>>>>> _______________________________________________
>>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>>>>> list
>>>>> sr-users at lists.sip-router.org
>>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-users mailing list