<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>Does anyone have feedback about this?</div><div><br></div><div>-H</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Henry Fernandes <<a href="mailto:henry@usinternet.com">henry@usinternet.com</a>><br><span style="font-weight:bold">Date: </span> Wednesday, December 17, 2014 at 3:39 PM<br><span style="font-weight:bold">To: </span> "Kamailio (SER) - Users Mailing List" <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br><span style="font-weight:bold">Subject: </span> bug in allow_source_address?<br></div><div><br></div><div><div 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></div></div></span></body></html>