[Serusers] error in acc_radius in User-Name AVP - ser rel_2_0_0

Tomasz Zieleniewski tzieleniewski at gmail.com
Sat Dec 20 22:38:35 CET 2008


Hi,

There is an error in acc_radius module
when SER sends first accounting request corresponding to invite the
User-Name AVP is
taken as the "user" parameter in the Authorization header field, which is
the correct behaviour.

        Acct-Session-Id = "Njg1M2M4NzE0NzAyZTIwZjcyOWNhMzIyMGVlY2RiNmQ."
        Sip-To-Tag = "0234593C-494D655A00008C74-40C0B950"
        SER-From = "\"Tomasz
Zieleniewski\"<sip:tzl at sip.rd.touk.pl<sip%3Atzl at sip.rd.touk.pl>
>;tag=815fbd6e"
        SER-Flags = 140509184
        SER-Original-Request-ID =
"sip:test at sip.rd.touk.pl<sip%3Atest at sip.rd.touk.pl>
"
        Sip-Method = "INVITE"
        Sip-Cseq = 2
        Sip-Translated-Request-ID = "sip:announcement at 212.180.179.42:7160"
        Sip-Source-IP-Address = 192.168.1.132
        Sip-From-Tag = "815fbd6e"
        SER-To = "\"test\"<sip:test at sip.rd.touk.pl<sip%3Atest at sip.rd.touk.pl>
>;tag=0234593C-494D655A00008C74-40C0B950"
        SER-Digest-Username = "tzl"
        SER-Request-Timestamp = 1229808986
        Calling-Station-Id = "sip:tzl at sip.rd.touk.pl<sip%3Atzl at sip.rd.touk.pl>
"
        Sip-Source-Port = 5499
        SER-Digest-Realm = "touk.pl"
        Sip-Response-Code = 200
        Called-Station-Id = "sip:test at sip.rd.touk.pl<sip%3Atest at sip.rd.touk.pl>
"
        SER-Response-Timestamp = 1229808986
        Acct-Status-Type = Start
        Service-Type = IAPP-Register
        User-Name = "tzl at touk.pl"
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 127.0.0.1

When there is another accounting request for instance when there is session
termination by BYE request
User-Name AVP is equal to the "From" Header when it shouldn't because it
should be used if there was no authentication.

        Acct-Session-Id = "Njg1M2M4NzE0NzAyZTIwZjcyOWNhMzIyMGVlY2RiNmQ."
        Sip-To-Tag = "0234593C-494D655A00008C74-40C0B950"
        SER-From = "\"Tomasz
Zieleniewski\"<sip:tzl at sip.rd.touk.pl<sip%3Atzl at sip.rd.touk.pl>
>;tag=815fbd6e"
        SER-Flags = 140509184
        SER-Original-Request-ID = "sip:announcement at 212.180.179.42:7160"
        Sip-Method = "BYE"
        Sip-Cseq = 3
        Sip-Translated-Request-ID = "sip:announcement at 212.180.179.42:7160"
        Sip-Source-IP-Address = 192.168.1.132
        Sip-From-Tag = "815fbd6e"
        SER-To = "\"test\"<sip:test at sip.rd.touk.pl<sip%3Atest at sip.rd.touk.pl>
>;tag=0234593C-494D655A00008C74-40C0B950"
        SER-Request-Timestamp = 1229808992
        Calling-Station-Id = "sip:tzl at sip.rd.touk.pl<sip%3Atzl at sip.rd.touk.pl>
"
        Sip-Source-Port = 5499
        Sip-Response-Code = 200
        Called-Station-Id = "sip:test at sip.rd.touk.pl<sip%3Atest at sip.rd.touk.pl>
"
        SER-Response-Timestamp = 1229808992
        Acct-Status-Type = Stop
        Service-Type = IAPP-Register
        User-Name = "tzl at sip.rd.touk.pl"
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = 127.0.0.1

Kind regards
Tomasz Zieleniewski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20081220/b53acf03/attachment.htm>


More information about the sr-users mailing list