<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
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.<br>
<br>
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).<br>
<br>
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.<br>
<br>
Regards,<br>
Alex<br>
<br>
On 02/29/2012 07:35 PM, Alexandre Keller wrote:
<blockquote
cite="mid:A7F07A9F-E06A-471F-854E-8CE8134CF60F@gmail.com"
type="cite">I might be doing something wrong. I'm kind of new on
OpenSIPs, I've only worked with Asterisk for the past 6 years.
<div><br>
</div>
<div>Here is my Rule, it's a testing rule.</div>
<div><br>
</div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Dialplan
ID: 1</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Rule
Priority: 1</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Matching
Operator: REGEX</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Matching
Regular Expression: 123*</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Matching
String Length: *</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Substitution
Regular Expression: BLANK</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Replacement
Expression: BLANK</b></span></div>
<div><span class="Apple-style-span" style="font-family:
Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"><b>Attributes:
NONE</b></span></div>
<div><br>
</div>
<div>When a push ADD button: <span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 12px;">Failed to issue query, error message : MDB2
Error: syntax error</span></div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>Feb 29 14:33:25 vm-opensips /usr/sbin/opensips[4281]:
WARNING:core:mk_net: invalid network address/netmask combination
fixed...</div>
<div><br>
</div>
<div>As I said before, I must be doing something wrong.</div>
<div><br>
</div>
<div>Thanks again.</div>
<br>
</blockquote>
<br>
</body>
</html>