[SR-Users] Reverse Kamailio Dispatcher order

Julien Chavanton jchavanton at gmail.com
Wed Jan 12 23:40:49 CET 2022


Hi Adarsh,

You could consider, since they support SIP OPTION, you will be able to
always use most responsive/closest one first :
13” - latency optimized dispatching
http://www.kamailio.net/docs/modules/devel/modules/dispatcher.html




On Tue, Jan 11, 2022 at 11:27 PM Adarsh Chauhan <adarshchauhan at hotmail.com>
wrote:

> Hi All,
>
> I was looking for a way where i could reverse the order of priority set on
> destinations in dispatcher file.
>
> for eg:
> if i have the following file:
>
> 1 sip:10.252.168.41:5060;transport=tcp 0 5 # (US)
> 1 sip:10.252.168.42:5060;transport=tcp 0 4 # (US)
> 1 sip:10.252.168.43:5060;transport=tcp 0 3 # (EU)
> 1 sip:10.252.168.44:5060;transport=tcp 0 2 # (EU)
>
> I wanted to use top to bottom when in US region and bottom to top when in
> EU region.
>
> One option is to make another set, however that will force Kamailio to
> send ping (OPTIONS) twice when probing.
>
> Regards,
> Adarsh Chauhan
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220112/72694483/attachment.htm>


More information about the sr-users mailing list