<div dir="ltr"><div>Hi Aristeidis,</div><div><br></div><div>In your case Dispatcher module is misconfigured and it missing crutials parts like:</div><div><br></div><div dir="ltr">modparam("dispatcher", "flags", 2)   # without this flag no failover will happen, as you experiencing <br>modparam("dispatcher", "xavp_dst", "_dsdst_")  # this xavps will hold the list with addresses and
                associated properties, without it no failover will happen<br>modparam("dispatcher", "xavp_ctx", "_dsctx_") 

The name of the XAVP which will hold some attributes specific to
                dispatcher routing context. I'm not 100% sure, but I think it will not work without this xavp too, in all my configurations it is there.<br></div><div dir="ltr"><br></div><div dir="ltr">Jurijs<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 21, 2020 at 2:22 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@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><div dir="auto">First thing is trying to get both servers status on opensips and make sure opensips sees them up:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://opensips.org/html/docs/modules/2.3.x/dispatcher.html#idp5739696" target="_blank">https://opensips.org/html/docs/modules/2.3.x/dispatcher.html#idp5739696</a></div><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 Jul 2020 at 12:12, 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></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</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>