<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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<div class="">needed and should be able to block the call with an error response, preferrably in the 5xx range. </div><div class=""><br class=""></div><div class="">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 :-)</div><div class=""><br class=""></div><div class="">Having the same state in two different servers is looking for trouble.</div><div class=""><br class=""></div><div class="">/O</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 23 Jul 2015, at 11:16, Alberto Sagredo <<a href="mailto:alberto.sagredo@avanzada7.com" class="">alberto.sagredo@avanzada7.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Sorry :)<div class=""><br class=""></div><div class="">I found two scripts, the one on other mail worked fine</div><div class=""><br class=""></div><div class="">per user limit is this one</div><div class=""><br class=""></div><div class=""><a href="https://www.mail-archive.com/sr-users@lists.sip-router.org/msg07072.html" class="">https://www.mail-archive.com/sr-users@lists.sip-router.org/msg07072.html</a><br class=""></div><div class=""><br class=""></div><div class="">Best Regards :)</div><div class=""><br class="">Any comment to improve it is welcome</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-07-23 9:48 GMT+02:00 Alberto Sagredo <span dir="ltr" class=""><<a href="mailto:alberto.sagredo@avanzada7.com" target="_blank" class="">alberto.sagredo@avanzada7.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi<div class=""><br class=""></div><div class="">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</div><div class=""><br class=""></div><div class="">I have take a look to code on:</div><div class=""><br class=""></div><div class=""><a href="http://lists.sip-router.org/pipermail/sr-users/2012-July/073919.html" target="_blank" class="">http://lists.sip-router.org/pipermail/sr-users/2012-July/073919.html</a><br class=""></div><div class=""><br class=""></div><div class="">But it seems to use calls limit per user, </div><div class=""><br class=""></div><div class="">I would need to establish a limit per dispatcher destination i order to do not send more calls.</div><div class=""><br class=""></div><div class="">Any idea where to look for?</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Best Regards</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Alberto</div></font></span></div>
</blockquote></div><br class=""></div>
_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class=""><a href="mailto:sr-users@lists.sip-router.org" class="">sr-users@lists.sip-router.org</a><br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></div></body></html>