<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>as alternative -- you should be able to set the out bound proxy
      address inside the event_route[tm:local-request], avoiding a loop
      back to the same server.</p>
    <p>On the other hand, the event route is executed for all requests
      generated by kamailio, not only for the keepalives, so you need to
      have conditions there to select what you want to process.<br>
    </p>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 17/06/16 11:24, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWs8Yr7TTgKR=p+OZVaW64BbFaJ_Kn5XjksHGWPRgV+QcQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Olle,
        <div>Thank you for the good hint, this way i can decide the
          destination of th sip OPTIONS in the kamailio script.</div>
        <div><br>
        </div>
        <div>Thank you for the support.</div>
        <div><br>
        </div>
        <div>Best regards</div>
        <div>José</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-06-17 8:24 GMT+01:00 Olle E.
          Johansson <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
              class=""><br>
              > On 16 Jun 2016, at 18:10, José Seabra <<a
                moz-do-not-send="true"
                href="mailto:joseseabra4@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:joseseabra4@gmail.com">joseseabra4@gmail.com</a></a>>
              wrote:<br>
              ><br>
              > Hello there,<br>
              ><br>
              > I have a Kamailio server using dispatcher module to
              monitor several peers, some of them are in the same
              network, others are in an external network, for the peers
              that are in the external network kamailio has to send the
              OPTIONS(dispatcher keep alives) through another kamailio 
              located in the border and acting as loadbalancer.<br>
              ><br>
              > If i set the dispatcher option "outbound_proxy" all
              SIP OPTIONS are sent to the outbound proxy configured and
              it isn't what i need, I need to have by some way a
              possibility to set outbound_proxy only for the peers that
              are located on the external network.<br>
              ><br>
              > How can I do that?<br>
              <br>
            </span>I would set outbound_proxy to the local proxy and
            from that change $du on the “external” ones.<br>
            <br>
            /O<br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos
          <div>José Seabra</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.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-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>