<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Change your routing script to be sure that the OPTIONS request
      does not hit the load balancing logic. Maybe you should reply to
      it using the options module:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/options.html#id293442">http://www.opensips.org/html/docs/modules/2.1.x/options.html#id293442</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 11.05.2016 10:31, Nduwayezu,
      Joselyne wrote:<br>
    </div>
    <blockquote
cite="mid:CAFSzUtYOLVfRi6ovw7FMgcAKF9QSjRc=53s1DLi7EXsfZJsD3Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello Bogdan, </div>
        <div><br>
        </div>
        <div>Thank you for your reply. How can i fix it then?</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">NDUWAYEZU Joselyne<br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2016-05-11 9:28 GMT+02:00 Bogdan-Andrei
          Iancu <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            Your OPTIONS hits the load_balance() function which returns
            false in this case as only INVITEs are supposed to be
            handled by this function.<br>
            <br>
            Best regards,<br>
            <br>
            Bogdan-Andrei Iancu<br>
            OpenSIPS Founder and Developer<br>
            <a moz-do-not-send="true"
              href="http://www.opensips-solutions.com" target="_blank"
              rel="noreferrer">http://www.opensips-solutions.com</a><br>
            <br>
            On 10.05.2016 17:37, Francjos wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">hello
              ,<br>
              <br>
              I wish<br>
              <br>
              I'm using two opensips servers in redundancy mode, i would
              like one  be able<br>
              to check if the other is still aliveand vice versa. I use
              a sipsak to<br>
              perform this.<br>
              But when i execute the commande  "sipsak -s
              sip:opensips@xxxx where xxx in<br>
              the ip address of the other server, i get the following:<br>
              <br>
              <br>
              Server 10.0.0.5 gives:<br>
              .<br>
              <br>
              <br>
              U 2016/05/10 13:57:12.402720 <a moz-do-not-send="true"
                href="http://10.0.0.5:47413" target="_blank"
                rel="noreferrer">10.0.0.5:47413</a> -&gt; <a
                moz-do-not-send="true" href="http://10.0.0.4:5060"
                target="_blank" rel="noreferrer">10.0.0.4:5060</a><br>
              OPTIONS <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>
              SIP/2.0.<br>
              Via: SIP/2.0/UDP
              10.0.0.5:47413;branch=z9hG4bK.3fc50b66;rport;alias.<br>
              From: <a class="moz-txt-link-abbreviated" href="mailto:sip:sipsak@10.0.0.5:47413;tag=4c5c78b9">sip:sipsak@10.0.0.5:47413;tag=4c5c78b9</a>.<br>
              To: <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>.<br>
              Call-ID: <a moz-do-not-send="true"
                href="mailto:1281128633@10.0.0.5" target="_blank">1281128633@10.0.0.5</a>.<br>
              CSeq: 1 OPTIONS.<br>
              Contact: <a moz-do-not-send="true"
                href="http://sip:sipsak@10.0.0.5:47413" target="_blank"
                rel="noreferrer">sip:sipsak@10.0.0.5:47413</a>.<br>
              Content-Length: 0.<br>
              Max-Forwards: 70.<br>
              User-Agent: sipsak 0.9.6.<br>
              Accept: text/plain.<br>
              .<br>
              <br>
              <br>
              U 2016/05/10 13:57:12.405823 <a moz-do-not-send="true"
                href="http://10.0.0.4:5060" target="_blank"
                rel="noreferrer">10.0.0.4:5060</a> -&gt; <a
                moz-do-not-send="true" href="http://10.0.0.5:47413"
                target="_blank" rel="noreferrer">10.0.0.5:47413</a><br>
              SIP/2.0 500 Service full.<br>
              Via: SIP/2.0/UDP<br>
