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,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
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 alberto.sagredo@avanzada7.com:
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,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
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 remember the error code used and won’t check right now, as I’m on holiday :-)
Having the same state in two different servers is looking for trouble.
/O
On 23 Jul 2015, at 11:16, Alberto Sagredo alberto.sagredo@avanzada7.com wrote:
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 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 <alberto.sagredo@avanzada7.com mailto:alberto.sagredo@avanzada7.com>: 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 http://lists.sip-router.org/pipermail/sr-users/2012-July/073919.html
But it seems to use calls limit per user,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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
Will continue take a look.
Dialog module is powerfull!
Enjoy your holidays! Mine comes later...
2015-07-23 11:26 GMT+02:00 Olle E. Johansson oej@edvina.net:
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 remember the error code used and won’t check right now, as I’m on holiday :-)
Having the same state in two different servers is looking for trouble.
/O
On 23 Jul 2015, at 11:16, Alberto Sagredo alberto.sagredo@avanzada7.com wrote:
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 alberto.sagredo@avanzada7.com:
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,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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 dispatcher will update the load state for the node.
Fred Posner fred@palner.com http://palner.com
On 07/23/2015 03:48 AM, Alberto Sagredo wrote:
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,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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");
exit;
}
dlg_manage();
$var(SIZE) = 0;
get_profile_size("callquota", "$ds", "$var(SIZE)");
if( $var(SIZE) >= MAX_NUMBER_OF_CALLS ){
xlog("L_INFO:Se ha alcanzado el máximo numero de llamadas para $ds : Limite $var(SIZE) llamadas\n");
sl_send_reply("503", "Simultaneous calls limit reached");
exit;
}
set_dlg_profile("callquota","$ds");
if (get_profile_size("callquota","$var(SIZE)")) {
xlog("L_INFO: Hay $var(SIZE) llamadas encaminadas para $ds\n");
}
route(RELAY);
exit;
}
2015-07-23 14:30 GMT+02:00 Fred Posner fred@palner.com:
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 dispatcher will update the load state for the node.
Fred Posner fred@palner.com http://palner.com
On 07/23/2015 03:48 AM, Alberto Sagredo wrote:
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,
I would need to establish a limit per dispatcher destination i order to do not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread information of how many calls to every destination but do not know how to extract calls from kamailio that have been dispatched to this destination using disptcher module.
Best Regards
Alberto
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users