The best way is to let the server you send the calls to decide when it has too many calls. It has all the statesneeded 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./OOn 23 Jul 2015, at 11:16, Alberto Sagredo <alberto.sagredo@avanzada7.com> wrote:_______________________________________________Sorry :)I found two scripts, the one on other mail worked fineper user limit is this oneBest Regards :)
Any comment to improve it is welcome2015-07-23 9:48 GMT+02:00 Alberto Sagredo <alberto.sagredo@avanzada7.com>:HiHi have read documentation but it seems dispatcher does not keep how many calls has been dispatched or currently are in any of dispatcher destinationsI have take a look to code on: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 RegardsAlberto
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