~damg/ubuntu/quantal/asterisk/LP1097687

« back to all changes in this revision

Viewing changes to doc/tex/asterisk/node230.html

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-10-15 22:24:34 UTC
  • mfrom: (1.2.8 upstream) (8.3.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101015222434-iy328q8in3lajzlv
Tags: 1:1.6.2.9-2ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control:
    + Build-depend on hardening-wrapper
    + Change Maintainer
    + Removed Uploaders field.
    + Removed Debian Vcs-Svn entry and replaced with ubuntu-voip Vcs-Bzr,
      to reflect divergence in packages.
  - debian/rules: Make use of hardening-wrapper
  - debian/asterisk.init: chown /dev/dahdi
  - debian/backports/hardy: add file
  - debian/backports/asterisk.init.hardy: add file
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Asterisk Accounting Configuration</TITLE>
11
 
<META NAME="description" CONTENT="Asterisk Accounting Configuration">
 
10
<TITLE>Configuration of the FreeRADIUS Server</TITLE>
 
11
<META NAME="description" CONTENT="Configuration of the FreeRADIUS Server">
12
12
<META NAME="keywords" CONTENT="asterisk">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
20
20
 
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">
25
25
</HEAD>
26
26
 
27
27
<BODY >
28
28
 
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"
35
 
  HREF="node224.html">
 
34
<A NAME="tex2html3658"
 
35
  HREF="node225.html">
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"
43
43
  HREF="node1.html">
44
44
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
45
45
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
46
46
<BR>
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
 
 &nbsp; <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
 &nbsp; <B>  <A NAME="tex2html3661"
54
54
  HREF="node1.html">Contents</A></B> 
55
55
<BR>
56
56
<BR></DIV>
57
57
<!--End of Navigation Panel-->
58
58
 
59
 
<H3><A NAME="SECTION001146600000000000000">
60
 
Asterisk Accounting Configuration</A>
 
59
<H3><A NAME="SECTION001146500000000000000">
 
60
Configuration of the FreeRADIUS Server</A>
61
61
</H3>
62
62
 
63
63
<P>
64
 
Compilation and installation:
65
 
 
66
 
<P>
67
 
The module will be compiled as long as the radiusclient-ng
68
 
        library has been detected on your system.
69
 
 
70
 
<P>
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.
75
 
 
76
 
<P>
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.
80
 
 
81
 
<P>
82
 
The configuration file for cdr_radius.so module is /etc/asterisk/cdr.conf
83
 
 
84
 
<P>
85
 
This is where you can set CDR related parameters as well as the path to
86
 
        the radiusclient-ng library configuration file.
87
 
 
88
 
<P>
89
 
<BR><HR>
 
64
There are several files that have to be modified to configure the
 
65
        RADIUS server. These are presented next.
 
66
 
 
67
<P>
 
68
File "clients.conf"
 
69
 
 
70
<P>
 
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.
 
76
 
 
77
<P>
 
78
Example:
 
79
<PRE>
 
80
                client myhost {
 
81
                    secret = mysecret
 
82
                    shortname = foo
 
83
                }
 
84
</PRE>
 
85
 
 
86
<P>
 
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.
 
92
 
 
93
<P>
 
94
File "dictionary"
 
95
 
 
96
<P>
 
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
 
99
        of FreeRADIUS.
 
100
 
 
101
<P>
 
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:
 
107
 
 
108
<P>
 
109
$INCLUDE /path/to/dictionary.digium
 
110
 
 
111
<P>
 
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
 
114
        other.
 
115
 
 
116
<P>
 
117
 
 
118
<DIV CLASS="navigation"><HR>
 
119
<!--Navigation Panel-->
 
120
<A NAME="tex2html3662"
 
121
  HREF="node231.html">
 
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"
 
125
  HREF="node225.html">
 
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"
 
129
  HREF="node229.html">
 
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"
 
133
  HREF="node1.html">
 
134
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 
135
 SRC="/usr/share/latex2html/icons/contents.png"></A>  
 
136
<BR>
 
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
 &nbsp; <B>  <A NAME="tex2html3661"
 
144
  HREF="node1.html">Contents</A></B> </DIV>
 
145
<!--End of Navigation Panel-->
90
146
<ADDRESS>
91
147
lmadsen
92
 
2010-05-03
 
148
2010-06-17
93
149
</ADDRESS>
94
150
</BODY>
95
151
</HTML>