Problem : for each call i get two INVITE messages and one BYE message what finally gives me two record on one call. Below i give my radacct plus my ser.cfg.
using SER from cvs on debian made with "make deb".
----------------------ser.cfg--------------------------------------------- [...] modparam("acc", "radius_config", "/etc/radiusclient/radiusclient.conf") modparam("acc", "radius_flag", 1) modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser") [...]
if (!method=="REGISTER") record_route();
if (loose_route()) { if (method=="INVITE" || method=="ACK" || method=="BYE") { setflag(1); t_relay(); break;
}; };
#traffic to PSTN Multitech.
if (uri=~"^sip:8[0-9]{3}@*") {
rewritehostport ("192.168.0.163:5060"); if (method=="INVITE" || method=="ACK" || method=="BYE") { setflag(1); t_relay(); break;
}; }; [...] -------------#EOF----------------------------------------------------------- ------------------------------#
--------------------------------radacct:
-----------------------------------------1---(start)-----15:36-------------- ---------------- Fri May 6 15:36:18 2005 Acct-Status-Type = Start Service-Type = IAPP-Register Sip-Response-Code = 200 Error-Cause = 1 User-Name = "494@192.168.0.122" Calling-Station-Id = "sip:494@192.168.0.122" Called-Station-Id = "sip:8506633351@192.168.0.122" Sip-Translated-Request-URI = "sip:8506633351@192.168.0.163:5060" Acct-Session-Id = "FXhmq9wjIM0muabU@192.168.0.133" Sip-To-Tag = "1974686540" Sip-From-Tag = "jKddrjjMVfZA1LZs" Sip-Cseq = "1" 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 = "b67ece239e51c387" Timestamp = 1115386578 -------------------------------------------------2---(start)-----15:36------ -------------------------
Fri May 6 15:36:18 2005 Acct-Status-Type = Start Service-Type = IAPP-Register Sip-Response-Code = 200 Error-Cause = 4 User-Name = "494@192.168.0.122" Calling-Station-Id = "sip:494@192.168.0.122" Called-Station-Id = "sip:8506633351@192.168.0.122" Sip-Translated-Request-URI = "sip:8506633351@192.168.0.163:5060" Acct-Session-Id = "FXhmq9wjIM0muabU@192.168.0.133" Sip-To-Tag = "1974686540" Sip-From-Tag = "jKddrjjMVfZA1LZs" Sip-Cseq = "1" 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 = "b67ece239e51c387" Timestamp = 1115386578 ----------------------------------------------3------(stop)--15:36---------- ------------------------ Fri May 6 15:36:23 2005 Acct-Status-Type = Stop Service-Type = IAPP-Register Sip-Response-Code = 200 Error-Cause = 8 User-Name = "8506633351@192.168.0.122" Calling-Station-Id = "sip:8506633351@192.168.0.122" Called-Station-Id = "sip:494@192.168.0.122" Sip-Translated-Request-URI = "sip:494@192.168.0.133:5060" Acct-Session-Id = "FXhmq9wjIM0muabU@192.168.0.133" Sip-To-Tag = "jKddrjjMVfZA1LZs" Sip-From-Tag = "1974686540" 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 = "3ac6feec9288d040" Timestamp = 1115386583 ---------------------------------------------------------------------------- ---------------------#EOF