<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div>I’m using allow_source_address in my Kamailio config and have been for months/years.  I’ve had no issues with it until today.</div><div><br></div><div><div>The issue is that allow_source_address("1”) returns “1" (for $si=123.17.29.201 and $sp=5060) even though we don’t have this IP address in the ‘address’ table for group 1.  We have defined this IP address for group 2 but not group 1.</div></div><div><br></div><div><p style="margin: 0px; font-size: 11px; font-family: Menlo;">select * from address order by mask;</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| id | grp | ip_addr       | mask | port | tag      |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 20 |   1 | 123.17.0.0    |   23 | 5061 | Testing  |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 22 |   1 | 123.17.0.0    |   23 | 5062 | Testing  |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 23 |   1 | 123.17.0.0    |   23 | 5063 | Testing  |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 24 |   1 | 123.17.0.0    |   23 | 5064 | Testing  |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">|  1 |   1 | 123.17.0.0    |   23 | 5060 |          |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">|  4 |   1 | 20.5.176.0    |   24 | 5060 |          |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 21 |   1 | 123.17.1.235  |   32 | 5060 | Override |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">| 46 |   2 | 123.17.29.201 |   32 | 5060 | customer |</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</p></div><div><br></div><div>Can anyone explain this?  I’m wondering if there’s a bug in how allow_source_address does its net mask calculations.</div><div>-H</div></body></html>