Re: [asterisk-users] A way to check against a list of numbers?

2010-09-13 Thread Tarek Sawah
P USA: +1 347 562 2308 > From: benny+use...@amorsen.dk > To: hose+aster...@bluemaggottowel.com > Date: Mon, 13 Sep 2010 20:18:08 +0200 > CC: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] A way to check against a list of numbers? > > Hose writ

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-13 Thread Benny Amorsen
Hose writes: > The most straightforward way would be to just define explicit patterns. > Obviously that works, but doesn't seem scalable in terms of maintenance. I don't think that maintaining the list in the dial plan is all that bad, actually. Dump it in its own context and file... If that is

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-11 Thread Faisal Hanif
Hi, 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. 2nd option is to use Perl AGI with DBI::CSV and manage numbers list in a CSV file. Regards, Fai

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-11 Thread Olivier
2010/9/10 Hose > > Does anyone have a suggestion on how to handle this? For example, if I > have a list of numbers that I want to go out a certain sip channel and > another that I want to go out the dahdi device, is there a way to do > this? None of the numbers will fit into a pattern, so just

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Steve Edwards
On Fri, 10 Sep 2010, Jose P. Espinal wrote: > b. If you can do this using C, Perl or Python; it would not (possibly) > represent a considerable performance hit to your system. Any reasonably modern processor should be able to handle XXX AGIs written in C per second. -- Thanks in advance,

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Steve Edwards
On Fri, 10 Sep 2010, Hose wrote: > Does anyone have a suggestion on how to handle this? For example, if I > have a list of numbers that I want to go out a certain sip channel and > another that I want to go out the dahdi device, is there a way to do > this? None of the numbers will fit into a pa

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Roger Burton West
On Fri, Sep 10, 2010 at 03:51:01PM -0500, Hose wrote: >Does anyone have any suggestions as to >how to approach that, or if they have a entirely different way in mind? AGI script that can look directly at your master list of numbers/routes? R -- __

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Jose P. Espinal
Hi, If you have those numbers identified (no matter what the number pattern would be, but you know which will go to DAHDI, and which to SIP) and grouped somewhere, you could insert that information into a database and use AGI in order to set the proper technology to use in each case. e.g Havi

Re: [asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Danny Nicholas
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Hose Subject: [asterisk-users] A way to check against a list of numbers? >Does anyone have a suggestion on how to handle this? For example, if I have a list

[asterisk-users] A way to check against a list of numbers?

2010-09-10 Thread Hose
Does anyone have a suggestion on how to handle this? For example, if I have a list of numbers that I want to go out a certain sip channel and another that I want to go out the dahdi device, is there a way to do this? None of the numbers will fit into a pattern, so just plain pattern matching won