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@gmail.com
phone: +34669448337

On Fri, Jun 9, 2017 at 1:59 AM, 赵国杰 <zhaoguojie2010@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@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@163.com <zhaoguojie2010@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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


 


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