<div dir="ltr">Hello there,<div><br></div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br class="">I'm configuring the LCR module, with more than one lcr instance, for example each instance id will have atleast 1 diferent gateway,</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">well the issue here is that if i configure another gateways with diferent LCR_ID and then run kamcmd lcr.reload then kamcmd lcr.dump_gws i only see the gateways that belongs to the instance 1,  should it show me the all gateways  for each lcr instance correct?<br>
</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I'm using kamailio-4.0.4</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">please have a look at my lcr configuration example and the kamailio logs:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Mysql:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<div>mysql> select * from lcr_gw;</div><div>+----+--------+---------+-------------+-------------+------+--------+------------+-----------+-------+--------+------+-------+---------+</div><div>| id | lcr_id | gw_name | ip_addr     | hostname    | port | params | uri_scheme | transport | strip | prefix | tag  | flags | defunct |</div>
<div>+----+--------+---------+-------------+-------------+------+--------+------------+-----------+-------+--------+------+-------+---------+</div><div>|  1 |      1 | teste1  | 192.168.1.1 | 192.168.1.1 | 5060 | NULL   |          1 |         1 |  NULL | NULL   | NULL |     0 |    NULL |</div>
<div>|  2 |      2 | teste2  | 192.168.1.2 | 192.168.1.2 | 5060 | NULL   |          1 |         1 |  NULL | NULL   | NULL |     0 |    NULL |</div><div>+----+--------+---------+-------------+-------------+------+--------+------------+-----------+-------+--------+------+-------+---------+</div>
<div>2 rows in set (0.01 sec)</div><div><br></div><div>mysql> select * from lcr_rule;</div><div>+----+--------+--------+----------+-------------+---------+---------+</div><div>| id | lcr_id | prefix | from_uri | request_uri | stopper | enabled |</div>
<div>+----+--------+--------+----------+-------------+---------+---------+</div><div>|  1 |      1 | NULL   | NULL     | 256*        |       0 |       1 |</div><div>|  2 |      2 | NULL   | NULL     | 236*        |       0 |       1 |</div>
<div>+----+--------+--------+----------+-------------+---------+---------+</div><div>2 rows in set (0.00 sec)</div><div><br></div><div>mysql> select * from lcr_rule_target;</div><div>+----+--------+---------+-------+----------+--------+</div>
<div>| id | lcr_id | rule_id | gw_id | priority | weight |</div><div>+----+--------+---------+-------+----------+--------+</div><div>|  1 |      1 |       1 |     1 |        1 |     10 |</div><div>|  2 |      2 |       2 |     2 |        1 |     10 |</div>
<div>+----+--------+---------+-------+----------+--------+</div><div>2 rows in set (0.00 sec)</div><div><br></div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">kamcd lcr.dump_gws</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>kamcmd lcr.dump_gws</div><div>12(3267) DEBUG: ctl [../../io_wait.h:390]: io_watch_add(): DBG: io_watch_add(0x7ffb90811c00, 9, 3, 0x1ca0880), fd_no=1</div>
<div>12(3267) DEBUG: ctl [io_listener.c:453]: handle_new_connect(): handle_stream read: new connection (1) on /tmp/kamailio_ctl</div><div>{</div><div><span style="white-space:pre-wrap"> </span>lcr_id: 1</div><div><span style="white-space:pre-wrap">        </span>gw_id: 1</div>
<div><span style="white-space:pre-wrap">  </span>gw_index: 1</div><div><span style="white-space:pre-wrap">      </span>gw_name: teste1</div><div><span style="white-space:pre-wrap">  </span>scheme: sip</div><div><span style="white-space:pre-wrap">      </span>ip_addr: 192.168.1.1</div>
<div><span style="white-space:pre-wrap">  </span>hostname: 192.168.1.1</div><div><span style="white-space:pre-wrap">    </span>port: 5060</div><div><span style="white-space:pre-wrap">       </span>params: </div><div><span style="white-space:pre-wrap">        </span>transport: UDP</div>
<div><span style="white-space:pre-wrap">  </span>strip: 0</div><div><span style="white-space:pre-wrap"> </span>prefix: </div><div><span style="white-space:pre-wrap">        </span>tag: </div><div><span style="white-space:pre-wrap">   </span>flags: 0</div>
<div><span style="white-space:pre-wrap">  </span>defunct_until: 0</div><div>}</div><div>12(3267) DEBUG: ctl [io_listener.c:506]: handle_stream_read(): handle_stream read: eof on /tmp/kamailio_ctl</div><div>12(3267) DEBUG: ctl [../../io_wait.h:617]: io_watch_del(): DBG: io_watch_del (0x7ffb90811c00, 9, -1, 0x10) fd_no=2 called</div>
</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">kamcmd lcr.reload logs:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br clear="all"><div><div>kamcmd lcr.reload</div><div>12(3267) DEBUG: ctl [../../io_wait.h:390]: io_watch_add(): DBG: io_watch_add(0x7ffb90811c00, 9, 3, 0x1ca0880), fd_no=1</div>
<div>12(3267) DEBUG: ctl [io_listener.c:453]: handle_new_connect(): handle_stream read: new connection (1) on /tmp/kamailio_ctl</div><div>12(3267) DEBUG: <core> [db.c:318]: db_do_init2(): connection 0x7ffb95b50ff0 not found in pool</div>
<div>12(3267) DEBUG: db_mysql [km_my_con.c:94]: db_mysql_new_connection(): opening connection: mysql://xxxx:xxxx@localhost/kamailio</div><div>12(3267) DEBUG: db_mysql [km_my_con.c:121]: db_mysql_new_connection(): connection type is Localhost via UNIX socket</div>
<div>12(3267) DEBUG: db_mysql [km_my_con.c:122]: db_mysql_new_connection(): protocol version is 10</div><div>12(3267) DEBUG: db_mysql [km_my_con.c:123]: db_mysql_new_connection(): server version is 5.1.69</div><div>12(3267) DEBUG: <core> [db_res.c:118]: db_new_result(): allocate 56 bytes for result set at 0x7ffb95b51160</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:68]: db_mysql_get_columns(): 6 columns returned from the query</div><div>12(3267) DEBUG: <core> [db_res.c:155]: db_allocate_columns(): allocate 48 bytes for result names at 0x7ffb95b4e3b0</div>
<div>12(3267) DEBUG: <core> [db_res.c:165]: db_allocate_columns(): allocate 24 bytes for result types at 0x7ffb95b51240</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7ffb95b51280</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51280)[0]=[id]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[1] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512b0)[1]=[prefix]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[2] at 0x7ffb95b512e0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512e0)[2]=[from_uri]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>
12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[3] at 0x7ffb95b51310</div><div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51310)[3]=[stopper]</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[4] at 0x7ffb95b511c0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b511c0)[4]=[enabled]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[5] at 0x7ffb95b51340</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51340)[5]=[request_uri]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>
12(3267) DEBUG: db_mysql [km_dbase.c:358]: db_mysql_fetch_result(): converting row 0 of 1 count 1</div><div>12(3267) DEBUG: <core> [db_row.c:119]: db_allocate_row(): allocate 192 bytes for row values at 0x7ffb95b49280</div>
<div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [0]</div>
<div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: <core> [db_val.c:117]: db_str2val(): converting STRING [256*]</div><div>12(3267) DEBUG: lcr [lcr_mod.c:1238]: reload_tables(): loading, cycle 0 with <1> rows</div>
<div>12(3267) DEBUG: lcr [hash.c:89]: rule_hash_table_insert(): inserted rule_id <1>, prefix <>, from_uri <>, request_uri <256*>, stopper <0>, into index <0></div><div>12(3267) DEBUG: lcr [hash.c:104]: rule_hash_table_insert(): inserted rule_id <1> addr <0x7ffb8dbd5480> into rule_id hash table index <1></div>
<div>12(3267) DEBUG: <core> [db_res.c:54]: db_free_rows(): freeing 1 rows</div><div>12(3267) DEBUG: <core> [db_row.c:97]: db_free_row(): freeing row values at 0x7ffb95b49280</div><div>12(3267) DEBUG: <core> [db_res.c:62]: db_free_rows(): freeing rows at 0x7ffb95b513a0</div>
<div>12(3267) DEBUG: <core> [db_res.c:81]: db_free_columns(): freeing 6 columns</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[0] at 0x7ffb95b51280</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[1] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[2] at 0x7ffb95b512e0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[3] at 0x7ffb95b51310</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[4] at 0x7ffb95b511c0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[5] at 0x7ffb95b51340</div>
<div>12(3267) DEBUG: <core> [db_res.c:94]: db_free_columns(): freeing result names at 0x7ffb95b4e3b0</div><div>12(3267) DEBUG: <core> [db_res.c:99]: db_free_columns(): freeing result types at 0x7ffb95b51240</div>
<div>12(3267) DEBUG: <core> [db_res.c:136]: db_free_result(): freeing result set at 0x7ffb95b51160</div><div>12(3267) DEBUG: <core> [db_res.c:118]: db_new_result(): allocate 56 bytes for result set at 0x7ffb95b51160</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:68]: db_mysql_get_columns(): 13 columns returned from the query</div><div>12(3267) DEBUG: <core> [db_res.c:155]: db_allocate_columns(): allocate 104 bytes for result names at 0x7ffb95b49280</div>
<div>12(3267) DEBUG: <core> [db_res.c:165]: db_allocate_columns(): allocate 52 bytes for result types at 0x7ffb95b49360</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7ffb95b511c0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b511c0)[0]=[gw_name]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[1] at 0x7ffb95b51310</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51310)[1]=[ip_addr]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[2] at 0x7ffb95b512e0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512e0)[2]=[port]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[3] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512b0)[3]=[uri_scheme]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[4] at 0x7ffb95b51280</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51280)[4]=[transport]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[5] at 0x7ffb95b51370</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51370)[5]=[params]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[6] at 0x7ffb95b513a0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b513a0)[6]=[hostname]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>
12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[7] at 0x7ffb95b493c0</div><div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b493c0)[7]=[strip]</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[8] at 0x7ffb95b493f0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b493f0)[8]=[prefix]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[9] at 0x7ffb95b49420</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b49420)[9]=[tag]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[10] at 0x7ffb95b49450</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b49450)[10]=[flags]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[11] at 0x7ffb95b49480</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b49480)[11]=[defunct]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[12] at 0x7ffb95b51240</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51240)[12]=[id]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: <core> [db_res.c:184]: db_allocate_rows(): allocate 16 bytes for rows at 0x7ffb95b4e3b0</div>
<div>12(3267) DEBUG: <core> [db_row.c:119]: db_allocate_row(): allocate 416 bytes for row values at 0x7ffb95b494b0</div><div>12(3267) DEBUG: <core> [db_val.c:117]: db_str2val(): converting STRING [teste1]</div>
<div>12(3267) DEBUG: <core> [db_val.c:117]: db_str2val(): converting STRING [192.168.1.1]</div><div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [5060]</div><div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div>
<div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:117]: db_str2val(): converting STRING [192.168.1.1]</div>
<div>12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [0]</div>
<div>12(3267) DEBUG: <core> [db_val.c:56]: db_str2val(): converting NULL value12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: lcr [lcr_mod.c:836]: insert_gw(): inserted gw <1, teste1, 192.168.1.1, 5060, 192.168.1.1> at index 1</div>
<div>12(3267) DEBUG: <core> [db_res.c:81]: db_free_columns(): freeing 13 columns</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[0] at 0x7ffb95b511c0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[1] at 0x7ffb95b51310</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[2] at 0x7ffb95b512e0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[3] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[4] at 0x7ffb95b51280</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[5] at 0x7ffb95b51370</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[6] at 0x7ffb95b513a0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[7] at 0x7ffb95b493c0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[8] at 0x7ffb95b493f0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[9] at 0x7ffb95b49420</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[10] at 0x7ffb95b49450</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[11] at 0x7ffb95b49480</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[12] at 0x7ffb95b51240</div><div>12(3267) DEBUG: <core> [db_res.c:94]: db_free_columns(): freeing result names at 0x7ffb95b49280</div>
<div>12(3267) DEBUG: <core> [db_res.c:99]: db_free_columns(): freeing result types at 0x7ffb95b49360</div><div>12(3267) DEBUG: <core> [db_res.c:54]: db_free_rows(): freeing 1 rows</div><div>12(3267) DEBUG: <core> [db_row.c:97]: db_free_row(): freeing row values at 0x7ffb95b494b0</div>
<div>12(3267) DEBUG: <core> [db_res.c:62]: db_free_rows(): freeing rows at 0x7ffb95b4e3b0</div><div>12(3267) DEBUG: <core> [db_res.c:136]: db_free_result(): freeing result set at 0x7ffb95b51160</div><div>12(3267) DEBUG: <core> [db_res.c:118]: db_new_result(): allocate 56 bytes for result set at 0x7ffb95b51160</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:68]: db_mysql_get_columns(): 13 columns returned from the query</div><div>12(3267) DEBUG: <core> [db_res.c:155]: db_allocate_columns(): allocate 104 bytes for result names at 0x7ffb95b49280</div>
<div>12(3267) DEBUG: <core> [db_res.c:165]: db_allocate_columns(): allocate 52 bytes for result types at 0x7ffb95b49360</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7ffb95b49450</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b49450)[0]=[gw_name]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[1] at 0x7ffb95b49420</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b49420)[1]=[ip_addr]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[2] at 0x7ffb95b493f0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b493f0)[2]=[port]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[3] at 0x7ffb95b493c0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b493c0)[3]=[uri_scheme]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[4] at 0x7ffb95b513a0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b513a0)[4]=[transport]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[5] at 0x7ffb95b51370</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51370)[5]=[params]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[6] at 0x7ffb95b51280</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51280)[6]=[hostname]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>
12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[7] at 0x7ffb95b512b0</div><div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512b0)[7]=[strip]</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[8] at 0x7ffb95b512e0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512e0)[8]=[prefix]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[9] at 0x7ffb95b51310</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51310)[9]=[tag]</div><div>12(3267) DEBUG: db_mysql [km_res.c:136]: db_mysql_get_columns(): use DB1_STRING result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[10] at 0x7ffb95b511c0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b511c0)[10]=[flags]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[11] at 0x7ffb95b51340</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51340)[11]=[defunct]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[12] at 0x7ffb95b51240</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51240)[12]=[id]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:169]: db_mysql_convert_rows(): no rows returned from the query</div>
<div>12(3267) DEBUG: <core> [db_res.c:81]: db_free_columns(): freeing 13 columns</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[0] at 0x7ffb95b49450</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[1] at 0x7ffb95b49420</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[2] at 0x7ffb95b493f0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[3] at 0x7ffb95b493c0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[4] at 0x7ffb95b513a0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[5] at 0x7ffb95b51370</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[6] at 0x7ffb95b51280</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[7] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[8] at 0x7ffb95b512e0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[9] at 0x7ffb95b51310</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[10] at 0x7ffb95b511c0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[11] at 0x7ffb95b51340</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[12] at 0x7ffb95b51240</div><div>12(3267) DEBUG: <core> [db_res.c:94]: db_free_columns(): freeing result names at 0x7ffb95b49280</div>
<div>12(3267) DEBUG: <core> [db_res.c:99]: db_free_columns(): freeing result types at 0x7ffb95b49360</div><div>12(3267) DEBUG: <core> [db_res.c:136]: db_free_result(): freeing result set at 0x7ffb95b51160</div>
<div>12(3267) DEBUG: <core> [db_res.c:118]: db_new_result(): allocate 56 bytes for result set at 0x7ffb95b51160</div><div>12(3267) DEBUG: db_mysql [km_res.c:68]: db_mysql_get_columns(): 4 columns returned from the query</div>
<div>12(3267) DEBUG: <core> [db_res.c:155]: db_allocate_columns(): allocate 32 bytes for result names at 0x7ffb95b51240</div><div>12(3267) DEBUG: <core> [db_res.c:165]: db_allocate_columns(): allocate 16 bytes for result types at 0x7ffb95b511c0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7ffb95b51310</div><div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51310)[0]=[rule_id]</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[1] at 0x7ffb95b512e0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512e0)[1]=[gw_id]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[2] at 0x7ffb95b512b0</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b512b0)[2]=[priority]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_res.c:85]: db_mysql_get_columns(): allocate 16 bytes for RES_NAMES[3] at 0x7ffb95b51280</div>
<div>12(3267) DEBUG: db_mysql [km_res.c:92]: db_mysql_get_columns(): RES_NAMES(0x7ffb95b51280)[3]=[weight]</div><div>12(3267) DEBUG: db_mysql [km_res.c:100]: db_mysql_get_columns(): use DB1_INT result type</div><div>12(3267) DEBUG: db_mysql [km_dbase.c:358]: db_mysql_fetch_result(): converting row 0 of 1 count 1</div>
<div>12(3267) DEBUG: <core> [db_row.c:119]: db_allocate_row(): allocate 128 bytes for row values at 0x7ffb95b49280</div><div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div>
<div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [1]</div><div>12(3267) DEBUG: <core> [db_val.c:73]: db_str2val(): converting INT [10]</div><div>12(3267) DEBUG: lcr [lcr_mod.c:1450]: reload_tables(): loading, cycle 0 with <1> rows</div>
<div>12(3267) DEBUG: lcr [hash.c:160]: rule_hash_table_insert_target(): found rule with id <1> and addr <0x7ffb8dbd5480></div><div>12(3267) DEBUG: <core> [db_res.c:54]: db_free_rows(): freeing 1 rows</div>
<div>12(3267) DEBUG: <core> [db_row.c:97]: db_free_row(): freeing row values at 0x7ffb95b49280</div><div>12(3267) DEBUG: <core> [db_res.c:62]: db_free_rows(): freeing rows at 0x7ffb95b51370</div><div>12(3267) DEBUG: <core> [db_res.c:81]: db_free_columns(): freeing 4 columns</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[0] at 0x7ffb95b51310</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[1] at 0x7ffb95b512e0</div>
<div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[2] at 0x7ffb95b512b0</div><div>12(3267) DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[3] at 0x7ffb95b51280</div>
<div>12(3267) DEBUG: <core> [db_res.c:94]: db_free_columns(): freeing result names at 0x7ffb95b51240</div><div>12(3267) DEBUG: <core> [db_res.c:99]: db_free_columns(): freeing result types at 0x7ffb95b511c0</div>
<div>12(3267) DEBUG: <core> [db_res.c:136]: db_free_result(): freeing result set at 0x7ffb95b51160</div><div>12(3267) DEBUG: <core> [db_pool.c:102]: pool_remove(): removing connection from the pool</div><div>[root@seabra kamailio]# 12(3267) DEBUG: ctl [io_listener.c:506]: handle_stream_read(): handle_stream read: eof on /tmp/kamailio_ctl</div>
<div>12(3267) DEBUG: ctl [../../io_wait.h:617]: io_watch_del(): DBG: io_watch_del (0x7ffb90811c00, 9, -1, 0x10) fd_no=2 called</div><div><br></div></div><div>Thank you</div><div><br></div><div>Best Regards</div></div><div>
<br></div>-- <br>Cumprimentos<div>José Seabra</div>
</div></div>