|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
|
|
Asterisk can currently store CDRs into an MSSQL database in
|
|
|
|
|
two different ways: cdr\_odbc or cdr\_tds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Call Data Records can be stored using unixODBC (which requires
|
|
|
|
|
the FreeTDS package) [cdr\_odbc] or directly by using just the
|
|
|
|
|
FreeTDS package [cdr\_tds] The following provide some
|
|
|
|
@ -291,9 +291,9 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
|
|
|
|
|
\subsubsection{Installation of the Radiusclient library}
|
|
|
|
|
|
|
|
|
|
Download the sources from
|
|
|
|
|
Download the sources from
|
|
|
|
|
\url{http://developer.berlios.de/projects/radiusclient-ng/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Untar the source tarball:
|
|
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
@ -310,15 +310,15 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
|
|
\subsubsection{Configuration of the Radiusclient library}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
By default all the configuration files of the radiusclient library will
|
|
|
|
|
be in \path{/usr/local/etc/radiusclient-ng} directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
File "radiusclient.conf"
|
|
|
|
|
Open the file and find lines containing the following:
|
|
|
|
|
|
|
|
|
|
authserver localhost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is the hostname or IP address of the RADIUS server used for
|
|
|
|
|
authentication. You will have to change this unless the server is
|
|
|
|
|
running on the same host as your Asterisk PBX.
|
|
|
|
@ -330,10 +330,10 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
on the same host as your Asterisk PBX.
|
|
|
|
|
|
|
|
|
|
\textbf{File "servers"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RADIUS protocol uses simple access control mechanism based on shared
|
|
|
|
|
secrets that allows RADIUS servers to limit access from RADIUS clients.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A RADIUS server is configured with a secret string and only RADIUS
|
|
|
|
|
clients that have the same secret will be accepted.
|
|
|
|
|
|
|
|
|
@ -347,7 +347,7 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
are going to use.
|
|
|
|
|
|
|
|
|
|
\textbf{File "dictionary"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Asterisk uses some attributes that are not included in the
|
|
|
|
|
dictionary of radiusclient library, therefore it is necessary to add
|
|
|
|
|
them. A file called dictionary.digium (kept in the contrib dir)
|
|
|
|
@ -362,7 +362,7 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
Download sources tarball from:
|
|
|
|
|
|
|
|
|
|
\url{http://freeradius.org/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Untar, configure, build, and install the server:
|
|
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
@ -375,15 +375,15 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
|
|
|
|
|
All the configuration files of FreeRADIUS server will be in
|
|
|
|
|
/usr/local/etc/raddb directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\subsubsection{Configuration of the FreeRADIUS Server}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are several files that have to be modified to configure the
|
|
|
|
|
RADIUS server. These are presented next.
|
|
|
|
|
|
|
|
|
|
File "clients.conf"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
File \path{/usr/local/etc/raddb/clients.conf} contains description of
|
|
|
|
|
RADIUS clients that are allowed to use the server. For each of the
|
|
|
|
|
clients you need to specify its hostname or IP address and also a
|
|
|
|
@ -396,26 +396,26 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
secret = mysecret
|
|
|
|
|
shortname = foo
|
|
|
|
|
}
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
|
|
This fragment allows access from RADIUS clients on "myhost" if they use
|
|
|
|
|
"mysecret" as the shared secret.
|
|
|
|
|
"mysecret" as the shared secret.
|
|
|
|
|
The file already contains an entry for localhost (127.0.0.1), so if you
|
|
|
|
|
are running the RADIUS server on the same host as your Asterisk server,
|
|
|
|
|
then modify the existing entry instead, replacing the default password.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
File "dictionary"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note: as of version 1.1.2, the dictionary.digium file ships with FreeRADIUS.
|
|
|
|
|
The following procedure brings the dictionary.digium file to previous versions
|
|
|
|
|
of FreeRADIUS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
File \path{/usr/local/etc/raddb/dictionary} contains the dictionary of
|
|
|
|
|
FreeRADIUS server. You have to add the same dictionary file
|
|
|
|
|
(dictionary.digium), which you added to the dictionary of radiusclient-ng
|
|
|
|
|
library. You can include it into the main file, adding the following line at the
|
|
|
|
|
end of file \path{/usr/local/etc/raddb/dictionary}:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\$INCLUDE /path/to/dictionary.digium
|
|
|
|
|
|
|
|
|
|
That will include the same new attribute definitions that are used
|
|
|
|
@ -429,7 +429,7 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
|
|
|
|
|
The module will be compiled as long as the radiusclient-ng
|
|
|
|
|
library has been detected on your system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
By default FreeRADIUS server will log all accounting requests into
|
|
|
|
|
\path{/usr/local/var/log/radius/radacct} directory in form of plain text files.
|
|
|
|
|
The server will create one file for each hostname in the directory. The
|
|
|
|
@ -440,7 +440,7 @@ SQLite version 2 is supported in cdr\_sqlite.
|
|
|
|
|
separated values will be created in \path{/var/log/asterisk/cdr-csv}.
|
|
|
|
|
|
|
|
|
|
The configuration file for cdr\_radius.so module is \path{/etc/asterisk/cdr.conf}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is where you can set CDR related parameters as well as the path to
|
|
|
|
|
the radiusclient-ng library configuration file.
|
|
|
|
|
|
|
|
|
|