[SR-Users] Dispatcher module number of calls

Alberto Sagredo alberto.sagredo at avanzada7.com
Thu Jul 23 11:40:02 CEST 2015


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 at 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 at 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 at 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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150723/1095df4f/attachment.html>


More information about the sr-users mailing list