10.0.0.5:47413;received=10.0.0.5;branch=z9hG4bK.3fc50b66;rport=47413;alias.<br>
              From: <a class="moz-txt-link-abbreviated" href="mailto:sip:sipsak@10.0.0.5:47413;tag=4c5c78b9">sip:sipsak@10.0.0.5:47413;tag=4c5c78b9</a>.<br>
              To: <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>;tag=61890dad1e908c702027bf054a266115.c3bd.<br>
              Call-ID: <a moz-do-not-send="true"
                href="mailto:1281128633@10.0.0.5" target="_blank">1281128633@10.0.0.5</a>.<br>
              CSeq: 1 OPTIONS.<br>
              Server: OpenSIPS (2.1.2 (x86_64/linux)).<br>
              Content-Length: 0.<br>
              .<br>
              <br>
              <br>
              <br>
              <br>
              Server 10.0.0.4 gives:<br>
              <br>
              <br>
              <br>
              <br>
              root@front-1:/etc/opensips# ngrep -d eth0 -t -W byline
              "$1" port 5060 -q<br>
              interface: eth0 (<a moz-do-not-send="true"
                href="http://10.0.0.0/255.255.255.0" target="_blank"
                rel="noreferrer">10.0.0.0/255.255.255.0</a>)<br>
              filter: (ip or ip6) and ( port 5060 )<br>
              <br>
              U 2016/05/10 13:57:12.406208 <a moz-do-not-send="true"
                href="http://10.0.0.5:47413" target="_blank"
                rel="noreferrer">10.0.0.5:47413</a> -&gt; <a
                moz-do-not-send="true" href="http://10.0.0.4:5060"
                target="_blank" rel="noreferrer">10.0.0.4:5060</a><br>
              OPTIONS <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>
              SIP/2.0.<br>
              Via: SIP/2.0/UDP
              10.0.0.5:47413;branch=z9hG4bK.3fc50b66;rport;alias.<br>
              From: <a class="moz-txt-link-abbreviated" href="mailto:sip:sipsak@10.0.0.5:47413;tag=4c5c78b9">sip:sipsak@10.0.0.5:47413;tag=4c5c78b9</a>.<br>
              To: <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>.<br>
              Call-ID: <a moz-do-not-send="true"
                href="mailto:1281128633@10.0.0.5" target="_blank">1281128633@10.0.0.5</a>.<br>
              CSeq: 1 OPTIONS.<br>
              Contact: <a moz-do-not-send="true"
                href="http://sip:sipsak@10.0.0.5:47413" target="_blank"
                rel="noreferrer">sip:sipsak@10.0.0.5:47413</a>.<br>
              Content-Length: 0.<br>
              Max-Forwards: 70.<br>
              User-Agent: sipsak 0.9.6.<br>
              Accept: text/plain.<br>
              .<br>
              <br>
              <br>
              U 2016/05/10 13:57:12.406735 <a moz-do-not-send="true"
                href="http://10.0.0.4:5060" target="_blank"
                rel="noreferrer">10.0.0.4:5060</a> -&gt; <a
                moz-do-not-send="true" href="http://10.0.0.5:47413"
                target="_blank" rel="noreferrer">10.0.0.5:47413</a><br>
              SIP/2.0 500 Service full.<br>
              Via: SIP/2.0/UDP<br>
10.0.0.5:47413;received=10.0.0.5;branch=z9hG4bK.3fc50b66;rport=47413;alias.<br>
              From: <a class="moz-txt-link-abbreviated" href="mailto:sip:sipsak@10.0.0.5:47413;tag=4c5c78b9">sip:sipsak@10.0.0.5:47413;tag=4c5c78b9</a>.<br>
              To: <a moz-do-not-send="true"
                href="mailto:sip%3Aopensips@10.0.0.4" target="_blank">sip:opensips@10.0.0.4</a>;tag=61890dad1e908c702027bf054a266115.c3bd.<br>
              Call-ID: <a moz-do-not-send="true"
                href="mailto:1281128633@10.0.0.5" target="_blank">1281128633@10.0.0.5</a>.<br>
              CSeq: 1 OPTIONS.<br>
              Server: OpenSIPS (2.1.2 (x86_64/linux)).<br>
              Content-Length: 0.<br>
              <br>
              <br>
              <br>
              I guess the error "500 Service full" is related to a bloc
              in the script<br>
              where i define the routing logic for the load balancing:<br>
              <br>
              <br>
              <br>
              <br>
              <br>
              ## Freeswitch<br>
              route[2] {<br>
              <br>
                       xlog("L_NOTICE","[$pr:$fU@$si:$sp]: This is
              Media-Server Route Use<br>
              Load-balancer NOW!!\n");<br>
                        if (!load_balance("1","calls")) {<br>
                                sl_send_reply("500","Service full");<br>
                               exit;<br>
                       }<br>
                       xlog("L_NOTICE","[$pr:$fU@$si:$sp]: Selected
              destination<br>
              Media-Server : $du\n");<br>
              }<br>
              <br>
              In need more explanation how i can fix that.<br>
              Is sipsak a tool of checking the status of the servers or
              are there othor<br>
              tools?<br>
              <br>
              My end goal is to put in place high availability with the
              two servers.<br>
              Ideas please!!!!!<br>
              <br>
              <br>
              <br>
              <span class="HOEnZb"><font color="#888888">
                  <br>
                  --<br>
                  View this message in context: <a
                    moz-do-not-send="true"
href="http://opensips-open-sip-server.1449251.n2.nabble.com/sipsak-and-sip-trace-module-tp7602933.html"
                    target="_blank" rel="noreferrer"><a class="moz-txt-link-freetext" href="http://opensips-open-sip-server.1449251.n2.nabble.com/sipsak-and-sip-trace-module-tp7602933.html">http://opensips-open-sip-server.1449251.n2.nabble.com/sipsak-and-sip-trace-module-tp7602933.html</a></a><br>
                  Sent from the OpenSIPS - Users mailing list archive at
                  Nabble.com.<br>
                  <br>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.opensips.org"
                    target="_blank">Users@lists.opensips.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                    target="_blank" rel="noreferrer">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                  <br>
                </font></span></blockquote>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      Haute École de Bruxelles
    </blockquote>
    <br>
  </body>
</html>