[Serusers] SER Radius Accounting - Two Start Messages for Every Call

matt morris mmorris36 at hotmail.com
Mon Mar 21 05:55:50 CET 2005


Hello List,

I got a problem with ser radius accounting. Seems ser sends two start
messages to my freeradius server (ser 0.10.99-dev5, radiusclient-ng 0.5.0 
and freeradius snapshot 20050315 in the same computer) for every calls I 
made, and also for missed
calls (two same  failed message). Does it have to do with my
dictionary file(s)? For my ser.cfg, I only set the radius_flag to be 1
and radius_missed_flag to 2. I only called setflag(1) once with this
if condition before record_route():
if (method=="INVITE" || method=="BYE") {
   setflag(1);
};

Did not have this problem when I used db_flag

There are another two users with this same or similar problem, but there is 
no
answers to their thread. So wondering if they have solved it or anyone
else know why is it behaving like this? Please help me out, thank you.

My radacct log:

Sun Mar 20 20:40:31 2005
        Acct-Status-Type = Start
        Service-Type = Sip-Session
        Sip-Response-Code = 200
        Sip-Method = 1
        User-Name = "xxxxxx at xxxxxx.xxxxxx.xxx"
        Calling-Station-Id = "sip:xxxxxx at xxxxxx.xxxxxx.xxx:xxxx"
        Called-Station-Id = "sip:yyyyyy at xxxxxx.xxxxxx.xxx"
        Sip-Translated-Request-URI = "sip:yyyyyy at xxxxxx.xxxxxx.xxx:xxxxx"
        Acct-Session-Id = 
"58FCBA73-03FD-4AB4-A4CC-6C0A890414F3 at xxx.xxx.xxx.xxx"
        Sip-To-Tag = "3607001048"
        Sip-From-Tag = "577868341"
        Sip-Cseq = "18570"
        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 = "2e516ab9838c2cbd"
        Stripped-User-Name = "xxxxxx"
        Realm = "DEFAULT"
        Timestamp = 1111369231

Sun Mar 20 20:40:31 2005
        Acct-Status-Type = Start
        Service-Type = Sip-Session
        Sip-Response-Code = 200
        Sip-Method = 4
        User-Name = "xxxxxx at xxxxxx.xxxxxx.xxx"
        Calling-Station-Id = "sip:xxxxxx at xxxxxx.xxxxxx.xxx:xxxx"
        Called-Station-Id = "sip:yyyyyy at xxxxxx.xxxxxx.xxx"
        Sip-Translated-Request-URI = "sip:yyyyyy at xxxxxx.xxxxxx.xxx:xxxxx"
        Acct-Session-Id = 
"58FCBA73-03FD-4AB4-A4CC-6C0A890414F3 at xxx.xxx.xxx.xxx"
        Sip-To-Tag = "3607001048"
        Sip-From-Tag = "577868341"
        Sip-Cseq = "18570"
        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 = "2e516ab9838c2cbd"
        Stripped-User-Name = "xxxxxx"
        Realm = "DEFAULT"
        Timestamp = 1111369231

Sun Mar 20 20:41:05 2005
        Acct-Status-Type = Stop
        Service-Type = Sip-Session
        Sip-Response-Code = 200
        Sip-Method = 8
        User-Name = "xxxxxx at xxxxxx.xxxxxx.xxx"
        Calling-Station-Id = "sip:yyyyyy at xxxxxx.xxxxxx.xxx:xxxx"
        Called-Station-Id = "sip:xxxxxx at xxxxxx.xxxxxx.xxx"
        Sip-Translated-Request-URI = "sip:xxxxxx at xxxxxx.xxxxxx.xxx:xxxxx"
        Acct-Session-Id = 
"58FCBA73-03FD-4AB4-A4CC-6C0A890414F3 at xxx.xxx.xxx.xxx"
        Sip-To-Tag = "577868341"
        Sip-From-Tag = "3607001048"
        Sip-Cseq = "2254"
        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 = "7b53eafcefa8c57e"
        Stripped-User-Name = "yyyyyy"
        Realm = "DEFAULT"
        Timestamp = 1111369265

The same for missed calls too:

Sun Mar 20 17:51:53 2005
        Acct-Status-Type = Failed
        Service-Type = Sip-Session
        Sip-Response-Code = 408
        Sip-Method = 1
        User-Name = "xxxxxx at xxxxxx.xxxxxx.xxx"
        Calling-Station-Id = "sip:xxxxxx at xxxxxx.xxxxxx.xxx:xxxx"
        Called-Station-Id = "sip:yyyyyy at xxxxxx.xxxxxx.xxx"
        Sip-Translated-Request-URI = "sip:yyyyyy at xxxxxx.xxxxxx.xxx:xxxxx"
        Acct-Session-Id = 
"60A406F8-6CA2-4251-8CD6-796A69F82A3A at xxx.xxx.xxx.xxx"
        Sip-To-Tag = "n/a"
        Sip-From-Tag = "3544681223"
        Sip-Cseq = "4658"
        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 = "5059d3ad9e266ea1"
        Stripped-User-Name = "xxxxxx"
        Realm = "DEFAULT"
        Timestamp = 1111359113

Sun Mar 20 17:51:53 2005
        Acct-Status-Type = Failed
        Service-Type = Sip-Session
        Sip-Response-Code = 408
        Sip-Method = 1
        User-Name = "xxxxxx at xxxxxx.xxxxxx.xxx"
        Calling-Station-Id = "sip:xxxxxx at xxxxxx.xxxxxx.xxx:xxxx"
        Called-Station-Id = "sip:yyyyyy at xxxxxx.xxxxxx.xxx"
        Sip-Translated-Request-URI = "sip:yyyyyy at xxxxxx.xxxxxx.xxx:xxxxx"
        Acct-Session-Id = 
"60A406F8-6CA2-4251-8CD6-796A69F82A3A at xxx.xxx.xxx.xxx"
        Sip-To-Tag = "n/a"
        Sip-From-Tag = "3544681223"
        Sip-Cseq = "4658"
        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 = "5059d3ad9e266ea1"
        Stripped-User-Name = "xxxxxx"
        Realm = "DEFAULT"
        Timestamp = 1111359113

_________________________________________________________________
Scan and help eliminate destructive viruses from your inbound and outbound 
e-mail and attachments. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.




More information about the sr-users mailing list