[svn-commits] seanbright: trunk r203846 - in /trunk: ./ build_tools/ cdr/ configs/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 26 17:08:12 CDT 2009


Author: seanbright
Date: Fri Jun 26 17:08:05 2009
New Revision: 203846

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203846
Log:
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 #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/

Added:
    trunk/cdr/cdr_syslog.c
      - copied unchanged from r203845, team/seanbright/cdr-syslog/cdr/cdr_syslog.c
    trunk/configs/cdr_syslog.conf.sample
      - copied unchanged from r203845, team/seanbright/cdr-syslog/configs/cdr_syslog.conf.sample
Modified:
    trunk/CHANGES
    trunk/build_tools/menuselect-deps.in
    trunk/configure
    trunk/configure.ac

Modified: trunk/CHANGES
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/CHANGES?view=diff&rev=203846&r1=203845&r2=203846
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Fri Jun 26 17:08:05 2009
@@ -188,6 +188,8 @@
    linkedid is based on uniqueID, but spreads to other channels as transfers, dials,
    etc are performed. Thus the peices of CDR can be grouped into multilegged sets.
  * Multiple files and formats can now be specified in cdr_custom.conf.
+ * cdr_syslog has been added which allows CDRs to be written directly to syslog.
+   See configs/cdr_syslog.conf.sample for more information.
 
 Calendaring for Asterisk
 ------------------------

Modified: trunk/build_tools/menuselect-deps.in
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/build_tools/menuselect-deps.in?view=diff&rev=203846&r1=203845&r2=203846
==============================================================================
--- trunk/build_tools/menuselect-deps.in (original)
+++ trunk/build_tools/menuselect-deps.in Fri Jun 26 17:08:05 2009
@@ -49,6 +49,7 @@
 SS7=@PBX_SS7@
 OPENSSL=@PBX_OPENSSL@
 SUPPSERV=@PBX_SUPPSERV@
+SYSLOG=@PBX_SYSLOG@
 TONEZONE=@PBX_TONEZONE@
 UNIXODBC=@PBX_UNIXODBC@
 USB=@PBX_USB@

Modified: trunk/configure.ac
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/configure.ac?view=diff&rev=203846&r1=203845&r2=203846
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Jun 26 17:08:05 2009
@@ -1747,6 +1747,8 @@
 AC_SUBST([GENERIC_ODBC_INCLUDE])
 AC_SUBST([PBX_GENERIC_ODBC])
 
+PBX_SYSLOG=0
+
 if test "${ac_cv_header_syslog_h}" = "yes"; then
    # syslog facilities
    AST_C_DEFINE_CHECK([SYSLOG_FACILITY_LOG_AUTH],     [LOG_AUTH],     [syslog.h])
@@ -1760,7 +1762,10 @@
    AST_C_DEFINE_CHECK([SYSLOG_FACILITY_LOG_NEWS],     [LOG_NEWS],     [syslog.h])
    AST_C_DEFINE_CHECK([SYSLOG_FACILITY_LOG_SYSLOG],   [LOG_SYSLOG],   [syslog.h])
    AST_C_DEFINE_CHECK([SYSLOG_FACILITY_LOG_UUCP],     [LOG_UUCP],     [syslog.h])
-fi
+   PBX_SYSLOG=1
+fi
+
+AC_SUBST([PBX_SYSLOG])
 
 AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])
 AST_CHECK_MANDATORY




More information about the svn-commits mailing list