|
|
@ -47,6 +47,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Rev$")
|
|
|
|
#include "asterisk/module.h"
|
|
|
|
#include "asterisk/module.h"
|
|
|
|
#include "asterisk/logger.h"
|
|
|
|
#include "asterisk/logger.h"
|
|
|
|
#include "asterisk/utils.h"
|
|
|
|
#include "asterisk/utils.h"
|
|
|
|
|
|
|
|
#include "asterisk/options.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*! ISO 8601 standard format */
|
|
|
|
/*! ISO 8601 standard format */
|
|
|
|
#define DATE_FORMAT "%Y-%m-%d %T %z"
|
|
|
|
#define DATE_FORMAT "%Y-%m-%d %T %z"
|
|
|
@ -216,7 +217,8 @@ static int radius_log(struct ast_cdr *cdr)
|
|
|
|
VALUE_PAIR *send = NULL;
|
|
|
|
VALUE_PAIR *send = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
if (build_radius_record(&send, cdr)) {
|
|
|
|
if (build_radius_record(&send, cdr)) {
|
|
|
|
ast_log(LOG_WARNING, "Unable to create RADIUS record. CDR not recorded!\n");
|
|
|
|
if (option_debug)
|
|
|
|
|
|
|
|
ast_log(LOG_DEBUG, "Unable to create RADIUS record. CDR not recorded!\n");
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|