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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "60A406F8-6CA2-4251-8CD6-796A69F82A3A@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "60A406F8-6CA2-4251-8CD6-796A69F82A3A@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... Start enjoying all the benefits of MSNĀ® Premium right now and get the first two months FREE*.
Hi Matt I solved this problem just setting "report_ack" to 0 (value "1" send two start message to freeradius), hope it helps, if not send us your config file to check...
# For Rad Accounting modparam("acc","radius_config","/usr/local/etc/radiusclient/radiusclient.conf") modparam("acc", "service_type", 15) modparam("acc", "radius_flag", 1) modparam("acc", "radius_missed_flag", 3) modparam("acc", "report_ack", 0) # 1 reporta dos starts en acc
Rafael
On Sun, 20 Mar 2005 23:55:50 -0500, matt morris mmorris36@hotmail.com wrote:
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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "58FCBA73-03FD-4AB4-A4CC-6C0A890414F3@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "60A406F8-6CA2-4251-8CD6-796A69F82A3A@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@xxxxxx.xxxxxx.xxx" Calling-Station-Id = "sip:xxxxxx@xxxxxx.xxxxxx.xxx:xxxx" Called-Station-Id = "sip:yyyyyy@xxxxxx.xxxxxx.xxx" Sip-Translated-Request-URI = "sip:yyyyyy@xxxxxx.xxxxxx.xxx:xxxxx" Acct-Session-Id = "60A406F8-6CA2-4251-8CD6-796A69F82A3A@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... Start enjoying all the benefits of MSN(r) Premium right now and get the first two months FREE*.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers