Re: [OpenSIPS-Users] Federated User Location Cluster and subscriber table

2020-02-04 Thread Social Boh

thank you very much for your aswer.

Regards

---
I'm SoCIaL, MayBe

El 04/02/2020 a las 12:29, Liviu Chircu escribió:

On 04.02.2020 19:26, Social Boh wrote:
I use a NoSQL DB to save registration meta data  but do I have use 
one mariadb or mysql opensips database to create users on su


I see now.  Then the answer is likely: YES!  It will be much easier to 
manage a
single, global subscriber table.  Also, by having it, you are allowing 
any user

to register to any POP.



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster and subscriber table

2020-02-04 Thread Liviu Chircu

On 04.02.2020 19:26, Social Boh wrote:
I use a NoSQL DB to save registration meta data  but do I have use one 
mariadb or mysql opensips database to create users on su


I see now.  Then the answer is likely: YES!  It will be much easier to 
manage a
single, global subscriber table.  Also, by having it, you are allowing 
any user

to register to any POP.

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
  www.opensips.org/events
OpenSIPS Bootcamp, Miami, March 2020
  www.opensips.org/training


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster and subscriber table

2020-02-04 Thread Social Boh

Hello,

not very clear, sorry.

In a Federated User Location scenario I use a NoSQL DB to save 
registration meta data  but do I have use one mariadb or mysql opensips 
database to create users on subscriber table?


Talking about this scenario without HA virtual IP, only two or more 
OpenSIPs servers used like POP.


Thank you

Regards

---
I'm SoCIaL, MayBe

El 04/02/2020 a las 11:31, Liviu Chircu escribió:

Hi, Social Boh!

if I using a Federate User Location Cluster, do all OpenSIPs servers 
use the same subscriber table?
No, it's enough for each HA pair to have its own location table. This 
table must not
be shared or replicated between the nodes of the HA pair, rather each 
node has its own

instance, just to preserve the data after a restart or shutdown.


If it were like that, do I have to use a centralized database? 


A centralized database is needed to ensure cross-POP routing. This is 
best explained in the

tutorial [1]

Best regards,

[1]: 
https://opensips.org/Documentation/Tutorials-Distributed-User-Location-Federation




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster and subscriber table

2020-02-04 Thread Liviu Chircu

Hi, Social Boh!

if I using a Federate User Location Cluster, do all OpenSIPs servers 
use the same subscriber table?
No, it's enough for each HA pair to have its own location table.  This 
table must not
be shared or replicated between the nodes of the HA pair, rather each 
node has its own

instance, just to preserve the data after a restart or shutdown.


If it were like that, do I have to use a centralized database? 


A centralized database is needed to ensure cross-POP routing.  This is 
best explained in the

tutorial [1]

Best regards,

[1]: 
https://opensips.org/Documentation/Tutorials-Distributed-User-Location-Federation


--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
  www.opensips.org/events
OpenSIPS Bootcamp, Miami, March 2020
  www.opensips.org/training


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Federated User Location Cluster and subscriber table

2020-02-04 Thread Social Boh

Hello,

if I using a Federate User Location Cluster, do all OpenSIPs servers use 
the same subscriber table?


If it were like that, do I have to use a centralized database?

Thank you

Regards

--
---
I'm SoCIaL, MayBe


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Liviu Chircu

You are overcomplicating this.  There are two ways to get it working:

1. just use a dummy "opensips-cluster" domain + outbound proxy settings 
on your UACs.  This way,
   the domain doesn't even have to be resolvable.  As long as OpenSIPS 
detects it as being a
   local domain (either through the "alias=" setting, or the "domain" 
module table), the setup

   will simply work.

2. you take the time to create an actual DNS record for your platform 
and provision both IPs into it
   using the policy of your choosing: round-robin, weight-based, 
geo-DNS, etc.  This will not
   require any "outbound proxy" setting on the UACs, as they will be 
