<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<base href="https://e.mail.ru/" target="_self"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SK" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Upgrade freeradius version.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">There was problem with parsing attributes ( witch starts with number  ) in the code.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freeradius-users-bounces+peter.balsianok=orange.sk@lists.freeradius.org
 [mailto:freeradius-users-bounces+peter.balsianok=orange.sk@lists.freeradius.org]
<b>On Behalf Of </b>???? ????????<br>
<b>Sent:</b> Monday, July 08, 2013 1:01 PM<br>
<b>To:</b> freeradius-users@lists.freeradius.org<br>
<b>Subject:</b> acct_users<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Тема: acct_users<o:p></o:p></p>
<div>
<div id="style_13732808020000000239">
<div id="style_13732808020000000239_BODY">
<p class="MsoNormal">Hi<br>
Have some proublem<span lang="EN"> with accounting files</span><span lang="EN"> </span>
on version 2.2.0 . I use standard dictionary 3GPP2, but attribut 3GPP2-PCF-IP-Address was ignored in acct_users file.
<br>
<br>
etc/acct_users<br>
DEFAULT         Acct-Session-Time == "0", Acct-Type := TEST0<br>
DEFAULT         Framed-IP-Address =~ "172.16", Acct-Type := BLOCKED<br>
DEFAULT 3GPP2-PCF-IP-Address =~ "10.223.[45]", NAS-IP-Address =~ "10.123.66.5", Acct-Type := ASREVDO<br>
DEFAULT 3GPP2-PCF-IP-Address =~ "10.123.65", NAS-IP-Address =~ "10.123.66", Acct-Type := KUB<br>
DEFAULT                  Acct-Type := OTHER<br>
<br>
etc/modules/detail<br>
<br>
detail TEST {<br>
                detailfile =  ${radacctdir}/files/blocked/blocked.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
<br>
detail TEST0 {<br>
                detailfile =  ${radacctdir}/files/nullsession/nullsession.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
        detail KUB {<br>
                detailfile =  ${radacctdir}/files/onex/kub.aaadb1.onex<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
       detail ASREVDO {<br>
                detailfile =  ${radacctdir}/files/evdoasr/kubasr.aaadb1.evdo<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
  detail OTHER {<br>
                detailfile =  ${radacctdir}/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
<span lang="EN">My accounting files was created</span> as OTHER, <span lang="EN">
but there must have been in </span>ASREVDO.<br>
For example, radclient:<br>
[root@aaa-db1 radtest]# ./radtestacct.sh |more<br>
Sending Accounting-Request of id 7 to 127.0.0.1 port 1813<br>
        User-Name = "mobile"<br>
        Calling-Station-Id = "250091000211350"<br>
        NAS-IP-Address = 10.123.66.5<br>
        Acct-Status-Type = Interim-Update<br>
        Acct-Session-Id = "50D406FD"<br>
        3GPP2-Correlation-Id = "o095O8hM"<br>
        NAS-Identifier = "asr5k-krd"<br>
        SN-Software-Version = "10.0 (36820)"<br>
        3GPP2-BSID = "2D0C00010701"<br>
        3GPP2-Attr-41 = 0x000b32c1<br>
        3GPP2-Service-Option = 59<br>
        3GPP2-User-Id = 0<br>
        3GPP2-ESN = "0159E33E"<br>
        Service-Type = Framed-User<br>
        Framed-Protocol = PPP<br>
        NAS-Port-Type = Wireless-Other<br>
        3GPP2-PCF-IP-Address = 10.223.4.6<br>
        Acct-Authentic = RADIUS<br>
        SN-Local-IP-Address = 77.243.240.221<br>
        SN-Primary-DNS-Server = 77.243.240.230<br>
        SN-Secondary-DNS-Server = 77.243.240.231<br>
        SN-VPN-Name = "ISP"<br>
        SN-Primary-NBNS-Server = 0.0.0.0<br>
        SN-Secondary-NBNS-Server = 0.0.0.0<br>
        Framed-Compression = None<br>
        SN-PPP-Data-Compression = None<br>
        SN-VPN-ID = 3<br>
        3GPP2-IP-Technology = 1<br>
        3GPP2-Compulsory-Tunnel-Indicator = 0<br>
        SN-Proxy-MIP = 0<br>
        Framed-MTU = 1500<br>
        3GPP2-Attr-78 = 0x00000000<br>
        SN-PPP-Data-Compression-Mode = Normal<br>
        3GPP2-Forward-FCH-Mux-Option = 0<br>
        3GPP2-Reverse-FCH-Mux-Option = 0<br>
        3GPP2-Forward-Traffic-Type = 0<br>
        3GPP2-Reverse-Traffic-Type = 0<br>
        3GPP2-FCH-Frame-Size = 0<br>
        3GPP2-Forward-FCH-RC = 0<br>
        3GPP2-Reverse-FCH-RC = 0<br>
        3GPP2-Airlink-Priority = 0<br>
        3GPP2-Airlink-Sequence-Number = 5<br>
        3GPP2-Airlink-Record-Type = 2<br>
        3GPP2-Bad-PPP-Frame-Count = 0<br>
        3GPP2-Number-Active-Transitions = 130<br>
        3GPP2-Terminating-SDB-Octet-Count = 0<br>
        3GPP2-Originating-SDB-OCtet-Count = 0<br>
        3GPP2-Terminating-Number-SDBs = 0<br>
        3GPP2-Originating-Number-SDBs = 0<br>
        3GPP2-Received-HDLC-Octets = 14106<br>
        3GPP2-Active-Time = 2040<br>
        Acct-Input-Packets = 109<br>
        Acct-Output-Packets = 268<br>
        3GPP2-Attr-162 = 0x00000000<br>
        3GPP2-Attr-163 = 0x00000000<br>
        3GPP2-Attr-164 = 0x00000000<br>
        3GPP2-Attr-165 = 0x00000000<br>
        SNA-PPP-Unfr-data-In-Oct = 11438<br>
        SNA-PPP-Unfr-data-Out-Oct = 35850<br>
        Acct-Session-Time = 3600<br>
        3GPP2-Session-Continue = 1<br>
        3GPP2-Last-User-Activity-Time = 1373257676<br>
        SNA-PPP-Ctrl-Input-Octets = 23602<br>
        SNA-PPP-Ctrl-Output-Octets = 28240<br>
        SNA-PPP-Ctrl-Input-Packets = 2346<br>
        SNA-PPP-Ctrl-Output-Packets = 2347<br>
        SNA-PPP-Framed-Input-Octets = 6446541<br>
        SNA-PPP-Framed-Output-Octets = 93404564<br>
        SNA-PPP-Discards-Input = 107<br>
        SNA-PPP-Errors-Input = 107<br>
        SNA-PPP-Bad-FCS = 107<br>
        SNA-PPP-Echo-Req-Input = 2335<br>
        SNA-PPP-Echo-Rsp-Output = 2335<br>
        SNA-RPRRQ-Rcvd-Total = 4448<br>
        SNA-RPRRQ-Rcvd-Acc-Reg = 4448<br>
        SNA-RPRRQ-Rcvd-Acc-Dereg = 39<br>
        SNA-RPRAK-Rcvd-Total = 60<br>
        SNA-RPRAK-Rcvd-Acc-Ack = 40<br>
        SNA-RPRAK-Rcvd-Mis-ID = 20<br>
        SNA-RP-Reg-Reply-Sent-Total = 4448<br>
        SNA-RP-Reg-Reply-Sent-Acc-Reg = 4448<br>
        SNA-RP-Reg-Reply-Sent-Acc-Dereg = 39<br>
        SNA-RP-Reg-Upd-Sent = 60<br>
        SNA-RP-Reg-Upd-Re-Sent = 20<br>
        Event-Timestamp = "Jul  8 2013 08:28:23 MSK"<br>
        3GPP2-Service-Reference-Id = 0x0104000102040001<br>
        Framed-IP-Address = 94.77.22.81<br>
        Framed-IP-Netmask = 255.255.255.255<br>
        Starent-Attr-24 = 0x00000001<br>
        Acct-Input-Octets = 11438<br>
        Acct-Output-Octets = 35850<br>
        NAS-Port = 666631<br>
rad_recv: Accounting-Response packet from host 127.0.0.1 port 1813, id=7, length=20<br>
<br>
In radius.log<br>
<br>
Waking up in 0.9 seconds.<br>
Thread 3 handling request 0, (1 handled so far)<br>
[<thread>] # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default<br>
[<thread>] +- entering group preacct {...}<br>
[preprocess]    expand: %{NAS-IP-Address} -> 10.123.66.5<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess] WARNING: Unknown module "3GPP2-BSID" in string expansion "%"<br>
[preprocess] WARNING: Unknown module "3GPP2-BSID" in string expansion "%"<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
++[preprocess] returns ok<br>
[suffix] No '@' in User-Name = "mobile", looking up realm NULL<br>
[suffix] Found realm "NULL"<br>
[suffix] Adding Stripped-User-Name = "mobile"<br>
[suffix] Adding Realm = "NULL"<br>
[suffix] Accounting realm is LOCAL.<br>
++[suffix] returns ok<br>
[files]         expand: %{User-Name} -> mobile<br>
[files]         expand: %{Framed-IP-Address} -> 94.77.22.81<br>
[files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
[files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
[files] acct_users: Matched entry DEFAULT at line 42<br>
++[files] returns ok<br>
  Found Acct-Type OTHER<br>
# Executing group from file /usr/local/etc/raddb/sites-enabled/default<br>
+- entering group OTHER {...}<br>
[acct_unique] Hashing 'Calling-Station-Id = "250091000211350",3GPP2-Correlation-Id = "o095O8hM",Acct-Session-Id = "50D406FD"'<br>
[acct_unique] Acct-Unique-Session-ID = "327c0b6a3c7b490e".<br>
++[acct_unique] returns ok<br>
++- entering group  {...}<br>
[OTHER]         expand: /usr/local/var/log/radius/radacct/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m -> /usr/local/var/log/radius/radacct/files/other/10.123.66.5_other/other.10.123.66.5.201307<br>
[OTHER] /usr/local/var/log/radius/radacct/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m expands to /usr/local/var/log/radius/radacct/files/other/10.123.66.5_other/other.10.123.66.5.201307<br>
[OTHER] Acquired filelock, tried 1 time(s)<br>
[OTHER]         expand: %t -> Mon Jul  8 14:38:43 2013<br>
+++[OTHER] returns ok<br>
++- group  returns ok<br>
Finished request 0.<br>
<br>
This configuration work normal on my old 2.1.3 version radius, but 2.2.0 don't like number as the first character of an attribute expansion.
<br>
Every time see [files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
<br>
<span lang="EN">Similar problem in this list</span>:<br>
<a href="http://lists.freeradius.org/pipermail/freeradius-users/2012-November/064050.html" target="_blank">http://lists.freeradius.org/pipermail/freeradius-users/2012-November/064050.html</a>
<o:p></o:p></p>
<div id="gt-res-content">
<div>
<p class="MsoNormal"><span lang="EN">This is strange but in 2.2.0 this problem should not be.</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div id="_mcePaste">
<pre>I use standard dictionary<o:p></o:p></pre>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><br>
-- <br>
Юрий Колесник<o:p></o:p></p>
</div>
</body>
</html>