Hi all<div><br></div><div>I'm testing the htable module at Kamailio 3.1. Currently it's an extremely simple table with a single row loaded from a postgres DB.</div><div>These are the relevant lines in the configuration file:</div>
<div><br></div><div><div>modparam("htable", "db_url", "postgres://user:password@localhost:5432/database")</div><div>modparam("htable", "htable", "a=>size=2;autoexpire=0;dbtable=h_table;")</div>
<div>modparam("htable", "key_name_column", "key_name")</div><div>modparam("htable", "key_type_column", "key_type")</div><div>modparam("htable", "value_type_column", "value_type")</div>
<div>modparam("htable", "key_value_column", "key_value")</div></div><div><br></div><div>The only line in the table is:</div><div><br></div><div><div> key_name | key_value | key_type | value_type </div>
<div>----------+-----------+----------+------------</div><div> 5 | 1 | 1 | 0</div></div><div><br></div><div>However, sht_print() shows this:</div><div><br></div><div><div> 0(8570) ERROR: htable [ht_api.c:488]: ===== htable[a] hid: 109 exp: 0></div>
<div> 0(8570) ERROR: htable [ht_api.c:492]: htable[0] -- <0></div><div> 0(8570) ERROR: htable [ht_api.c:492]: htable[1] -- <0></div><div> 0(8570) ERROR: htable [ht_api.c:492]: htable[2] -- <0></div><div>
0(8570) ERROR: htable [ht_api.c:492]: htable[3] -- <1></div><div> 0(8570) ERROR: htable [ht_api.c:496]: <span class="Apple-tab-span" style="white-space:pre">        </span>cell: 5</div><div> 0(8570) ERROR: htable [ht_api.c:498]: <span class="Apple-tab-span" style="white-space:pre">        </span>hid: 51 msize: 74 flags: 0 expire: 0</div>
<div> 0(8570) ERROR: htable [ht_api.c:502]: <span class="Apple-tab-span" style="white-space:pre">        </span>v-i:9585128</div></div><div><br></div><div>Any idea of what might be happening?</div><div><br></div><div>Thanks in advance.</div>
<div><br></div><div><br></div><div><br></div>