<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>the myself condition doesn't go into parameters matching apart of
transport.</p>
<p>Likely this condition fails because the device is using its own
local IP in From header and R-URI instead of server ip or server
domain.</p>
<p>Can be also when the device uses anonymous in From header and
dials an external domain.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 23.05.18 13:17, Duarte Rocha wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAJJHZjkb_0PgzJV1yJNMbhXpM+mQFN5Ob7hMzoqZtdyJRuGog@mail.gmail.com">
<div dir="ltr">Greetings,
<div><br>
</div>
<div>I'm doing some work with the AUTH routes and modules, and
sometimes i get a "403 Not relaying" answer when the INVITE
has a parameter in the R-URI. That parameter was not included
in the REGISTER.</div>
<div><br>
</div>
<div>I think it's this part of the code that throws this reply
: </div>
<div><br>
</div>
<div># if caller is not local subscriber, then check if it calls<br>
</div>
<div>
<div> # a local destination, otherwise deny, not an
open relay here</div>
<div> if (from_uri!=myself && uri!=myself) {</div>
<div> sl_send_reply("403","Not relaying");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>Does a different or new parameter in the R-URI trigger the
"uri!=myself" ? if so, can I set it up to check R-URI but not
check the parameters?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>