<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Hi,<br>
<br>
An intelligent way is to maintain numbers list in any Database
(could be SQlite if you don't want to use proper DB engine) then
use ODBC-Function if the number is there and decide routing.<br>
<br>
2nd option is to use Perl AGI with DBI::CSV and manage numbers
list in a CSV file. <br>
</font></font>
<div class="moz-signature">
<p style="font-family: Verdana;" class="MsoNormal"><small><small><small><small><small><small><small><small><span
style="font-size: 10pt;">Regards,</span></small></small></small></small></small></small></small></small></p>
<p style="font-family: Verdana;" class="MsoNormal"><small><small><small><small><small><small><small><small><span
style="font-size: 10pt;">Faisal
Hanif<br>
</span></small></small></small></small></small></small></small></small><br>
</p>
</div>
On 9/11/2010 4:47 PM, Olivier wrote:
<blockquote
cite="mid:AANLkTimMAZB_OM--O7VCgz5gNnXuD3H9XypwGnXX=w=_@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">2010/9/10 Hose <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:hose%2Basterisk@bluemaggottowel.com">hose+asterisk@bluemaggottowel.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
Does anyone have a suggestion on how to handle this? For
example, if I<br>
have a list of numbers that I want to go out a certain sip
channel and<br>
another that I want to go out the dahdi device, is there a way
to do<br>
this? None of the numbers will fit into a pattern, so just
plain<br>
pattern matching won't do.<br>
<br>
The most straightforward way would be to just define explicit
patterns.<br>
Obviously that works, but doesn't seem scalable in terms of
maintenance.<br>
Ideally there should be a variable or list of numbers, </blockquote>
<div><br>
How many numbers do you plan ?<br>
<br>
</div>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
and the dialplan<br>
logic jumps into a subroutine that checks if the dialed number
is on the<br>
list, then routes accordingly. Does anyone have any
suggestions as to<br>
how to approach that, or if they have a entirely different way
in mind?<br>
<br>
hose<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a
moz-do-not-send="true" href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a moz-do-not-send="true"
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>