<div dir="ltr">'Minor details' means the use of PATH module, <a href="https://www.kamailio.org/docs/modules/stable/modules/path.html">https://www.kamailio.org/docs/modules/stable/modules/path.html</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 2:09 PM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Mar 15, 2018 at 03:32:00PM +0000, Seyed Mohammad Mirheydari wrote:<br>
> I have 5 asterisk servers. And I want to use kamailio as load balancer.<br>
> How can route sip calls from outside to asterisk servers?<br>
><br>
> Note:<br>
> I installed kamailio and mairadb , etc.<br>
> I configured subscriber for kamailio.<br>
> And add my 5 servers to databse.<br>
><br>
> Hust to know how to change the file kamailio.cfg to route all incoming calls to my 5 asterisk server (round robin).<br>
<br>
</span>This can be accomplished with the dispatcher module. There is an example<br>
in<br>
<a href="https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/<wbr>modules/stable/modules/<wbr>dispatcher.html#dispatcher.ex.<wbr>config</a><br>
It does exactly what you requested.<br>
<br>
Now if for example you want to have subscribers REGISTER or route<br>
INVITEs from these asterisk backends to the outside work through these<br>
proxies, you'll need to to adapt some (minor) details.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>