<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>the request sent out by Kamailio's dispatcher module should be
      visible inside kamailio.cfg via:</p>
    <p>event_route[tm:local-request] {</p>
    <p>...</p>
    <p>}</p>
    <p>Note that this route block is executed for the requests generated
      by kamailio (apart of nat keepalives), so if there are other
      modules sending out new requests (like msilo, presence, ...), be
      sure you do proper conditions there, like:</p>
    <p>if(is_method("OPTIONS"))</p>
    <p>You can also do checking on From header address, there is a
      parameter for dispatcher to set that address, so you know what to
      match.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 27.12.18 17:02, Duarte Rocha wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAJJHZjgxtJ2up6_tq7Kf4J557uoGRroR412aQvcsRUTCULTdw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div dir="auto">Greetings, </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I have Kamailio with the Dispatcher module and
          it's probing mechanics set up. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I want to be able to access the OPTIONS request
          generated by Kamailio in the request_route or somewhere else
          in the configuration file in order to modify it. Is that
          possible?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Best Regards,</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Duarte Rocha</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>