mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
formatting tweaks and constification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@249058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief Adaptive ODBC CDR backend
|
* \brief Adaptive ODBC CDR backend
|
||||||
*
|
*
|
||||||
* \author Tilghman Lesher <cdr_adaptive_odbc__v1@the-tilghman.com>
|
* \author Tilghman Lesher <cdr_adaptive_odbc__v1@the-tilghman.com>
|
||||||
@@ -50,7 +50,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
|
|
||||||
#define CONFIG "cdr_adaptive_odbc.conf"
|
#define CONFIG "cdr_adaptive_odbc.conf"
|
||||||
|
|
||||||
static char *name = "Adaptive ODBC";
|
static const char name[] = "Adaptive ODBC";
|
||||||
/* Optimization to reduce number of memory allocations */
|
/* Optimization to reduce number of memory allocations */
|
||||||
static int maxsize = 512, maxsize2 = 512;
|
static int maxsize = 512, maxsize2 = 512;
|
||||||
|
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief Comma Separated Value CDR records.
|
* \brief Comma Separated Value CDR records.
|
||||||
*
|
*
|
||||||
* \author Mark Spencer <markster@digium.com>
|
* \author Mark Spencer <markster@digium.com>
|
||||||
@@ -49,7 +49,7 @@ static int usegmtime = 0;
|
|||||||
static int loguniqueid = 0;
|
static int loguniqueid = 0;
|
||||||
static int loguserfield = 0;
|
static int loguserfield = 0;
|
||||||
static int loaded = 0;
|
static int loaded = 0;
|
||||||
static char *config = "cdr.conf";
|
static const char config[] = "cdr.conf";
|
||||||
|
|
||||||
/* #define CSV_LOGUNIQUEID 1 */
|
/* #define CSV_LOGUNIQUEID 1 */
|
||||||
/* #define CSV_LOGUSERFIELD 1 */
|
/* #define CSV_LOGUSERFIELD 1 */
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief Custom Comma Separated Value CDR records.
|
* \brief Custom Comma Separated Value CDR records.
|
||||||
*
|
*
|
||||||
* \author Mark Spencer <markster@digium.com>
|
* \author Mark Spencer <markster@digium.com>
|
||||||
|
@@ -14,8 +14,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief Asterisk Call Manager CDR records.
|
* \brief Asterisk Call Manager CDR records.
|
||||||
*
|
*
|
||||||
* See also
|
* See also
|
||||||
@@ -43,7 +43,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#define CONF_FILE "cdr_manager.conf"
|
#define CONF_FILE "cdr_manager.conf"
|
||||||
#define CUSTOM_FIELDS_BUF_SIZE 1024
|
#define CUSTOM_FIELDS_BUF_SIZE 1024
|
||||||
|
|
||||||
static char *name = "cdr_manager";
|
static const char name[] = "cdr_manager";
|
||||||
|
|
||||||
static int enablecdr = 0;
|
static int enablecdr = 0;
|
||||||
|
|
||||||
|
@@ -16,8 +16,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief ODBC CDR Backend
|
* \brief ODBC CDR Backend
|
||||||
*
|
*
|
||||||
* \author Brian K. West <brian@bkw.org>
|
* \author Brian K. West <brian@bkw.org>
|
||||||
@@ -37,8 +37,6 @@
|
|||||||
|
|
||||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "asterisk/config.h"
|
#include "asterisk/config.h"
|
||||||
#include "asterisk/channel.h"
|
#include "asterisk/channel.h"
|
||||||
#include "asterisk/cdr.h"
|
#include "asterisk/cdr.h"
|
||||||
@@ -47,8 +45,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
|
|
||||||
#define DATE_FORMAT "%Y-%m-%d %T"
|
#define DATE_FORMAT "%Y-%m-%d %T"
|
||||||
|
|
||||||
static char *name = "ODBC";
|
static const char name[] = "ODBC";
|
||||||
static char *config_file = "cdr_odbc.conf";
|
static const char config_file[] = "cdr_odbc.conf";
|
||||||
static char *dsn = NULL, *table = NULL;
|
static char *dsn = NULL, *table = NULL;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@@ -20,8 +20,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief PostgreSQL CDR logger
|
* \brief PostgreSQL CDR logger
|
||||||
*
|
*
|
||||||
* \author Matthew D. Hardeman <mhardemn@papersoft.com>
|
* \author Matthew D. Hardeman <mhardemn@papersoft.com>
|
||||||
|
@@ -16,9 +16,10 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief RADIUS CDR Support
|
* \brief RADIUS CDR Support
|
||||||
|
*
|
||||||
* \author Philippe Sultan
|
* \author Philippe Sultan
|
||||||
* \extref The Radius Client Library - http://developer.berlios.de/projects/radiusclient-ng/
|
* \extref The Radius Client Library - http://developer.berlios.de/projects/radiusclient-ng/
|
||||||
*
|
*
|
||||||
@@ -34,7 +35,6 @@
|
|||||||
|
|
||||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <radiusclient-ng.h>
|
#include <radiusclient-ng.h>
|
||||||
|
|
||||||
#include "asterisk/channel.h"
|
#include "asterisk/channel.h"
|
||||||
@@ -77,9 +77,9 @@ enum {
|
|||||||
RADIUS_FLAG_LOGUSERFIELD = (1 << 2)
|
RADIUS_FLAG_LOGUSERFIELD = (1 << 2)
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *desc = "RADIUS CDR Backend";
|
static const char desc[] = "RADIUS CDR Backend";
|
||||||
static char *name = "radius";
|
static const char name[] = "radius";
|
||||||
static char *cdr_config = "cdr.conf";
|
static const char cdr_config[] = "cdr.conf";
|
||||||
|
|
||||||
static char radiuscfg[PATH_MAX] = "/etc/radiusclient-ng/radiusclient.conf";
|
static char radiuscfg[PATH_MAX] = "/etc/radiusclient-ng/radiusclient.conf";
|
||||||
|
|
||||||
|
@@ -55,7 +55,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
/* When you change the DATE_FORMAT, be sure to change the CHAR(19) below to something else */
|
/* When you change the DATE_FORMAT, be sure to change the CHAR(19) below to something else */
|
||||||
#define DATE_FORMAT "%Y-%m-%d %T"
|
#define DATE_FORMAT "%Y-%m-%d %T"
|
||||||
|
|
||||||
static char *name = "sqlite";
|
static const char name[] = "sqlite";
|
||||||
static sqlite* db = NULL;
|
static sqlite* db = NULL;
|
||||||
|
|
||||||
AST_MUTEX_DEFINE_STATIC(sqlite_lock);
|
AST_MUTEX_DEFINE_STATIC(sqlite_lock);
|
||||||
|
@@ -16,8 +16,8 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief Custom SQLite3 CDR records.
|
* \brief Custom SQLite3 CDR records.
|
||||||
*
|
*
|
||||||
* \author Adapted by Alejandro Rios <alejandro.rios@avatar.com.co> and
|
* \author Adapted by Alejandro Rios <alejandro.rios@avatar.com.co> and
|
||||||
|
@@ -16,9 +16,10 @@
|
|||||||
* at the top of the source tree.
|
* at the top of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file cdr_syslog.c
|
/*!
|
||||||
*
|
* \file
|
||||||
* \brief syslog CDR logger
|
* \brief syslog CDR logger
|
||||||
|
*
|
||||||
* \author Sean Bright <sean@malleable.com>
|
* \author Sean Bright <sean@malleable.com>
|
||||||
*
|
*
|
||||||
* See also
|
* See also
|
||||||
|
@@ -24,7 +24,8 @@
|
|||||||
* \ingroup cdr_drivers
|
* \ingroup cdr_drivers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \verbatim
|
/*!
|
||||||
|
* \verbatim
|
||||||
*
|
*
|
||||||
* Table Structure for `cdr`
|
* Table Structure for `cdr`
|
||||||
*
|
*
|
||||||
@@ -74,8 +75,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
|
|
||||||
#define DATE_FORMAT "%Y/%m/%d %T"
|
#define DATE_FORMAT "%Y/%m/%d %T"
|
||||||
|
|
||||||
static char *name = "FreeTDS (MSSQL)";
|
static const char name[] = "FreeTDS (MSSQL)";
|
||||||
static char *config = "cdr_tds.conf";
|
static const char config[] = "cdr_tds.conf";
|
||||||
|
|
||||||
struct cdr_tds_config {
|
struct cdr_tds_config {
|
||||||
AST_DECLARE_STRING_FIELDS(
|
AST_DECLARE_STRING_FIELDS(
|
||||||
|
Reference in New Issue
Block a user