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 <[email protected]> wrote: > 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: [email protected] > [mailto:[email protected]] On Behalf Of Brian > West > Sent: Wednesday, September 23, 2009 12:18 AM > To: [email protected] > 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 > [email protected] > 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 [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
