<div dir="ltr"><div>Ah,</div><div><br></div><div>I see the problem, just change list file in following way:</div><div><br></div><div>
1 sip:<a href="http://192.168.0.100:5080" target="_blank">192.168.0.100:5080</a> 0 0 maxload=20<br>1 sip:<a href="http://192.168.0.101:5080" target="_blank">192.168.0.101:5080</a> 0 0 maxload=20
</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 21, 2020 at 3:28 PM Jurijs Ivolga <<a href="mailto:jurijs.ivolga@gmail.com">jurijs.ivolga@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Aristedis,</div><div><br></div><div>Sorry, indeed you have module parameters.</div><div><br></div><div>When one asterisk is down what you see when you run:</div><div><br></div><div>kamcmd dispatcher.list</div><div><br></div><div><div><div dir="ltr"><div dir="ltr">Jurijs<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 21, 2020 at 3:19 PM Aristeidis Tsitras <<a href="mailto:tsitras@gmail.com" target="_blank">tsitras@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<div>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. <br></div><div><br></div><div>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.</div><div><br></div><div><br></div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Τρί, 21 Ιουλ 2020 στις 2:48 μ.μ., ο/η Arsen Semenov <<a href="mailto:arsperger@gmail.com" target="_blank">arsperger@gmail.com</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Aristeidis,</div>David is right, first would be good to check the status of the destinations.<br><br>In your configuration there are couple of things to have in mind: need to set correct flag param <br><a href="https://kamailio.org/docs/modules/5.5.x/modules/dispatcher.html#dispatcher.p.flags" target="_blank">https://kamailio.org/docs/modules/5.5.x/modules/dispatcher.html#dispatcher.p.flags</a><br>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. <div>You can find the examples in the module doc.<div><br>Cheers,<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 21, 2020 at 4:11 PM Aristeidis Tsitras <<a href="mailto:tsitras@gmail.com" target="_blank">tsitras@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>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 <u><b>some </b></u>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. <br></div><div><br></div><div>I am attaching the kamailio.cfg. My dispatch list is:</div><div>1 sip:<a href="http://192.168.0.100:5080" target="_blank">192.168.0.100:5080</a> 0 0 maxload=20<br>2 sip:<a href="http://192.168.0.101:5080" target="_blank">192.168.0.101:5080</a> 0 0 maxload=20</div><div><br></div><div>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.</div><div><br></div><div>I am looking to find what is wrong with my config and i cannot loadbalance/failover to the asterisk servers. <br></div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Arsen Semenov<br></div><div><br></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</blockquote></div>