21
21
<LINK REL="next" HREF="node231.html">
22
22
<LINK REL="previous" HREF="node229.html">
23
<LINK REL="up" HREF="node224.html">
23
<LINK REL="up" HREF="node225.html">
24
24
<LINK REL="next" HREF="node231.html">
29
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
<A NAME="tex2html3659"
30
<A NAME="tex2html3662"
31
31
HREF="node231.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
33
33
SRC="/usr/share/latex2html/icons/next.png"></A>
34
<A NAME="tex2html3655"
34
<A NAME="tex2html3658"
36
36
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
37
37
SRC="/usr/share/latex2html/icons/up.png"></A>
38
<A NAME="tex2html3649"
38
<A NAME="tex2html3652"
39
39
HREF="node229.html">
40
40
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
41
41
SRC="/usr/share/latex2html/icons/prev.png"></A>
42
<A NAME="tex2html3657"
42
<A NAME="tex2html3660"
44
44
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
45
45
SRC="/usr/share/latex2html/icons/contents.png"></A>
47
<B> Next:</B> <A NAME="tex2html3660"
48
HREF="node231.html">Logged Values</A>
49
<B> Up:</B> <A NAME="tex2html3656"
50
HREF="node224.html">RADIUS</A>
51
<B> Previous:</B> <A NAME="tex2html3650"
52
HREF="node229.html">Configuration of the FreeRADIUS</A>
53
<B> <A NAME="tex2html3658"
47
<B> Next:</B> <A NAME="tex2html3663"
48
HREF="node231.html">Asterisk Accounting Configuration</A>
49
<B> Up:</B> <A NAME="tex2html3659"
50
HREF="node225.html">RADIUS</A>
51
<B> Previous:</B> <A NAME="tex2html3653"
52
HREF="node229.html">Install FreeRADIUS Server (Version</A>
53
<B> <A NAME="tex2html3661"
54
54
HREF="node1.html">Contents</A></B>
57
57
<!--End of Navigation Panel-->
59
<H3><A NAME="SECTION001146600000000000000">
60
Asterisk Accounting Configuration</A>
59
<H3><A NAME="SECTION001146500000000000000">
60
Configuration of the FreeRADIUS Server</A>
64
Compilation and installation:
67
The module will be compiled as long as the radiusclient-ng
68
library has been detected on your system.
71
By default FreeRADIUS server will log all accounting requests into
72
/usr/local/var/log/radius/radacct directory in form of plain text files.
73
The server will create one file for each hostname in the directory. The
74
following example shows how the log files look like.
77
Asterisk now generates Call Detail Records. See /include/asterisk/cdr.h
78
for all the fields which are recorded. By default, records in comma
79
separated values will be created in /var/log/asterisk/cdr-csv.
82
The configuration file for cdr_radius.so module is /etc/asterisk/cdr.conf
85
This is where you can set CDR related parameters as well as the path to
86
the radiusclient-ng library configuration file.
64
There are several files that have to be modified to configure the
65
RADIUS server. These are presented next.
71
File /usr/local/etc/raddb/clients.conf contains description of
72
RADIUS clients that are allowed to use the server. For each of the
73
clients you need to specify its hostname or IP address and also a
74
shared secret. The shared secret must be the same string you configured
75
in radiusclient library.
87
This fragment allows access from RADIUS clients on "myhost" if they use
88
"mysecret" as the shared secret.
89
The file already contains an entry for localhost (127.0.0.1), so if you
90
are running the RADIUS server on the same host as your Asterisk server,
91
then modify the existing entry instead, replacing the default password.
97
Note: as of version 1.1.2, the dictionary.digium file ships with FreeRADIUS.
98
The following procedure brings the dictionary.digium file to previous versions
102
File /usr/local/etc/raddb/dictionary contains the dictionary of
103
FreeRADIUS server. You have to add the same dictionary file
104
(dictionary.digium), which you added to the dictionary of radiusclient-ng
105
library. You can include it into the main file, adding the following line at the
106
end of file /usr/local/etc/raddb/dictionary:
109
$INCLUDE /path/to/dictionary.digium
112
That will include the same new attribute definitions that are used
113
in radiusclient-ng library so the client and server will understand each
118
<DIV CLASS="navigation"><HR>
119
<!--Navigation Panel-->
120
<A NAME="tex2html3662"
122
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
123
SRC="/usr/share/latex2html/icons/next.png"></A>
124
<A NAME="tex2html3658"
126
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
127
SRC="/usr/share/latex2html/icons/up.png"></A>
128
<A NAME="tex2html3652"
130
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
131
SRC="/usr/share/latex2html/icons/prev.png"></A>
132
<A NAME="tex2html3660"
134
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
135
SRC="/usr/share/latex2html/icons/contents.png"></A>
137
<B> Next:</B> <A NAME="tex2html3663"
138
HREF="node231.html">Asterisk Accounting Configuration</A>
139
<B> Up:</B> <A NAME="tex2html3659"
140
HREF="node225.html">RADIUS</A>
141
<B> Previous:</B> <A NAME="tex2html3653"
142
HREF="node229.html">Install FreeRADIUS Server (Version</A>
143
<B> <A NAME="tex2html3661"
144
HREF="node1.html">Contents</A></B> </DIV>
145
<!--End of Navigation Panel-->