Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Multitenancy

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 12:10 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Hello all,

How do I configure multi tenant in FS?

For example, I want some users to be able to register only with their own domain.

Ie:

Users: 1000-1010
Domain: foo.org

Users: 2000-2010
Domain: bar.org

But 1000-1010 shouldn't work with bar.org or 2000-2010 shouldn't work with foo.org.

Any ideas how to do that?
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 12:21 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

I want user 1000-1010 to belong to foo.org and 2000-2020 to belong to bar.org, and I want both of those domains to have their own dialplan/context.

On Wed, Sep 23, 2009 at 4:57 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hello all,

How do I configure multi tenant in FS?

For example, I want some users to be able to register only with their own domain.

Ie:

Users: 1000-1010
Domain: foo.org

Users: 2000-2010
Domain: bar.org

But 1000-1010 shouldn't work with bar.org or 2000-2010 shouldn't work with foo.org.

Any ideas how to do that?
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 12:30 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

I know I could create different domains on the directory but how do I tell a user to belong to a specific domain?

On Wed, Sep 23, 2009 at 5:11 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I want user 1000-1010 to belong to foo.org and 2000-2020 to belong to bar.org, and I want both of those domains to have their own dialplan/context.


On Wed, Sep 23, 2009 at 4:57 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hello all,

How do I configure multi tenant in FS?

For example, I want some users to be able to register only with their own domain.

Ie:

Users: 1000-1010
Domain: foo.org

Users: 2000-2010
Domain: bar.org

But 1000-1010 shouldn't work with bar.org or 2000-2010 shouldn't work with foo.org.

Any ideas how to do that?




Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 12:33 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Oh nvm I think I got it =D

On Wed, Sep 23, 2009 at 5:22 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I know I could create different domains on the directory but how do I tell a user to belong to a specific domain?


On Wed, Sep 23, 2009 at 5:11 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I want user 1000-1010 to belong to foo.org and 2000-2020 to belong to bar.org, and I want both of those domains to have their own dialplan/context.


On Wed, Sep 23, 2009 at 4:57 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hello all,

How do I configure multi tenant in FS?

For example, I want some users to be able to register only with their own domain.

Ie:

Users: 1000-1010
Domain: foo.org

Users: 2000-2010
Domain: bar.org

But 1000-1010 shouldn't work with bar.org or 2000-2010 shouldn't work with foo.org.

Any ideas how to do that?








Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Sep 23, 2009 12:33 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Then setup two domains in your directory and setup proper DNS its really just that simple.

/b

On Sep 23, 2009, at 12:11 AM, Diego Viola wrote:
Quote:
I want user 1000-1010 to belong to foo.org and 2000-2020 to belong to bar.org, and I want both of those domains to have their own dialplan/context.
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Sep 23, 2009 12:53 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

You don't have to think about it with proper DNS it all just magically
happens.

/b

On Sep 23, 2009, at 12:22 AM, Diego Viola wrote:

Quote:
I know I could create different domains on the directory but how do
I tell a user to belong to a specific domain?


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 1:13 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Nice, so I just rename the "default" to foo.org and bar.org and I put the users I want inside them?

On Wed, Sep 23, 2009 at 5:42 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
You don't have to think about it with proper DNS it all just magically
happens.

/b

On Sep 23, 2009, at 12:22 AM, Diego Viola wrote:

Quote:
I know I could create different domains on the directory but how do
I tell a user to belong to a specific domain?



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 1:13 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

s/rename/copy/

On Wed, Sep 23, 2009 at 6:03 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Nice, so I just rename the "default" to foo.org and bar.org and I put the users I want inside them?


On Wed, Sep 23, 2009 at 5:42 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
You don't have to think about it with proper DNS it all just magically
happens.

/b

On Sep 23, 2009, at 12:22 AM, Diego Viola wrote:

Quote:
I know I could create different domains on the directory but how do
I tell a user to belong to a specific domain?



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Sep 23, 2009 1:24 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

make sure you look at default.xml and set the domain in the files for foo.org.xml and bar.org.xml

/b

On Sep 23, 2009, at 1:03 AM, Diego Viola wrote:
Quote:
Nice, so I just rename the "default" to foo.org and bar.org and I put the users I want inside them?
Back to top
peder at networkoblivi...
Guest





PostPosted: Wed Sep 23, 2009 7:39 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

So if you do this, how do you call between contexts? Say you have 100 tenants on one box each with their own domain and they are all 4 digit for local dialing. If they call a 10 digit number like they are calling outbound and it is another tenant on the same box, they don’t want to go out and back in, they just want to be bridged over to the other context. I imagine you need to create a file for each context and add every other context and did to it to check if they are on the same box, otherwise dial outbound to the PSTN. That doesn’t scale very well though since if there are 100 tenants, and you add another, you need to modify the other 100 contexts to add the new DIDs. Or is there some built in way to do this easily?

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Wednesday, September 23, 2009 12:18 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Multitenancy



Then setup two domains in your directory and setup proper DNS its really just that simple.


/b


On Sep 23, 2009, at 12:11 AM, Diego Viola wrote:




I want user 1000-1010 to belong to foo.org and 2000-2020 to belong to bar.org, and I want both of those domains to have their own dialplan/context.
Back to top
rupa at rupa.com
Guest





PostPosted: Wed Sep 23, 2009 8:57 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Use something like mod_easyroute to consult a database of DIDs. If
you host the DID it'll give you a route to dial out. If not, route
out your gateway.

Or load your lcr tables with your own DIDs. Consult mod_lcr and use
it's dialstring. It'll prefer longer prefix matches, so you will
always win with your own customers.

