<div dir="ltr">Hi Daniel,<div>I already have tried that solution, changing the $du pseudo variable but the SIP OPTIONS still going to the address configured on dispatcher table.</div><div><br></div><div>Is it enough change the $du on <span style="font-size:12.8px">event_route[tm:local-request], or need something else?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you for your support</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best Regards</span></div><div><span style="font-size:12.8px">José</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-17 11:57 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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<div><div class="h5"><br>
    <br>
    <div>On 17/06/16 11:24, José Seabra wrote:<br>
    </div>
    <blockquote 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 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><br>
              > On 16 Jun 2016, at 18:10, José Seabra <<a href="mailto:joseseabra4@gmail.com" target="_blank"></a><a href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</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 href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
            <a 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 data-smartmail="gmail_signature">Cumprimentos
          <div>José Seabra</div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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>
<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>