<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I asked in the first email - do you get error messages in syslog? If
    not, then you have to run with debug=3 and look at the log messages
    to see if you get further hints.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 18/12/14 12:29, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWvwfKtqZAroXCfQbsmEWqnyUStk-K9B-AEvY=KgQ+tYcA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Daniel,
        <div>Do you need more information from my kamailio settup, in
          order to try understand why this issue happens?</div>
        <div>Thank you</div>
        <div>BR</div>
        <div>José Seabra</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2014-12-16 12:16 GMT+00:00 José Seabra
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:joseseabra4@gmail.com" target="_blank">joseseabra4@gmail.com</a>></span>:
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Update:
              <div>My last email has the wrong  example, the correct
                code is:</div>
              <span class="">
                <div><br>
                </div>
                <div>
                  <div style="font-size:13px"><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">if(!ds_select_dst("9",
                      "4"))</span><br>
                  </div>
                  <div style="font-size:13px"><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">{</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                    <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                      xlog("L_ERR", "Failed to select proxy - R=$ru
                      ID=$ci\n");</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                    <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                      sl_send_reply("503", "No proxy available, try
                      again later");</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                    <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                      exit;</span></div>
                  <div style="font-size:13px"><font color="#000000"
                      face="monospace"><span
                        style="font-size:12px;line-height:18px;white-space:pre-wrap">}</span></font></div>
                </div>
                <div style="font-size:13px"><font color="#000000"
                    face="monospace"><span
                      style="font-size:12px;line-height:18px;white-space:pre-wrap"><br>
                    </span></font></div>
              </span>
              <div style="font-size:13px"><font color="#000000"
                  face="monospace"><span
                    style="font-size:12px;line-height:18px;white-space:pre-wrap">I'm
                    using </span></font>algorithm 4.</div>
            </div>
            <div class="gmail_extra">
              <div>
                <div class="h5"><br>
                  <div class="gmail_quote">2014-12-16 12:14 GMT+00:00
                    José Seabra <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:joseseabra4@gmail.com"
                        target="_blank">joseseabra4@gmail.com</a>></span>:
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Hello Daniel,
                        <div><br>
                          <div>Yes it enter inside a condition.</div>
                          <div><br>
                          </div>
                          <div>my code is:</div>
                          <div><br>
                          </div>
                          <div><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">if(!ds_select_dst("9",
                              "0"))</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                            <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">{</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                            <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                              xlog("L_ERR", "Failed to select proxy -
                              R=$ru ID=$ci\n");</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                            <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                              sl_send_reply("503", "No proxy available,
                              try again later");</span><br
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                            <span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">
                              exit;</span></div>
                          <div><font color="#000000" face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap">}</span></font></div>
                          <div><font color="#000000" face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap">and all sip
                                registrers sent receives a sip reply 503
                              </span></font><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">"No
                              proxy available, try again later"</span></div>
                          <div><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap"><br>
                            </span></div>
                          <div><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap"><br>
                            </span></div>
                          <div><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">BR</span></div>
                          <div><span
style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre-wrap">José
                              Seabra</span></div>
                          <div class="gmail_extra">
                            <div>
                              <div><br>
                                <div class="gmail_quote">2014-12-16
                                  12:06 GMT+00:00 Daniel-Constantin
                                  Mierla <span dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:miconda@gmail.com"
                                      target="_blank">miconda@gmail.com</a>></span>:
                                  <blockquote class="gmail_quote"
                                    style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000"> Hello,<br>
                                      <br>
                                      what do you mean starts returning
                                      null?<br>
                                      <br>
                                      Does it enter inside a condition
                                      like:<br>
                                      <br>
                                      if(!ds_select_dst(...))<br>
                                      <br>
                                      Are there any error messages in
                                      syslog?<br>
                                      <br>
                                      Daniel
                                      <div>
                                        <div><br>
                                          <br>
                                          <div>On 16/12/14 12:51, José
                                            Seabra wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <blockquote type="cite">
                                        <div>
                                          <div>
                                            <div dir="ltr">Hello there,
                                              <div><br>
                                                <div>
                                                  <div>I'm doing stress
                                                    testing against
                                                    kamailio (sip load
                                                    balancer role)
                                                    sending sip
                                                    registrar, my stress
                                                    test software is
                                                    sending 50
                                                    registrations per
                                                    second, after 30
                                                    seconds and 1000
                                                    registers processed
                                                    the function
                                                    ds_select_dst (I'm
                                                    using algorithm 4)
                                                    returns null for all
                                                    registers sent from
                                                    my software, and all
                                                    registrar sip
                                                    servers are
                                                    available and in
                                                    active mode, if I
                                                    reduce the software
                                                    to  send 20
                                                    registrar's per
                                                    second, the issue
                                                    only happens after
                                                    60 seconds and
                                                    kamailio (sip load
                                                    balancer role)
                                                     process 4000
                                                    registrers, after
                                                    this, function
                                                    ds_select_dst starts
                                                    returning null</div>
                                                </div>
                                                <div><br>
                                                </div>
                                                <div><font
                                                    color="#000000"
                                                    face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap"><br>
                                                    </span></font></div>
                                                <div><font
                                                    color="#000000"
                                                    face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap">Anyone has
                                                      any idea why it is
                                                      happening?</span></font></div>
                                                <div><font
                                                    color="#000000"
                                                    face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap">My kamailio
                                                      version is 4.2</span></font></div>
                                                <div><font
                                                    color="#000000"
                                                    face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap"><br>
                                                    </span></font></div>
                                                <div><font
                                                    color="#000000"
                                                    face="monospace"><span
style="font-size:12px;line-height:18px;white-space:pre-wrap">Best
                                                      Regards</span></font></div>
                                                <div>
                                                  <div>-- <br>
                                                  </div>
                                                  <div>Cumprimentos
                                                    <div>José Seabra</div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                          </div>
                                        </div>
                                        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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><span><font color="#888888">
</font></span></pre>
                                        <span><font color="#888888"> </font></span></blockquote>
                                      <span><font color="#888888"> <br>
                                          <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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 moz-do-not-send="true"
                                      href="mailto:sr-users@lists.sip-router.org"
                                      target="_blank">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"
                                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br clear="all">
                                <div><br>
                                </div>
                                -- <br>
                              </div>
                            </div>
                            <div>Cumprimentos<span><font color="#888888">
                                  <div>José Seabra</div>
                                </font></span></div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br clear="all">
                  <div><br>
                  </div>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">-- <br>
                  <div>Cumprimentos
                    <div>José Seabra</div>
                  </div>
                </font></span></div>
          </blockquote>
        </div>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">Cumprimentos
          <div>José Seabra</div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>