[asterisk-bugs] [Asterisk 0012876]: [patch] Support for CDR's and syslogd - testing required.

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jul 7 11:31:32 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12876 
====================================================================== 
Reported By:                bbryant
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   12876
Category:                   CDR/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 123009 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-17-2008 12:32 CDT
Last Modified:              07-07-2008 11:31 CDT
====================================================================== 
Summary:                    [patch] Support for CDR's and syslogd - testing
required.
Description: 
This patch adds support for using custom cdr's with syslogd. 

This code has been tested with a minimal configuration of syslogd, but I
was not able to get syslogd to output to a particular file.

Testing of this feature by somebody with syslog experience would be
appreciated to see if it's a code flaw or syslog configuration issue.

> syslog.conf
asterisk.*             /var/log/asterisk_cdr_custom.log

> asterisk/cdr_custom.conf
[mappings]
syslog.asterisk => "${CDR(clid)}", "${CDR(src)}", "${CDR(dst)}",
"${CDR(dcontext)}", "${CDR(channel)}", "${CDR(dstchannel)}",
"${CDR(lastapp)}", "${CDR(lastdata)}", "${CDR(start)}", "${CDR(answer)}",
"${CDR(end)}", "${CDR(duration)}", "${CDR(billsec)}",
"${CDR(disposition)}"," ${CDR(amaflags)}", "${CDR(accountcode)}",
"${CDR(uniqueid)}", "${CDR(userfield)}"
====================================================================== 

---------------------------------------------------------------------- 
 seanbright - 07-07-08 11:31  
---------------------------------------------------------------------- 
I don't think you can specify a custom facility in /etc/syslog.conf (at
least on Linux).  So...

> syslog.conf
asterisk.* /var/log/asterisk_cdr_custom.log

would have to be:

> syslog.conf
daemon.* /var/log/asterisk_cdr_custom.log

Or something like that. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-07-08 11:31  seanbright     Note Added: 0089833                          
======================================================================




More information about the asterisk-bugs mailing list