[SR-Users] user management of kamailio cluster

Nathan Ward kamailio-sr-users at daork.net
Fri Jun 9 10:04:14 CEST 2017


Hi,

Developing such a solution is going to be quite complicated any way you look at it, and will require deep understanding of a number of things in order to operate it, and there are a number of tradeoffs you’ll need to make based on your exact use case. I don’t think a mailing list discussion is a going to get you the skills required to build a solution like this - you have quite a bit of study ahead of you.

However, if you cannot use DNS (why?) I can think of a few other options - these are presented merely as a starting point for your investigations - you’ll need to have a strong understanding of these in order to make decisions about which is appropriate for you:
1) Anycast - this uses IP routing to get to the closest instance of an IP address. You might want to combine that with a redirect if the message is sent to the anycast IP, to have the client do subsequent things by talking to the “real” IP of the server.
2) Use geoip to figure out where a user is, and redirect them to the closest instance if they are not already talking to that. Client will need to be configured to one of the servers? Or all of them with some sort of preference? Not sure what is appropriate for you here.
3) Use geoip like (2) but with a single central server, which replies with 301. This may work for some use cases - i.e. inbound heavy, and may not work with all clients.

There are a bunch of considerations - for example, what is “closest” ? I don’t expect you to answer that to me, but, you will need to have a clear definition before you can embark on this project.

> On 9/06/2017, at 6:30 PM, 赵国杰 <zhaoguojie2010 at 163.com> wrote:
> 
> That's the thing. I'm not be able to use dns, just raw ip.
> 
> Cheers,
> Jesse
> 
> 在 2017-06-09 14:24:33,"David Villasmil" <david.villasmil.work at gmail.com> 写道:
> You'd need geographical dns resolution, the dns returns the ip closest to the request's location... I thought that's how you're deciding what ip to give to the users...
>> 
> Regards,
> 
> David Villasmil
> email: david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
> 
> On Fri, Jun 9, 2017 at 2:20 AM, 赵国杰 <zhaoguojie2010 at 163.com <mailto:zhaoguojie2010 at 163.com>> wrote:
> Hi David,
>      Does that mean the user send the request to a randomly selected kamailio first, and then use it as a hop to direct to the closest one? How can I direct the users to their closest kamailio? Is there any doc that I can refer to ??
> 
> Thanks
> Jesse
> 
> 在 2017-06-09 14:09:51,"David Villasmil" <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>> 写道:
> You can use the 
> alias=udp:myglobaldomain:5060
> 
> to use a single domain, and direct the users to their closest ip.
>> 
> Regards,
> 
> David Villasmil
> email: david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337 <tel:+34%20669%2044%2083%2037>
> On Fri, Jun 9, 2017 at 1:59 AM, 赵国杰 <zhaoguojie2010 at 163.com <mailto:zhaoguojie2010 at 163.com>> wrote:
> hello David,
>     I want the user to register to the kamailio server which is closest to the user. Each user(aka subscriber) has a unique domain, but my kamailio servers have 10 different domains which are their public ip. Let's say, based on user's ip, the closest kamailio server's domain is 35.185.3.4. I can use the one account which has the domain 35.185.3.4 to register to that kamailio server. I don't think I can do that with just 1 account. If i'm wrong, please tell me the write way.
> 
> Thanks
> Jesse
> 
> 在 2017-06-08 22:46:33,"David Villasmil" <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>> 写道:
> Sorry, i have to ask: why not just 1 account for all servers? There are many solutions to replicate the dbs, share the dbs amongst all kamailios, etc... just wondering 
> On Thu, Jun 8, 2017 at 8:42 AM zhaoguojie2010 at 163.com <mailto:zhaoguojie2010 at 163.com> <zhaoguojie2010 at 163.com <mailto:zhaoguojie2010 at 163.com>> wrote:
> Hi all.
>     I have 10 kamailio servers across the world. Each of them has a public ip which is also their SIP DOMAIN. When a user register on my service, I'd use their username and password to generate 10 sip accounts, one for each kamailio server so that they can register to any of them.  So for each user I will have to insert 10 records in the subscriber table. Is there a better way to do this?
> 
> Cheers
> Jesse
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
> 
> 
>  
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
> 
> 
> 
> 
>  
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <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/20170609/4808f471/attachment.html>


More information about the sr-users mailing list