* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Adaptive ODBC CDR backend
*
* \author Tilghman Lesher <cdr_adaptive_odbc__v1@the-tilghman.com>
#define CONFIG "cdr_adaptive_odbc.conf"
-static char *name = "Adaptive ODBC";
+static const char name[] = "Adaptive ODBC";
/* Optimization to reduce number of memory allocations */
static int maxsize = 512, maxsize2 = 512;
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Comma Separated Value CDR records.
*
* \author Mark Spencer <markster@digium.com>
static int loguniqueid = 0;
static int loguserfield = 0;
static int loaded = 0;
-static char *config = "cdr.conf";
+static const char config[] = "cdr.conf";
/* #define CSV_LOGUNIQUEID 1 */
/* #define CSV_LOGUSERFIELD 1 */
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Custom Comma Separated Value CDR records.
*
* \author Mark Spencer <markster@digium.com>
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Asterisk Call Manager CDR records.
*
* See also
#define CONF_FILE "cdr_manager.conf"
#define CUSTOM_FIELDS_BUF_SIZE 1024
-static char *name = "cdr_manager";
+static const char name[] = "cdr_manager";
static int enablecdr = 0;
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief ODBC CDR Backend
*
* \author Brian K. West <brian@bkw.org>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <time.h>
-
#include "asterisk/config.h"
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
#define DATE_FORMAT "%Y-%m-%d %T"
-static char *name = "ODBC";
-static char *config_file = "cdr_odbc.conf";
+static const char name[] = "ODBC";
+static const char config_file[] = "cdr_odbc.conf";
static char *dsn = NULL, *table = NULL;
enum {
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief PostgreSQL CDR logger
*
* \author Matthew D. Hardeman <mhardemn@papersoft.com>
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief RADIUS CDR Support
+ *
* \author Philippe Sultan
* \extref The Radius Client Library - http://developer.berlios.de/projects/radiusclient-ng/
*
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <time.h>
#include <radiusclient-ng.h>
#include "asterisk/channel.h"
RADIUS_FLAG_LOGUSERFIELD = (1 << 2)
};
-static char *desc = "RADIUS CDR Backend";
-static char *name = "radius";
-static char *cdr_config = "cdr.conf";
+static const char desc[] = "RADIUS CDR Backend";
+static const char name[] = "radius";
+static const char cdr_config[] = "cdr.conf";
static char radiuscfg[PATH_MAX] = "/etc/radiusclient-ng/radiusclient.conf";
/* When you change the DATE_FORMAT, be sure to change the CHAR(19) below to something else */
#define DATE_FORMAT "%Y-%m-%d %T"
-static char *name = "sqlite";
+static const char name[] = "sqlite";
static sqlite* db = NULL;
AST_MUTEX_DEFINE_STATIC(sqlite_lock);
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Custom SQLite3 CDR records.
*
* \author Adapted by Alejandro Rios <alejandro.rios@avatar.com.co> and
* at the top of the source tree.
*/
-/*! \file cdr_syslog.c
- *
+/*!
+ * \file
* \brief syslog CDR logger
+ *
* \author Sean Bright <sean@malleable.com>
*
* See also
* \ingroup cdr_drivers
*/
-/*! \verbatim
+/*!
+ * \verbatim
*
* Table Structure for `cdr`
*
#define DATE_FORMAT "%Y/%m/%d %T"
-static char *name = "FreeTDS (MSSQL)";
-static char *config = "cdr_tds.conf";
+static const char name[] = "FreeTDS (MSSQL)";
+static const char config[] = "cdr_tds.conf";
struct cdr_tds_config {
AST_DECLARE_STRING_FIELDS(