[Freeswitch-users] Best way to route Large block of DIDs

Avi Marcus avi at avimarcus.net
Mon Aug 8 12:33:23 MSD 2011


Yes, a lua script to run a single query - or from the git contrib
mod_odbc_query <http://wiki.freeswitch.org/wiki/Mod_odbc_query> can easily
look up from a database and route accordingly.

-Avi


On Mon, Aug 8, 2011 at 9:39 AM, Steven Ayre <steveayre at gmail.com> wrote:

> It will because it'll check the regex for each extension until it finds a
> match. A fairly small hit usually but if you have thousands of extensions
> not so good.
>
> You're probably best off looking the numbers up in a database, which can be
> done easily from a lua script and will let you handle all the DIDs in a
> single extension.
>
> Steve on iPhone
>
> On 8 Aug 2011, at 02:38, Luis F Urrea <lfurrea at gmail.com> wrote:
>
> > Hi all,
> >
> > I have a relatively large block  of DIDs coming from a T1 gateway to a FS
> box. These DIDs are mapped to user extensions in most cases and in others
> they go to an IVR.
> >
> > My question is what would be the best way to write an extension in
> public.xml dialplan if the block of DIDs that go directly to users is not
> exactly divided so that I can write a regexp to cover the block.
> >
> > Does writing a single rule for each user can bring performance
> implications?
> >
> > What if I cannot arrange the block of DIDs that belong to users in a
> consecutive group?
> >
> > What are the best practices for such case?
> >
> > TIA!!!
> >
> > Luis
> > _______________________________________________
> > Join us at ClueCon 2011, Aug 9-11, Chicago
> > http://www.cluecon.com 877-7-4ACLUE
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110808/38fe68ad/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list