<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">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"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">{</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">     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"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">     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"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">     exit;</span></div><div><font color="#000000" face="monospace"><span style="font-size:12px;line-height:18px;white-space:pre">}</span></font></div><div><font color="#000000" face="monospace"><span style="font-size:12px;line-height:18px;white-space:pre">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">"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"><br></span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre"><br></span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">BR</span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">José Seabra</span></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-16 12:06 GMT+00:00 Daniel-Constantin Mierla <span dir="ltr"><<a 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 class="h5"><br>
    <br>
    <div>On 16/12/14 12:51, José Seabra wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <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 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><span class=""><font color="#888888">
</font></span></pre><span class=""><font color="#888888">
    </font></span></blockquote><span class=""><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<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" 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 class="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div></div></div>