On Thu, Mar 15, 2018 at 03:32:00PM +0000, Seyed Mohammad Mirheydari wrote:
> I have 5 asterisk servers. And I want to use kamailio as load balancer.
> How can route sip calls from outside to asterisk servers?
> 
> Note:
> I installed kamailio and mairadb , etc.
> I configured subscriber for kamailio.
> And add my 5 servers to databse.
> 
> Hust to know how to change the file kamailio.cfg to route all incoming calls 
> to my 5 asterisk server (round robin).

This can be accomplished with the dispatcher module. There is an example
in 
https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config
It does exactly what you requested. 

Now if for example you want to have subscribers REGISTER or route
INVITEs from these asterisk backends to the outside work through these
proxies, you'll need to to adapt some (minor) details.


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to