Thanks Fred
I will take a look to that and let you know
Now using
route[TOASTERISK] {
if(!ds_select_domain("1", "4")) {
sl_send_reply("500", "Service Unavailable");
xlog("L_INFO","[$fU@$si:$sp]{$rm} Sin destinos disponibles
para $rd \n");
Have you tried with algorithm 10 (call load distribution)?
http://www.kamailio.org/docs/modules/4.3.x/modules/dispatcher.html
You will need to set a few parameters such as duid, hash_size, etc. and
then utilize the special attribute of maxload.
Then, using ds_load_update and ds_load_unset dispat
Thanks Olle for that tip
I used
*$ds* - reference to destination set
after if(!ds_select_domain("1", "4")) {
and be able to limit calls dispatched per destination
Asterisk would control that, with that max calls, but i want a dinamic
mecanism where to limit calls before dispatched to asterisk
The best way is to let the server you send the calls to decide when it has too
many calls. It has all the states
needed and should be able to block the call with an error response, preferrably
in the 5xx range.
Asterisk chan_sip will do this if you set maxcalls in asterisk.conf. I don’t
rememb
Sorry :)
I found two scripts, the one on other mail worked fine
per user limit is this one
https://www.mail-archive.com/sr-users@lists.sip-router.org/msg07072.html
Best Regards :)
Any comment to improve it is welcome
2015-07-23 9:48 GMT+02:00 Alberto Sagredo :
> Hi
>
> Hi have read documenta
Hi
Hi have read documentation but it seems dispatcher does not keep how many
calls has been dispatched or currently are in any of dispatcher destinations
I have take a look to code on:
http://lists.sip-router.org/pipermail/sr-users/2012-July/073919.html
But it seems to use calls limit per user,