<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body 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<br>
    <br>
    <div class="moz-cite-prefix">On 12.04.18 14:47, Gholamreza Sabery
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJx6kgWPOc032BfrW5aFA4V0=LPecNO0+02MMgbZ6ZGVZVsx8g@mail.gmail.com">
      <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="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 Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</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>