Hi list. I have this problem. There's something that's not working,
because, when ever I set up a call, I receive both messages INVITE and
BYE instantly. I think the correct way would it be to send a Start
messages (Acct-Status-Type = Start) upon INVITEs and a Stop messages
(Acct-Status-Type = Stop) upon BYEs. But this is not happening. Look ...
radrecv: Accounting Request from host c0a801fd code=4, id=205,
length=270
Acct-Status-Type = Start
Service-Type = Sip-Session
Sip-Response-Code = 200
Sip-Method = Invite
User-Name = "1992001(a)192.168.1.253"
Calling-Station-Id = "sip:1992001@192.168.1.253:5060;user=phone"
Called-Station-Id = "sip:1992005@192.168.1.253:5060;user=phone"
Sip-Translated-Request-URI = "sip:1992005@192.168.1.178:11005"
Acct-Session-Id = "6dfb6640367b1ab7(a)192.168.1.113"
Sip-To-Tag = "54061171"
Sip-From-Tag = "39eeac148f846cb9"
Sip-CSeq = "1544"
NAS-IP-Address = 192.168.1.253
NAS-Port-Id = 5060
Acct-Delay-Time = 0
Sending Accounting Ack of id 205 to c0a801fd (nas linux)
radrecv: Accounting Request from host c0a801fd code=4, id=206,
length=270
Acct-Status-Type = Start
Service-Type = Sip-Session
Sip-Response-Code = 200
Sip-Method = Bye
User-Name = "1992001(a)192.168.1.253"
Calling-Station-Id = "sip:1992001@192.168.1.253:5060;user=phone"
Called-Station-Id = "sip:1992005@192.168.1.253:5060;user=phone"
Sip-Translated-Request-URI = "sip:1992005@192.168.1.178:11005"
Acct-Session-Id = "6dfb6640367b1ab7(a)192.168.1.113"
Sip-To-Tag = "54061171"
Sip-From-Tag = "39eeac148f846cb9"
Sip-CSeq = "1544"
NAS-IP-Address = 192.168.1.253
NAS-Port-Id = 5060
Acct-Delay-Time = 0
Sending Accounting Ack of id 206 to c0a801fd (nas linux)
Do you see ? ...Both outputs show an Acct-Status-Type = Start, but first
output refers to an INVITE and second output refers to BYE message. I
don't think this is correct, isn't it ?
Any hint ?
here goes my ser.cfg ...
[...]
# -- RADIUS ACC --
modparam("acc", "radius_config", "/etc/radiusclient.conf")
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 2)
modparam("acc", "log_level", 1)
modparam("acc", "service_type", 15)
[...]
if (loose_route())
{
t_relay();
break;
};
if (uri==myself)
{
if (method=="REGISTER")
{
# Lo siguiente es para auth con RADIUS
if (!radius_www_authorize(""))
{
www_challenge("", "0");
break;
};
save("location");
break;
};
if (method=="INVITE")
{
setflag(1);
};
# native SIP destinations are handled using our USRLOC
DB
if (!lookup("location"))
{
sl_send_reply("404", "Not Found");
break;
};
};
t_relay();
[...]
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.5 - Release Date: 26/12/2004
Show replies by date