mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	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
			
			
This commit is contained in:
		@@ -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 };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user