From ibc@aliax.net Fri Dec 4 14:38:53 2015 From: =?utf-8?q?I=C3=B1aki?= Baz Castillo To: sr-users@lists.kamailio.org Subject: [SR-Users] [permissions] allow_source_address_group() always return -1 Date: Fri, 04 Dec 2015 14:38:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0015993379==" --===============0015993379== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi all, Kamailio 4.3 (Debian Wheezy package) with db_mysql and permissions modules enabled. Once started, this is the cached content of the "address" table: ~# kamctl mi "address_dump" 22 <20, 99.23.86.78, 0> [TEST SERVER] Within the script: ----------------------------- xlog("L_INFO", "request_route() [method:$rm, si:$si, sp:$sp]\n"); $var(group) = allow_source_address_group(); if ($var(group) != -1) { // ALWAYS HERE :( xlog("L_WARN", "invalid source IP [si:$si]\n"); } ----------------------------- Then I send an INVITE from such an allowed IP, and got: INFO: