<div dir="ltr">Thanks Olle for that tip<div><br></div><div>I used </div><div><br></div><div><strong style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:19.6000003814697px">$ds</strong><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:19.6000003814697px"> - reference to destination set</span><br></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:19.6000003814697px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:19.6000003814697px">after </span>if(!ds_select_domain("1", "4")) {</div><div><br></div><div>and be able to limit calls dispatched per destination</div><div><br></div><div>Asterisk would control that, with that max calls, but i want a dinamic mecanism where to limit calls before dispatched to asterisk</div><div><br></div><div>Will continue take a look. </div><div><br></div><div>Dialog module is powerfull!</div><div><br></div><div>Enjoy your holidays! Mine comes later... </div>







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