On Wed, Sep 23, 2009 at 7:24 AM, Peder <peder@networkoblivion.com> wrote:
Quote:
So if you do this, how do you call between contexts?   Say you have 100
tenants on one box each with their own domain and they are all 4 digit for
local dialing.  If they call a 10 digit number like they are calling
outbound and it is another tenant on the same box, they don’t want to go out
and back in, they just want to be bridged over to the other context.  I
imagine you need to create a file for each context and add every other
context and did to it to check if they are on the same box, otherwise dial
outbound to the PSTN.  That doesn’t scale very well though since if there
are 100 tenants, and you add another, you need to modify the other 100
contexts to add the new DIDs.  Or is there some built in way to do this
easily?



From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian
West
Sent: Wednesday, September 23, 2009 12:18 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Multitenancy



Then setup two domains in your directory and setup proper DNS its really
just that simple.



/b



On Sep 23, 2009, at 12:11 AM, Diego Viola wrote:

I want user 1000-1010 to belong to foo.org and 2000-2020 to belong
to bar.org, and I want both of those domains to have their own
dialplan/context.



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
-Rupa

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
peder at networkoblivi...
Guest





PostPosted: Wed Sep 23, 2009 9:41 am    Post subject: [Freeswitch-users] Multitenancy Reply with quote

That's a good idea. I thought about using a DB, but I was going to have to
use a lua script to look stuff up. I didn't think about easyroute or lcr.

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rupa
Schomaker
Sent: Wednesday, September 23, 2009 8:47 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Multitenancy

Use something like mod_easyroute to consult a database of DIDs. If
you host the DID it'll give you a route to dial out. If not, route
out your gateway.

Or load your lcr tables with your own DIDs. Consult mod_lcr and use
it's dialstring. It'll prefer longer prefix matches, so you will
always win with your own customers.

On Wed, Sep 23, 2009 at 7:24 AM, Peder <peder@networkoblivion.com> wrote:
Quote:
So if you do this, how do you call between contexts?   Say you have 100
tenants on one box each with their own domain and they are all 4 digit for
local dialing.  If they call a 10 digit number like they are calling
outbound and it is another tenant on the same box, they don’t want to go
out
Quote:
and back in, they just want to be bridged over to the other context.  I
imagine you need to create a file for each context and add every other
context and did to it to check if they are on the same box, otherwise dial
outbound to the PSTN.  That doesn’t scale very well though since if there
are 100 tenants, and you add another, you need to modify the other 100
contexts to add the new DIDs.  Or is there some built in way to do this
easily?



From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian
West
Sent: Wednesday, September 23, 2009 12:18 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Multitenancy



Then setup two domains in your directory and setup proper DNS its really
just that simple.



/b



On Sep 23, 2009, at 12:11 AM, Diego Viola wrote:

I want user 1000-1010 to belong to foo.org and 2000-2020 to belong
to bar.org, and I want both of those domains to have their own
dialplan/context.



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
-Rupa

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 1:35 pm    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Should I delete the directory "default" and default.xml when I copy default to foo.org and bar.org etc?

Diego

On Wed, Sep 23, 2009 at 2:11 PM, Peder <peder@networkoblivion.com (peder@networkoblivion.com)> wrote:
Quote:
That's a good idea.  I thought about using a DB, but I was going to have to
use a lua script to look stuff up.  I didn't think about easyroute or lcr.

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)


[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Rupa
Schomaker
Sent: Wednesday, September 23, 2009 8:47 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Multitenancy

Use something like mod_easyroute to consult a database of DIDs.  If
you host the DID it'll give you a route to dial out.  If not, route
out your gateway.

Or load your lcr tables with your own DIDs.  Consult mod_lcr and use
it's dialstring.  It'll prefer longer prefix matches, so you will
always win with your own customers.

On Wed, Sep 23, 2009 at 7:24 AM, Peder <peder@networkoblivion.com (peder@networkoblivion.com)> wrote:
Quote:
So if you do this, how do you call between contexts?   Say you have 100
tenants on one box each with their own domain and they are all 4 digit for
local dialing.  If they call a 10 digit number like they are calling
outbound and it is another tenant on the same box, they don’t want to go
out
Quote:
and back in, they just want to be bridged over to the other context.  I
imagine you need to create a file for each context and add every other
context and did to it to check if they are on the same box, otherwise dial
outbound to the PSTN.  That doesn’t scale very well though since if there
are 100 tenants, and you add another, you need to modify the other 100
contexts to add the new DIDs.  Or is there some built in way to do this
easily?



From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian
West
Sent: Wednesday, September 23, 2009 12:18 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Multitenancy



Then setup two domains in your directory and setup proper DNS its really
just that simple.



/b



On Sep 23, 2009, at 12:11 AM, Diego Viola wrote:

I want user 1000-1010 to belong to foo.org and 2000-2020 to belong
to bar.org, and I want both of those domains to have their own
dialplan/context.



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
-Rupa

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Sep 23, 2009 1:58 pm    Post subject: [Freeswitch-users] Multitenancy Reply with quote

Thats up to you Razz

/b

On Sep 23, 2009, at 1:10 PM, Diego Viola wrote:
Quote:
Should I delete the directory "default" and default.xml when I copy default to foo.org and bar.org etc?

Diego
Back to top
diego.viola at gmail.com
Guest





PostPosted: Wed Sep 23, 2009 2:09 pm    Post subject: [Freeswitch-users] Multitenancy Reply with quote

I was having some issues with DNS, I tried to register with the new directory and domain but I got "can't find user" until I commented force-register-domain and force-register-db-domain from the profile.

Thanks for the tip Brian Smile.

Diego

On Wed, Sep 23, 2009 at 6:16 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Thats up to you Razz

/b

On Sep 23, 2009, at 1:10 PM, Diego Viola wrote:

Quote:
Should I delete the directory "default" and default.xml when I copy default to foo.org and bar.org etc?

Diego






_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services