<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> </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> </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> if (!registered("location")) {</div>
<div> {</div>
<div> exit;</div>
<div> }</div>
<div>...</div>
<div>}</div>
<div> </div>
<div>I am assuming that you refer to the subscribers registered in the location table as "peers", 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> </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> </div>
<div>Module configurations:</div>
<div>modparam("tm", "disable_6xx_block", 1)</div>
<div> </div>
<div>onreply_route</div>
<div>{</div>
<div> if ($T_reply_code == "603")</div>
<div> {</div>
<div> drop;</div>
<div> }</div>
<div>}</div>
<div> </div>
<div>Best regards,</div>
<div>Ricardo.</div>
<div> </div>
</font>
</body>
</html>