<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Which version of Kamailio worked and which version does not work? <div><br></div><div>/O</div><div><br><div style=""><div>On 29 Dec 2014, at 17:49, Henry Fernandes <<a href="mailto:henry@usinternet.com">henry@usinternet.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);"><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; 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>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><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">select * from address order by mask;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| id | grp | ip_addr       | mask | port | tag      |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 20 |   1 | 123.17.0.0    |   23 | 5061 | Testing  |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 22 |   1 | 123.17.0.0    |   23 | 5062 | Testing  |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 23 |   1 | 123.17.0.0    |   23 | 5063 | Testing  |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 24 |   1 | 123.17.0.0    |   23 | 5064 | Testing  |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">|  1 |   1 | 123.17.0.0    |   23 | 5060 |          |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">|  4 |   1 | 20.5.176.0    |   24 | 5060 |          |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 21 |   1 | 123.17.1.235  |   32 | 5060 | Override |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| 46 |   2 | 123.17.29.201 |   32 | 5060 | customer |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+----+-----+---------------+------+------+----------+</div></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></div>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></div></body></html>