[Asterisk-Users] CDR

R A r_o_a_c at yahoo.com
Thu Mar 3 10:20:08 MST 2005


thanks to all
i think yuo are rigth
thanks
 
wert

Nir Simionovich <nirs at dimitel.com> wrote:
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: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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 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
> Asterisk-Users at lists.digium.com
> 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
Asterisk-Users at lists.digium.com
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
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

		
---------------------------------
Celebrate Yahoo!'s 10th Birthday! 
 Yahoo! Netrospective: 100 Moments of the Web 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050303/0a73903e/attachment.htm


More information about the asterisk-users mailing list