[Serusers] Radius Accounting Message Format.

Jesus Rodriguez jesusr at voztele.com
Thu Sep 2 00:19:47 CEST 2004


On Wed, 1 Sep 2004, Ricardo Martinez wrote:

Hello,

> 	I succesfully install the auth and acc modules for SER.  I'm trying
> to keep track for the duration of a "local" (or between two registered user
> agents in SER) call.  I understand that for a PSTN or Gateway call the
> Accounting record is placed by the terminating gateway, but i'm interesting,
> as i mentioned, in the local calls.  I copy two accounting records from my
> RADIUS server for a local call, as you can see i don't have any parameter
> indicating the duration of the call or even timstamps.  Do i have to set
> anything else in my ser.cfg file?.  I'm also attaching my ser.cfg.

No session time attribute exists because it's not calculated by SER. SER
will just give you one Start and one Stop record per session and you will
have to calculate the session time yourself.




> Code:       Accounting-Request
> Attributes:
> 	Acct-Status-Type = Start
> 	Service-Type = Sip-Session
> 	Sip-Response-Code = 200
> 	Sip-Method = 1
> 	User-Name = "5552408196 at xx.xx.xx.246"
> 	Calling-Station-Id = "sip:5552408196 at xx.xx.xx.246"
> 	Called-Station-Id = "sip:005622408196 at xx.xx.xx.246"
> 	Sip-Translated-Req-ID = "sip:005622408196 at xx.xx.xx.50:5060"
> 	Acct-Session-Id =
> "95e15442-5f12-fae4-805e-0002a400f1e9 at xx.xx.xx.242"
> 	Sip-To-Tag = "4a419534a4"
> 	Sip-From-Tag = "9542fa5ea4"
> 	Sip-Cseq = "33"
> 	NAS-IP-Address = 127.0.0.1
> 	NAS-Port = 5060
> 	Acct-Delay-Time = 0
>
> Code:       Accounting-Request
> Attributes:
> 	Acct-Status-Type = Stop
> 	Service-Type = Sip-Session
> 	Sip-Response-Code = 200
> 	Sip-Method = 8
> 	User-Name = "5552408196 at xx.xx.xx.246"
> 	Calling-Station-Id = "sip:5552408196 at xx.xx.xx..246"
> 	Called-Station-Id = "sip:005622408196 at xx.xx.xx.xx.246"
> 	Sip-Translated-Req-ID = "sip:005622408196 at xx.xx.xx.50"
> 	Acct-Session-Id =
> "95e15442-5f12-fae4-805e-0002a400f1e9 at xx.xx.xx.xx.242"
> 	Sip-To-Tag = "4a419534a4"
> 	Sip-From-Tag = "9542fa5ea4"
> 	Sip-Cseq = "34"
> 	NAS-IP-Address = 127.0.0.1
> 	NAS-Port = 5060
> 	Acct-Delay-Time = 0
>

Saludos
JesusR.

-------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------




More information about the sr-users mailing list