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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 26 17:11:48 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=12876 
====================================================================== 
Reported By:                bbryant
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   12876
Category:                   CDR/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     closed
Target Version:             1.6.3.0
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 123009 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-06-17 12:32 CDT
Last Modified:              2009-06-26 17:11 CDT
====================================================================== 
Summary:                    [patch] Support for CDR's and syslogd
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)}"
====================================================================== 

---------------------------------------------------------------------- 
 (0107081) svnbot (reporter) - 2009-06-26 17:11
 https://issues.asterisk.org/view.php?id=12876#c107081 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 203854

_U  branches/1.6.2/

------------------------------------------------------------------------
r203854 | seanbright | 2009-06-26 17:11:47 -0500 (Fri, 26 Jun 2009) | 20
lines

Blocked revisions 203846 via svnmerge

........
  r203846 | seanbright | 2009-06-26 18:08:05 -0400 (Fri, 26 Jun 2009) | 14
lines
  
  Add a new module, cdr_syslog, which allows writing CDRs to syslog.
  
  The original patch for this was written by Brett Bryant, and I split it
out into
  it's own module.
  
  (closes issue https://issues.asterisk.org/view.php?id=12876)
  Reported by: bbryant
  Patches:
        06162008_cdr_custom_syslog.diff uploaded by bbryant (license 36)
        05212009_cdr_syslog.patch uploaded by seanbright (license 71)
  Tested by: seanbright
  
  Review: https://reviewboard.asterisk.org/r/297/
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=203854 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-26 17:11 svnbot         Checkin                                      
2009-06-26 17:11 svnbot         Note Added: 0107081                          
======================================================================




More information about the asterisk-bugs mailing list