Hi,
It does not work because "Matching string length" has to be integer or,
in case you use a REGEX you can leave it blank, because it will be
ignored anyway.
For the permissions module you have to specify the mask using the number
of bits, just like you did (24 or 32, or what ever you need).
The warning you get is because you have specified a mask like 24 and
most probably you have used an IP that does NOT look like this
xxx.xxx.xxx.0. So, OpenSIPS expect this kind of IP when you use a 24
bits mask. But don't worry, it's just a warning, it will still work fine.
Regards,
Alex
On 02/29/2012 07:35 PM, Alexandre Keller wrote:
I might be doing something wrong. I'm kind of new on OpenSIPs, I've
only worked with Asterisk for the past 6 years.
Here is my Rule, it's a testing rule.
*Dialplan ID: 1*
*Rule Priority: 1*
*Matching Operator: REGEX*
*Matching Regular Expression: 123**
*Matching String Length: **
*Substitution Regular Expression: BLANK*
*Replacement Expression: BLANK*
*Attributes: NONE*
When a push ADD button: Failed to issue query, error message : MDB2
Error: syntax error
Another strange thing is when I add a Gateway on PERMISSIONS page. I
fill the netmask field with 255.255.255.0, but it does not save the
informations. I tried filling with 24 (bits), and it saved just fine.
Is it correct? When I APPLY CHANGES TO SERVER the following message
appears on syslogd:
Feb 29 14:33:25 vm-opensips /usr/sbin/opensips[4281]:
WARNING:core:mk_net: invalid network address/netmask combination fixed...
As I said before, I must be doing something wrong.
Thanks again.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users