[asterisk-commits] branch oej/test-this-branch r14469 - /team/oej/test-this-branch/doc/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 23 13:47:25 MST 2006


Author: oej
Date: Thu Mar 23 14:47:23 2006
New Revision: 14469

URL: http://svn.digium.com/view/asterisk?rev=14469&view=rev
Log:
Update cdr_radius documentation

Modified:
    team/oej/test-this-branch/doc/cdrdriver.txt

Modified: team/oej/test-this-branch/doc/cdrdriver.txt
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/doc/cdrdriver.txt?rev=14469&r1=14468&r2=14469&view=diff
==============================================================================
--- team/oej/test-this-branch/doc/cdrdriver.txt (original)
+++ team/oej/test-this-branch/doc/cdrdriver.txt Thu Mar 23 14:47:23 2006
@@ -166,24 +166,74 @@
 
 SQLLITE:
 
-RADIUS:		The Radius CDR driver builds upon the radiusclient-ng library
-		available at http://developer.berlios.de/projects/radiusclient-ng/
+RADIUS:		The Radius CDR driver built upon the radiusclient-ng library
+		available at
+		http://developer.berlios.de/projects/radiusclient-ng/
+		
+		Installing this library will provide the RADIUS client
+		function to Asterisk, and thus make it able to talk to
+		a RADIUS server.
+
 		The CDR driver produces only 'stop' records.
+
+		Compile, configure, and install the latest
+		radiusclient-ng library:
+		   tar -zxvf radiusclient-ng-0.5.2.tar.gz &&
+		   cd radiusclient-ng-0.5.2 &&
+		   ./configure &&
+		   make &&
+		   make install
+		
+                Compile, or recompile Asterisk so that it will now add support
+                for the module:
+                   make clean &&
+                   make update &&
+                   make &&
+                   make install
+
+		Configure the /usr/local/etc/radiusclient-ng/servers
+		file to set the RADIUS server's IP address and secret.
+
+		Include the dictionary.asterisk file in the main
+		dictionary:
+		   cp -p asterisk.dictionary /usr/local/etc/radiusclient-ng/
+		   cd /usr/local/etc/radiusclient-ng/
+		   echo '$INCLUDE /usr/local/etc/radiusclient-ng/asterisk.dictionary' >> dictionary
+		   
+		The dictionary.asterisk file must also be included in
+		the RADIUS server's main dictionary file in a similar 
+		manner.
+
+		Set up cdr_radius configuration file. Example:
+		   [global]
+		   radiuscfg => /usr/local/etc/radiusclient-ng/radiusclient.conf
 
 		Here is an example of a record, taken from a FreeRADIUS server
 		'detail' file, and running on the same computer :
 
- 		Fri Mar 3 00:03:13 2006
-		        Acct-Status-Type = Stop
-        		Calling-Station-Id = "7899"
-        		Called-Station-Id = "0123456789"
-        		Acct-Session-Time = 57
-        		NAS-Port = 0
-        		Acct-Delay-Time = 0
-        		NAS-IP-Address = 127.0.0.1
-        		Acct-Unique-Session-Id = "bd030dd14f5ecbc5"
-        		Timestamp = 1141340593
-
+		   Wed Mar 22 17:15:50 2006
+		       Acct-Status-Type = Stop
+		       Asterisk-Acc-Code = ""
+		       Asterisk-Src = "johndoe"
+		       Asterisk-Dst = "0123456789"
+		       Asterisk-Dst-Ctx = "from-sip-clients"
+		       Asterisk-Clid = "\"john.doe\" <johndoe>"
+		       Asterisk-Chan = "SIP/john.doe-e85e"
+		       Asterisk-Dst-Chan = "SIP/10.0.0.1-f5a6"
+		       Asterisk-Last-App = "Dial"
+		       Asterisk-Last-Data = "SIP/00123456789 at 10.0.0.1"
+		       Asterisk-Start-Time = "2006-03-22 17:15:43"
+		       Asterisk-Answer-Time = "2006-03-22 17:15:45"
+		       Asterisk-End-Time = "2006-03-22 17:15:50"
+		       Asterisk-Duration = 7
+		       Asterisk-Bill-Sec = 5
+		       Asterisk-Disposition = "ANSWERED"
+		       Asterisk-AMA-Flags = "DOCUMENTATION"
+		       NAS-Port = 0
+		       Acct-Delay-Time = 0
+		       NAS-IP-Address = 127.0.0.1
+		       Acct-Unique-Session-Id = "bd030dd14f5ecbc5"
+		       Timestamp = 1143044150
 -------------------------------------------------------------------------------
 
 08/02/2004 : Duane Cox <dcox at illicom.net> - added mssql information



More information about the asterisk-commits mailing list