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 <f...@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 > f...@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 > >
_______________________________________________ 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