<div dir="ltr">Hello guys,<div><br></div><div>I0ve freated a view taken from other tables to use with the permissions module, the result looks like this:</div><div><br></div><div><img src="cid:ii_j2j267lo0_15bf2aebbf8fb178" width="489" height="181"></div><div><br></div><div>And some values:</div><div><br></div><div><table id="gmail-table_results" class="gmail-ajax gmail-pma_table" style="border-collapse:collapse;color:rgb(68,68,68);font-family:sans-serif;font-size:13.12px"><tbody><tr class="gmail-odd" style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><td class="gmail-right gmail-data gmail-grid_edit gmail-click2 gmail-not_null gmail-nowrap" style="padding:0.3em;margin-bottom:12px;vertical-align:top;white-space:nowrap;text-align:right;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">23</span></td><td class="gmail-right gmail-data gmail-grid_edit gmail-click2 gmail-not_null gmail-nowrap" style="padding:0.3em;margin-bottom:12px;vertical-align:top;white-space:nowrap;text-align:right;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">10</span></td><td class="gmail-data gmail-grid_edit gmail-click2 gmail-not_null" style="padding:0.3em;margin-bottom:12px;vertical-align:top;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">192.198.1.215</span></td><td class="gmail-right gmail-data gmail-grid_edit gmail-click2 gmail-not_null gmail-nowrap" style="padding:0.3em;margin-bottom:12px;vertical-align:top;white-space:nowrap;text-align:right;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">32</span></td><td class="gmail-right gmail-data gmail-grid_edit gmail-click2 gmail-not_null gmail-nowrap" style="padding:0.3em;margin-bottom:12px;vertical-align:top;white-space:nowrap;text-align:right;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">0</span></td><td class="gmail-data gmail-grid_edit gmail-click2 gmail-not_null" style="padding:0.3em;margin-bottom:12px;vertical-align:top;border-right:1px solid rgb(187,187,187)"><span style="display:block;overflow:hidden">Training-215</span></td></tr></tbody></table><br>Still, Kamailio complaints with:</div><div><br></div><div><div> 0(5796) DEBUG: <core> [db_res.c:188]: db_allocate_rows(): allocate 48 bytes for rows at 0x7f69510651b8</div><div> 0(5796) DEBUG: <core> [db_row.c:117]: db_allocate_row(): allocate 160 bytes for row values at 0x7f6951065250</div><div> 0(5796) DEBUG: <core> [db_val.c:74]: db_str2val(): converting INT [10]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [67.215.186.215]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [32]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [0]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [Training-215]</div><div> 0(5796) DEBUG: <core> [db_row.c:117]: db_allocate_row(): allocate 160 bytes for row values at 0x7f6951065358</div><div> 0(5796) DEBUG: <core> [db_val.c:74]: db_str2val(): converting INT [10]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [67.215.186.216]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [32]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [0]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [PBX-Service]</div><div> 0(5796) DEBUG: <core> [db_row.c:117]: db_allocate_row(): allocate 160 bytes for row values at 0x7f6951065460</div><div> 0(5796) DEBUG: <core> [db_val.c:74]: db_str2val(): converting INT [10]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [67.215.186.212]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [32]</div><div> 0(5796) DEBUG: <core> [db_val.c:85]: db_str2val(): converting BIGINT [0]</div><div> 0(5796) DEBUG: <core> [db_val.c:118]: db_str2val(): converting STRING [JuanPablo]</div><div> 0(5796) DEBUG: permissions [address.c:142]: reload_address_table(): Number of rows in address table: 3</div><div> 0(5796) DEBUG: permissions [address.c:169]: reload_address_table(): failure during checks of database value 3 (subnet size/CIDR) in address table</div><div> 0(5796) ERROR: permissions [address.c:247]: reload_address_table(): database problem - invalid record</div><div> 0(5796) DEBUG: <core> [db_res.c:79]: db_free_columns(): freeing 5 columns</div><div> 0(5796) DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[0] at 0x7f6951064790</div><div> 0(5796) DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[1] at 0x7f6951064718</div><div> 0(5796) DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[2] at 0x7f6951063950</div><div> 0(5796) DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[3] at 0x7f6951064340</div><div> 0(5796) DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[4] at 0x7f6951064498</div><div> 0(5796) DEBUG: <core> [db_res.c:96]: db_free_columns(): freeing result names at 0x7f6951064610</div><div> 0(5796) DEBUG: <core> [db_res.c:101]: db_free_columns(): freeing result types at 0x7f6951064808</div><div> 0(5796) DEBUG: <core> [db_res.c:52]: db_free_rows(): freeing 3 rows</div><div> 0(5796) DEBUG: <core> [db_row.c:95]: db_free_row(): freeing row values at 0x7f6951065250</div><div> 0(5796) DEBUG: <core> [db_row.c:95]: db_free_row(): freeing row values at 0x7f6951065358</div><div> 0(5796) DEBUG: <core> [db_row.c:95]: db_free_row(): freeing row values at 0x7f6951065460</div><div> 0(5796) DEBUG: <core> [db_res.c:60]: db_free_rows(): freeing rows at 0x7f69510651b8</div><div> 0(5796) DEBUG: <core> [db_res.c:138]: db_free_result(): freeing result set at 0x7f6951065118</div><div> 0(5796) CRITICAL: permissions [address.c:359]: init_addresses(): reload of address table failed</div><div> 0(5796) DEBUG: <core> [db_pool.c:100]: pool_remove(): removing connection from the pool</div><div> 0(5796) ERROR: permissions [permissions.c:614]: mod_init(): failed to initialize the allow_address function</div><div> 0(5796) ERROR: <core> [core/sr_module.c:968]: init_mod(): Error while initializing module permissions (/usr/local/kamailio5/lib64/kamailio/modules/permissions.so)</div><div>ERROR: error while initializing modules</div><div><br></div><div><br></div><div><br></div><div>Can anyone help?</div><div><br></div><div>thanks!</div>​<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=1c88e395-ff00-44d7-a2bf-6dcf2d1de01f"><font color="#ffffff" size="1">ᐧ</font></div>