<div dir="ltr">Yes, a lua script to run a single query - or from the git contrib <a href="http://wiki.freeswitch.org/wiki/Mod_odbc_query">mod_odbc_query</a> can easily look up from a database and route accordingly.<div><br clear="all">
<div dir="ltr"><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-size:small">-Avi</span><br></span></div>
<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 9:39 AM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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.<br>
<br>
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.<br>
<br>
Steve on iPhone<br>
<div><div></div><div class="h5"><br>
On 8 Aug 2011, at 02:38, Luis F Urrea <<a href="mailto:lfurrea@gmail.com">lfurrea@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
><br>
> 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.<br>
><br>
> 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.<br>
><br>
> Does writing a single rule for each user can bring performance implications?<br>
><br>
> What if I cannot arrange the block of DIDs that belong to users in a consecutive group?<br>
><br>
> What are the best practices for such case?<br>
><br>
> TIA!!!<br>
><br>
> Luis<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>