<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hello all,<br />
<br />
I am having some trouble with Permissions module of Kamailio, regarding the allow_source_address_group() function. In 99.9% of the cases the IP of our partner is allowed as expected, but randomly it can fail (returning -1 for the same IP address that was allowed for many other calls in the meantime). <br />
<br />
I can’t understand why it fails and why only « sometimes » - I confirm this append on the same Kamailio box, with same IP and Port of the partner.<br />
<br />
In my custom logs:<br />
« X.X.X.X:YYYY is allowed through group Z » —> as expected<br />
and sometimes (like 1% of the cases): « X.X.X.X:YYYY is not allowed -  allow_source_address_group returned -1»<br />
<br />
It is maybe to note that in the address table, this range is defined as /24 and not /32. Until now it never happened on /32 defined address but I don’t know if it can be correlated.<br />
<br />
Would someone have a clue on this?<br />
<br />
Versions:<br />
- kamailio 5.5.0 (x86_64/linux) d4c1a1<br />
- debian 9 stretch<br />
- postgresql 11.7<br />
<br />
Many thanks!</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><b>Romain Untereiner</b><br />
Co founder at <a href="https://www.cantoo.co"><i>Cantoo</i></a><br />
<a href="www.cantoo.co">www.cantoo.co</a></div>
</div>
</body>
</html>