Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Daniel-Constantin Mierla
On 10/9/10 3:35 PM, Iñaki Baz Castillo wrote: 2010/10/9 Shrouk Khan: Oct 9 04:44:25 ubuntu /sbin/kamailio[1469]: ERROR: permissions [address.c:156]: database problem Oct 9 04:44:25 ubuntu /sbin/kamailio[1469]: CRITICAL: permissions [address.c:233]: reload of address table failed Oct 9 04:44

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Daniel-Constantin Mierla
On 10/9/10 3:07 PM, Juha Heinanen wrote: Iñaki Baz Castillo writes: Hi Juha, the above error occurs because "grp" is 0. Could the log be improved so it doesn't complain about shared memory and instead tells that "grp" cannot be zero? there was a commit recently to kamailio_3.0 modules_k/perm

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Juha Heinanen
Iñaki Baz Castillo writes: > Hi Juha, the above error occurs because "grp" is 0. Could the log be > improved so it doesn't complain about shared memory and instead tells > that "grp" cannot be zero? there was a commit recently to kamailio_3.0 modules_k/permissions/address.c. perhaps is already f

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Iñaki Baz Castillo
2010/10/9 Shrouk Khan : > Oct  9 04:44:25 ubuntu /sbin/kamailio[1469]: ERROR: permissions > [address.c:156]: database problem > Oct  9 04:44:25 ubuntu /sbin/kamailio[1469]: CRITICAL: permissions > [address.c:233]: reload of address table failed > Oct  9 04:44:25 ubuntu /sbin/kamailio[1469]: ERROR:

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Iñaki Baz Castillo
2010/10/9 Shrouk Khan : > WOW changing grp to 1 fixed the issue. > > So , why can it not be zero ? Because allow_source_address_group() [*] function returns as integer the value of "grp" column and any module exported function returning 0 means that the request/response processing terminates inmed

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Shrouk Khan
WOW changing grp to 1 fixed the issue. So , why can it not be zero ? On Sat, Oct 9, 2010 at 7:29 PM, Iñaki Baz Castillo wrote: > 2010/10/9 Shrouk Khan : >> On Sat, Oct 9, 2010 at 7:22 PM, Shrouk Khan wrote: >>> hi, >>> actually if i make the address table empty , it works. but if i add >>> any

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Iñaki Baz Castillo
2010/10/9 Shrouk Khan : > On Sat, Oct 9, 2010 at 7:22 PM, Shrouk Khan wrote: >> hi, >> actually if i make the address table empty , it works. but if i add >> any entry to it , it stops working . >> my address table looks like this: >> >> >> id           grp     ip_addr                          mas

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Shrouk Khan
On Sat, Oct 9, 2010 at 7:22 PM, Shrouk Khan wrote: > hi, > actually if i make the address table empty , it works. but if i add > any entry to it , it stops working . > my address table looks like this: > > > id           grp     ip_addr                          mask              port > 3          

Re: [SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Iñaki Baz Castillo
2010/10/9 Shrouk Khan : > ct  9 04:44:25 ubuntu /sbin/kamailio[1469]: WARNING: permissions > [permissions.c:604]: default allow file (//etc/kamailio/permissions.allow) > not found => empty rule set > Oct  9 04:44:25 ubuntu /sbin/kamailio[1469]: WARNING: permissions > [permissions.c:613]: default de

[SR-Users] Failed to start kamailio with permissions module

2010-10-09 Thread Shrouk Khan
hi all, i am trying to load the permission module in the following manner: loadmodule "permissions.so" # permission params -- modparam("permissions", "db_url", "mysql://openser:opense...@localhost/openser") modparam("permissions", "db_mode",1) modparam("permissions", "trusted_table", "tr