Best way to route Large block of DIDs
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
Mod_easyroute might be used for this... it uses a DB backend via ODBC... This doesn¹t really handle ranges as is, but you can do something to create ranges in there... On 8/7/11 8:38 PM, "Luis F Urrea" <lfurrea@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Avi Marcus
-
Ken Rice
-
Luis F Urrea
-
Steven Ayre