<div dir="ltr"><div>Thank you very much Daniel.<br><br></div>Regards<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 9:11 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>pointed in another response, is_method(...) is good solution, I
just wanted to add that you should be careful with what you reject
and when, because part of an INVITE dialog can be more than just
ACK, BYE and CANCEL, you can get REFER, UPDATE, INFO, NOTIFY...</p>
<p>So I would allow all requests that have a To-tag (see has_totag()
and Route header added by kamailio (loose_route() should return
true).<br>
</p>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div class="m_3095742989530197834moz-cite-prefix">On 12.04.18 14:47, Gholamreza Sabery
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
I want to limit Kamailios accepted methods to REGISTER, INVITE
and their related methods like BYE and CANCEL. How to do this
in Kamailio? Is there a standard way or I should use is_method
function?<br>
<br>
<br>
</div>
Regards<br>
</div>
<br>
<fieldset class="m_3095742989530197834mimeAttachmentHeader"></fieldset>
<br>
</div></div><span class=""><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_3095742989530197834moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_3095742989530197834moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>
</pre>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_3095742989530197834moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_3095742989530197834moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3095742989530197834moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="m_3095742989530197834moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_3095742989530197834moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote></div><br></div>