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
Hello,
what are your concerns regarding the other set with reverse order? This would be surely the simplest solution. The few pings every minute or so should not be an issue to any server.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Adarsh Chauhan Sent: Wednesday, January 12, 2022 1:53 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] Reverse Kamailio Dispatcher order
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
Hi Henning,
I agree that it shouldn't be a problem to a downstream server however I was hoping to have a cleaner solution. we are deploying Kamailio in containers and have total of 4 so far for high availability, so don't want to fire pings at the downstream and also would generate unwanted logs.
Regards, Adarsh Chauhan ________________________________ From: Henning Westerholt hw@gilawa.com Sent: Wednesday, January 12, 2022 8:58 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Adarsh Chauhan adarshchauhan@hotmail.com Subject: RE: Reverse Kamailio Dispatcher order
Hello,
what are your concerns regarding the other set with reverse order? This would be surely the simplest solution.
The few pings every minute or so should not be an issue to any server.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Adarsh Chauhan Sent: Wednesday, January 12, 2022 1:53 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] Reverse Kamailio Dispatcher order
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
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@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@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Dynamic routing might be the better tool for this job.
Brian.
On Wednesday, January 12, 2022, Adarsh Chauhan adarshchauhan@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