Update:
My last email has the wrong example, the correct code is:
if(!ds_select_dst("9", "4"))
{
xlog("L_ERR", "Failed to select proxy - R=$ru ID=$ci\n");
sl_send_reply("503", "No proxy available, try again later");
exit;
}
I'm using algorithm 4.
2014-12-16 12:14 GMT+00:00 José Seabra <joseseabra4(a)gmail.com>om>:
Hello Daniel,
Yes it enter inside a condition.
my code is:
if(!ds_select_dst("9", "0"))
{
xlog("L_ERR", "Failed to select proxy - R=$ru ID=$ci\n");
sl_send_reply("503", "No proxy available, try again later");
exit;
}
and all sip registrers sent receives a sip reply 503 "No proxy
available, try again later"
BR
José Seabra
2014-12-16 12:06 GMT+00:00 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
>
> Hello,
>
> what do you mean starts returning null?
>
> Does it enter inside a condition like:
>
> if(!ds_select_dst(...))
>
> Are there any error messages in syslog?
>
> Daniel
>
>
> On 16/12/14 12:51, José Seabra wrote:
>
> Hello there,
>
> 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
>
>
> Anyone has any idea why it is happening?
> My kamailio version is 4.2
>
> Best Regards
> --
> Cumprimentos
> José Seabra
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org
>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
>
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org
>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
--
Cumprimentos
José Seabra