<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Hello Bruce,</div>
<div>&nbsp;</div>
<div>Strangely, I've never gotten an Anonymous INVITE rejected by Asterisk with 603, but that was the version 1.4.</div>
<div>Let me try to help with your request for a solution with Kamailio.</div>
<div>&nbsp;</div>
<div>These few lines could be added to your main route, after the place where your handle the registration. It will block any request from unregistered users:</div>
<div>Route {</div>
<div>...</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!registered(&quot;location&quot;)) {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>...</div>
<div>}</div>
<div>&nbsp;</div>
<div>I am assuming that you refer to the subscribers registered in the location table as &quot;peers&quot;, I mean, they should be registered in Kamailio, not in asterisk. If not, you can do something similar with some database query. But let us know if that is the case.</div>
<div>&nbsp;</div>
<div>Perhaps you'd be interested in these next ones as well, they helped me a short while ago to workaround on some issues with the code 603:</div>
<div>&nbsp;</div>
<div>Module configurations:</div>
<div>modparam(&quot;tm&quot;, &quot;disable_6xx_block&quot;, 1)</div>
<div>&nbsp;</div>
<div>onreply_route</div>
<div>{</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($T_reply_code == &quot;603&quot;)</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drop;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>}</div>
<div>&nbsp;</div>
<div>Best regards,</div>
<div>Ricardo.</div>
<div>&nbsp;</div>
</font>
</body>
</html>