[OpenSER-Users] Trouble with RADIUS Accounting

Dmitry Lyubimkov loft at onego.ru
Mon Jun 2 09:06:28 CEST 2008


Hi.
We have new installation of OpenSER V.1.3.1 with new script. All work fine
except RADIUS accounting. Accounting Start and Stop records come to RADIUS
server, but there are no some attributes in them - User-Name,
Called-Station-Id, Calling-Station-Id,...
Example of Start and Stop records (FreeRADIUS log):
        Acct-Status-Type = Start
        Service-Type = IAPP-Register
        Sip-Response-Code = 200
        Sip-Method = 1
        Event-Timestamp = "Jun  2 2008 10:34:05 MSD"
        Sip-From-Tag = "5d12c92c"
        Sip-To-Tag = "6845627C-1EF5"
        Acct-Session-Id = "ODhmMjE4MmUxNzc3ZmZjN2U3MjJlM2I4NzQ0MjMzNTU."
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 172.16.2.10
        Client-IP-Address = 172.16.2.10
        Timestamp = 1212388445

        Acct-Status-Type = Stop
        Service-Type = IAPP-Register
        Sip-Response-Code = 200
        Sip-Method = 8
        Event-Timestamp = "Jun  2 2008 10:34:12 MSD"
        Sip-From-Tag = "5d12c92c"
        Sip-To-Tag = "6845627C-1EF5"
        Acct-Session-Id = "ODhmMjE4MmUxNzc3ZmZjN2U3MjJlM2I4NzQ0MjMzNTU."
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 172.16.2.10
        Client-IP-Address = 172.16.2.10
        Timestamp = 1212388452

Where is trouble? Required attributes are described in dictionary file. If I
remove it then OpenSER says 
Jun  2 11:02:23 [4064] ERROR:auth_radius:mod_init: auth_radius: can't get
code for the User-Name attribute
Jun  2 11:02:23 [4064] ERROR:core:init_mod: failed to initialize module
auth_radius
Jun  2 11:02:23 [4064] ERROR:core:main: error while initializing modules

How and where in script we can prohibit send of some attributes?

Dmitry






More information about the Users mailing list