summaryrefslogtreecommitdiff
path: root/cel
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2014-01-28 23:23:15 +0000
committerKevin Harwell <kharwell@digium.com>2014-01-28 23:23:15 +0000
commitade5c8a2a47d2c2b1b0a4ab70eabd4bc095bd289 (patch)
tree24b1bfa3538e5486dceee618949f4cc43315df12 /cel
parent01a537d515af85c50ae608eb8486f42da7b84101 (diff)
cdr_radius, cel_radius: build agains libfreeradius-client
Asterisk's RADIUS module currently build against libradiusclient-ng, but this project has been superseeded by libfreeradius-client. The API is 99% compatible except that the header name has changed, the library name has changed, and the configuration file location has changed. (closes issue ASTERISK-22980) Reported by: Jeremy Lainé Patches: freeradius-client.patch uploaded by sharky (license 6561) ........ Merged revisions 406801 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 406802 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 406803 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cel')
-rw-r--r--cel/cel_radius.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cel/cel_radius.c b/cel/cel_radius.c
index be5a9e66f..aafdfcb05 100644
--- a/cel/cel_radius.c
+++ b/cel/cel_radius.c
@@ -35,7 +35,11 @@
ASTERISK_FILE_VERSION(__FILE__, "$Rev$")
+#ifdef FREERADIUS_CLIENT
+#include <freeradius-client.h>
+#else
#include <radiusclient-ng.h>
+#endif
#include "asterisk/channel.h"
#include "asterisk/cel.h"
@@ -79,7 +83,11 @@ enum {
static char *cel_config = "cel.conf";
+#ifdef FREERADIUS_CLIENT
+static char radiuscfg[PATH_MAX] = "/etc/radiusclient/radiusclient.conf";
+#else
static char radiuscfg[PATH_MAX] = "/etc/radiusclient-ng/radiusclient.conf";
+#endif
static struct ast_flags global_flags = { RADIUS_FLAG_USEGMTIME | RADIUS_FLAG_LOGUNIQUEID | RADIUS_FLAG_LOGUSERFIELD };