<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
I am trying to rewrite some custom AVPairs that cisco sends me.<br>
In order to do that i've created cusatom dictionary:<br>
<br>
ATTRIBUTE disc-cause-ext 507 integer<br>
<br>
VALUE disc-cause-ext Unknown 1002<br>
VALUE disc-cause-ext CLID-Auth-Fail 1004<br>
VALUE disc-cause-ext No-Carrier 1010<br>
VALUE disc-cause-ext AAA-VAL-DISC-LOST-CARR 1011<br>
etc....<br>
<br>
When radius is started with this dictionary i don't get any value for
disc-cause-ext attribute. It doesn't exist.<br>
In my log files i've enabled request attributes loging, and i get this:<br>
<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: <b>Cisco-AVPair =
disc-cause-ext=1045</b><br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-bytes-in=217<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-bytes-out=139<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-paks-in=8<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-paks-out=7<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-session-time=35<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
connect-progress=60<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
nas-rx-speed=31200<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
nas-tx-speed=46666<br>
<br>
If i change my dictionary to look like this:<br>
<br>
ATTRIBUTE disc-cause-ext 507 string<br>
<br>
then in my log i see this:<br>
<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: <b>Cisco-AVPair =
disc-cause-ext=1045</b><br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-bytes-in=217<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-bytes-out=139<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-paks-in=8<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-paks-out=7<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
pre-session-time=35<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
connect-progress=60<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
nas-rx-speed=31200<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: Cisco-AVPair =
nas-tx-speed=46666<br>
Tue Feb 23 17:41:42 2010 : rlm_perl: RAD_REQUEST: <b>disc-cause-ext=1045</b><br>
<br>
All i want to do is map number to string, so that my tech support can
see human readable disconnect cause extension, because it gives me
slightly more data about the disconnect reason. Am i on the right track
or...?<br>
<br>
Igor<br>
<b></b>
</body>
</html>