[OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Nick Altmann
First question: Is it okay #define PERM_MAX_SUBNETS 128 ? What to do if I need to load about 5000 subnets. And second question: Why it doesn't load 0.0.0.0/0 subnet? -- Nick ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi

Re: [OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Bogdan-Andrei Iancu
Hi Nick, Indeed the table keeping the subnets is limited to PERM_MAX_SUBNETS - the table is statically allocate at startup. So, if you want more, you need to recompile. Regarding the 0.0.0.0/0 : 1) why do you want to add that :P ? 2) what error do you get? Regards, Bogdan-Andrei Ian

Re: [OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Nick Altmann
1. What about to modify this module to dynamically allocate memory for subnets structure? 2. About 0.0.0.0/0 - no error messages. Just no record if I do "opensipsctl fifo subnet_dump". For example: I need group1 of users to permit from 8.8.0.0/24 and I need group2 to permit from all. Another user

Re: [OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Bogdan-Andrei Iancu
Hi Nick, 1. Well, I agree, but I'm not sure what will be the impact over the code - like either : doing re-allocs to increase the table each time you get it full either doing it as a linked list. Probably 1) is simpler to do, with a dynamic size for the table. 2. So you say the rule

Re: [OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Nick Altmann
With debug=3 only messages about permissions.allow and permissions.deny files not found. Record like '0.0.0.0/0' are silently ignored. -- Nick 2012/9/6 Bogdan-Andrei Iancu : > Hi Nick, > > 1. Well, I agree, but I'm not sure what will be the impact over the code - > like either : > doing re-al

Re: [OpenSIPS-Users] A questions about permissions module

2012-09-06 Thread Bogdan-Andrei Iancu
Try 255.255.255.255/0 to match all. 0 starting IPs are not valid and supported Regards, Bogdan Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 09/06/2012 01:51 PM, Nick Altmann wrote: With debug=3 only messages about permissions.allow and permissions.d