Hi Volkan,
A possible solution is to have the FS responsible for one (or more) specific domain(s) into a dedicated dispatcher set.
e.g.:
Dispatcher set 1 (generic):
- FS1
- FS2
Dispatcher set 2 (for domain1, domain2, etc):
- FS1
Dispatcher set 3 (for domain5, domain6, etc):
- FS2
Then inside your .cfg, you use the right dispatcher set number in the “set” variable when using ds_select_dst(), depending on the domain.
e.g. when serving domain5 you use ds_select_dst(“2”, …).
I hope this helps.
Giacomo
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org]
On Behalf Of Volkan Oransoy
Sent: 04 May 2014 10:09
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Dispatcher question
Hi all,
I have a multidomain setup that I share load, among two freeswtich servers with a kamailio loadbalancer using dispatcher.
For specific applications like queues, I need to match a sip domain with a freeswitch server. A domain should match same freeswitch server on every request.
Which algorithm should I use with ds_selecy_dst, or what is the most appropriate way to do this?
Thanks.
/Volkan