Hi, I think you are going the wrong way, let asterisk register all the calls, and then simply query accordingly. In example, lets say you use the MySQL CDR backend, after all the CDR's are in the DB, simply run:
'SELECT * from cdr where dialednumber like "9%" order by calldate asc' That should give you the CDR's you wish for. Of course that is based on the fact that you are logging the CDR's to a database. If you log to a CSV file, you can make a PERL parser to analyze it and bring out the proper CDR's. JMHO on the subject. Nir S -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yair Hakak Sent: Thursday, March 03, 2005 4:14 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] CDR hi, you need to tell us how you're saving your cdr's - database, csv, whatever?- if you're saving to a database a stored procedure is probably best, unless you want to change the SQL statements in the proper module. yair On Thu, 3 Mar 2005 05:59:59 -0800 (PST), R A <[EMAIL PROTECTED]> wrote: > > I need that my records cdr only get the calls that begin with 9 or any other > rule > is this possible?? > > thanks in advance > > wert > > ________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > > > _______________________________________________ > Asterisk-Users mailing list > [email protected] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
