Dialogic INTEGRATED MEDIA GATEWAYS 1010 User Manual
Page 64
RADIUS
54
Password = Your RADIUS password configured in the RADIUS users file and
ClientView
client 10.129.44.240 { # IMG IP
secret = server_secret
shortname = your_username
password = your_password
}
5. Copy the Cantata VSA Dictionary file.
.a. Copy the dictionary.cantata file from /opt/cantata/common/radius to
/usr/share/freeradius.
a.b. In the /usr/share/freeradius/ folder, edit the dictionary file and add the following
include line.
$INCLUDE dictionary.cantata
6. Start the Radius service:
service radiusd restart
7. Set the Radius service to restart when the system restarts:
chkconfig radiusd on
8. In ClientView, Configure a Radius Client and Servers on the IMG.
See Configuring Billing and Authentication.
9. Verify CDR’s are being generated
By default the files will roll over once a day. Follow the instructions in step 3 to roll
the log files over once an hour.
CDR's stored at: /var/log/radius/radacct/
file names are: detail-YYYYMMDDHH
detail-2005081801
10. Archive & delete CDR detail files.
A copy of the following files can be found at /opt/cantata/IMG/radius .
a. In the /var/log/radius/radacct folder create a script to archive files. Name the file
“CDR”
#!/bin/sh
# CDR
# Sample script to archive CDR's.
# Files are archived if more than 1 days old
# Files are deleted if more than 31 days old
find /var/log/radius/radacct/*/detail* -mtime +1 -exec gzip {} \;
find /var/log/radius/radacct/*/detail* -mtime +31 -exec rm -f {} \;
b. Create a cron task to run this script. This cron task can be run hourly or daily. The
example below will run it hourly. After creating this script restart the cron service or
restart the server.
In the /etc/cron.hourly folder create a file to run the script created in the previous
step.
#!/bin/bash
crontab<
#
# This script restarts the CDR log files each hour.