Hi Aristeidis,
David is right, first would be good to check the status of the destinations.
In your configuration there are couple of things to have in mind: need to
set correct flag param
https://kamailio.org/docs/modules/5.5.x/modules/dispatcher.html#dispatcher.…
select the algorithm used to select the destination (ds_select_dst) and
have a faulure_route where the next destination will be tried in case first
is down.
You can find the examples in the module doc.
Cheers,
On Tue, Jul 21, 2020 at 4:11 PM Aristeidis Tsitras <tsitras(a)gmail.com>
wrote:
I have a Kamailio and 2 asterisk servers. All users
are created in both of
the asterisk servers. I am forwarding the registration to asterisk. The
problem is that it is always used on only one server from the list. Even if
one goes to shutdown, then there is not any registration sent to the
available server. Even if *some *of the extensions can be seen registered
in both of the asterisk's, if the secondary goes down, then there are no
services for the phones.
I am attaching the kamailio.cfg. My dispatch list is:
1 sip:192.168.0.100:5080 0 0 maxload=20
2 sip:192.168.0.101:5080 0 0 maxload=20
In both of the asterisk servers i am using sip.conf to create users and s
sip trunk for the Kamailio. Nothing special about it.
I am looking to find what is wrong with my config and i cannot
loadbalance/failover to the asterisk servers.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Arsen Semenov