[Serusers] how to get call duration in radius accounting stop

Klaus Darilion klaus.mailinglists at pernau.at
Thu Apr 21 10:15:36 CEST 2005


The BYE transaction is uncorrelated with the INVITE transaction. As ser 
is not call stateful, it does not remembers the INVITE, and thus does 
not know the call duration. You have to calculate the call duration 
afterwards, by correlating start and stop records.

regards,
klaus

Kamran Ahmad wrote:
> hi
> 
> how to get call duration in radius. there should be
> callduration in accounting stop but here in my case
> there is no callduration
> 
> 
>  Acct-Status-Type = Stop
>         Service-Type = Sip-Session
>         Sip-Response-Code = 200
>         Sip-Method = 8
>         User-Name = "4000 at ser"
>         Calling-Station-Id = "sip:4000 at ser"
>         Called-Station-Id = "sip:3000 at ser"
>         Sip-Translated-Request-URI = "sip:3000 at ser"
>         Acct-Session-Id =
> "CB13EC9C-9DB4-420F-BEF4-786E6398D714 at UA"
>         Sip-To-Tag = "as23df87de"
>         Sip-From-Tag = "290015013442"
>         Sip-Cseq = "2"
>         NAS-IP-Address = 127.0.0.1
>         NAS-Port = 5060
>         Acct-Delay-Time = 0
>         Client-IP-Address = 127.0.0.1
>         Acct-Unique-Session-Id = "ca12eca5fce40009"
>         Timestamp = 1112912023
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 




More information about the sr-users mailing list