able to resolve the domain.


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.06.2019 17:05, Social Boh wrote:
With your solution I have to create opensips-cluster domain and 
configure two A record with two OpenSIPs Public IP; then create the 
users using this domain and configure the devices with the outbound 
proxy parameter, right? 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Social Boh

Hi Liviu,

I read the tutorial but I don't understood completely how this 
architecture work. I Have two OpenSIPs instances, each one with his IP. 
I add user 1000 and user 1001 on both instances so the user can choose 
which OpenSIPs use to register. How USRLOC use_domain parameter is 
obligatory on federated cluster, each user can be reached only using 
user@OpenSIPsIP so if I call from user 1000 (registered on first 
OpenSIPs), user 1001 registered on the second OpenSIPs, the call fail 
because the IP present in the AOR is different.


With your solution I have to create opensips-cluster domain and 
configure two A record with two OpenSIPs Public IP; then create the 
users using this domain and configure the devices with the outbound 
proxy parameter, right?


is it the only solution to achieve federated cluster location?

Thank you

Regards

---
I'm SoCIaL, MayBe

On 6/27/19 08:42, Liviu Chircu wrote:

Hi Social,

From what I understand, you are registering your devices to 1000@IP_A 
and 1001@IP_B,
respectively.  If this is the case, please have them register to 
1000@opensips-cluster and
1001@opensips-cluster, and point their "Outbound Proxy" settings to 
IP_A and IP_B, respectively.


Hope this helps.  If you haven't read the tutorial [1], I strongly 
suggest you do so :)


Cheers,

[1]: 
https://opensips.org/Documentation/Tutorials-Distributed-User-Location-Federation


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.06.2019 01:10, Social Boh wrote:

Hello list,

I really don't understood how this configuration work.

I would like to configure two OpenSIPs instances to share data about 
registered users but I can't because when from extension 1000 
registered on first Opensips call extension 1001 Registered on the 
second OpenSIPs, OpenSIPs search in the MongoDB a AOR with the same 
IP of the first OpenSIPs; this because use_domain parameter of usrloc 
module have to be = 1


So, How have I to use this configuration? balancing DNS records for 
the same domain?


Thank you

Regards



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Liviu Chircu

Hi Social,

From what I understand, you are registering your devices to 1000@IP_A 
and 1001@IP_B,
respectively.  If this is the case, please have them register to 
1000@opensips-cluster and
1001@opensips-cluster, and point their "Outbound Proxy" settings to IP_A 
and IP_B, respectively.


Hope this helps.  If you haven't read the tutorial [1], I strongly 
suggest you do so :)


Cheers,

[1]: 
https://opensips.org/Documentation/Tutorials-Distributed-User-Location-Federation


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.06.2019 01:10, Social Boh wrote:

Hello list,

I really don't understood how this configuration work.

I would like to configure two OpenSIPs instances to share data about 
registered users but I can't because when from extension 1000 
registered on first Opensips call extension 1001 Registered on the 
second OpenSIPs, OpenSIPs search in the MongoDB a AOR with the same IP 
of the first OpenSIPs; this because use_domain parameter of usrloc 
module have to be = 1


So, How have I to use this configuration? balancing DNS records for 
the same domain?


Thank you

Regards



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Social Boh

Ben,

justly I'm trying to using clustering functionality bud I don't 
understood completely the registration part. On the tutorial (1) appear 
a domain but I don't understand how the devices choose in which OpenSIPs 
instance register and how I have to add user on the subscriber table of 
each OpenSIPs.


Regards.

1) 
https://opensips.org/Documentation/Tutorials-Distributed-User-Location-Federation


---
I'm SoCIaL, MayBe

On 6/27/19 08:25, Ben Newlin wrote:

Social,

It seems like what you want is for the registration to ignore the domain. Why 
do you say that use_domain has to be enabled? It seems like if you turn it off 
this would work.

