[SR-Users] Dispatcher does not go to 2nd server

Jurijs Ivolga jurijs.ivolga at gmail.com
Tue Jul 21 14:30:10 CEST 2020


Ah,

I see the problem, just change list file in following way:

1 sip:192.168.0.100:5080 0 0 maxload=20
1 sip:192.168.0.101:5080 0 0 maxload=20

Jurijs


On Tue, Jul 21, 2020 at 3:28 PM Jurijs Ivolga <jurijs.ivolga at gmail.com>
wrote:

> Hi Aristedis,
>
> Sorry, indeed you have module parameters.
>
> When one asterisk is down what you see when you run:
>
> kamcmd dispatcher.list
>
> Jurijs
>
>
> On Tue, Jul 21, 2020 at 3:19 PM Aristeidis Tsitras <tsitras at gmail.com>
> wrote:
>
>> i know that there is something wrong, but i can not figure it out.
>> Especially for the modparam settings that Mr Jurijs Ivolga is proposing, I
>> already had them. it is the kamailio.cfg that I originally attached.
>>
>> Unfortunately I did not manage to find anything in the parameters that
>> will solve the problem as proposed by Villasmil and Semenov. I have given a
>> try on changes but nothing good came up.
>>
>>
>>
>> Στις Τρί, 21 Ιουλ 2020 στις 2:48 μ.μ., ο/η Arsen Semenov <
>> arsperger at gmail.com> έγραψε:
>>
>>> 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.p.flags
>>> 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 at 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 at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>
>>>
>>> --
>>> Arsen Semenov
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> 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/20200721/eeb0e611/attachment.htm>


More information about the sr-users mailing list