Alternatively, you could use DNS for the domain instead of IP addresses and 
have the DNS resolve to both OpenSIPS instances, either with SRV if the 
registering device supports it or with A records. You would not be able to 
control which specific server each device would register to, but in the long 
run they should be balanced across both nodes.

Lastly, I believe the usrloc and registration modules have support for the new 
clustering functionality. I have not used it personally, but I believe it has 
mechanisms to resolve issues like this.

Ben Newlin

On 6/27/19, 9:16 AM, "Users on behalf of Social Boh" 
 wrote:

 Any Light, please?
 
 ---

 I'm SoCIaL, MayBe
 
 On 6/26/19 17:10, Social Boh wrote:

 > Hello list,
 >
 > I really don't understood how this configuration work.
 >
 > I would like to configure two OpenSIPs instances to share data about
 > registered users but I can't because when from extension 1000
 > registered on first Opensips call extension 1001 Registered on the
 > second OpenSIPs, OpenSIPs search in the MongoDB a AOR with the same IP
 > of the first OpenSIPs; this because use_domain parameter of usrloc
 > module have to be = 1
 >
 > So, How have I to use this configuration? balancing DNS records for
 > the same domain?
 >
 > Thank you
 >
 > Regards
 >
 
 ___

 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Ben Newlin
Social,

It seems like what you want is for the registration to ignore the domain. Why 
do you say that use_domain has to be enabled? It seems like if you turn it off 
this would work.

Alternatively, you could use DNS for the domain instead of IP addresses and 
have the DNS resolve to both OpenSIPS instances, either with SRV if the 
registering device supports it or with A records. You would not be able to 
control which specific server each device would register to, but in the long 
run they should be balanced across both nodes.

Lastly, I believe the usrloc and registration modules have support for the new 
clustering functionality. I have not used it personally, but I believe it has 
mechanisms to resolve issues like this.

Ben Newlin 

On 6/27/19, 9:16 AM, "Users on behalf of Social Boh" 
 wrote:

Any Light, please?

---
I'm SoCIaL, MayBe

On 6/26/19 17:10, Social Boh wrote:
> Hello list,
>
> I really don't understood how this configuration work.
>
> I would like to configure two OpenSIPs instances to share data about 
> registered users but I can't because when from extension 1000 
> registered on first Opensips call extension 1001 Registered on the 
> second OpenSIPs, OpenSIPs search in the MongoDB a AOR with the same IP 
> of the first OpenSIPs; this because use_domain parameter of usrloc 
> module have to be = 1
>
> So, How have I to use this configuration? balancing DNS records for 
> the same domain?
>
> Thank you
>
> Regards
>

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Federated User Location Cluster

2019-06-27 Thread Social Boh

Any Light, please?

---
I'm SoCIaL, MayBe

On 6/26/19 17:10, Social Boh wrote:

Hello list,

I really don't understood how this configuration work.

I would like to configure two OpenSIPs instances to share data about 
registered users but I can't because when from extension 1000 
registered on first Opensips call extension 1001 Registered on the 
second OpenSIPs, OpenSIPs search in the MongoDB a AOR with the same IP 
of the first OpenSIPs; this because use_domain parameter of usrloc 
module have to be = 1


So, How have I to use this configuration? balancing DNS records for 
the same domain?


Thank you

Regards



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Federated User Location Cluster

2019-06-26 Thread Social Boh

Hello list,

I really don't understood how this configuration work.

I would like to configure two OpenSIPs instances to share data about 
registered users but I can't because when from extension 1000 registered 
on first Opensips call extension 1001 Registered on the second OpenSIPs, 
OpenSIPs search in the MongoDB a AOR with the same IP of the first 
OpenSIPs; this because use_domain parameter of usrloc module have to be = 1


So, How have I to use this configuration? balancing DNS records for the 
same domain?


Thank you

Regards

--
---
I'm SoCIaL, MayBe


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users