[OpenSER-Users] Fw: Radius - prevent start record for ACK ?

G.Jacobsen g_jacobsen at yahoo.co.uk
Wed Jul 11 19:57:31 CEST 2007


Just discovered an acc parameter which does the trick and suppresses ACK
accounting:modparam("acc", "report_ack", 0)Sorry for not reading
properly.Still I am confused why radius receives start records with ACK
before INVITE start records.CheersGerry----- Original Message ----- 
From: "G.Jacobsen" <g_jacobsen at yahoo.co.uk>
To: <users at openser.org>
Sent: Wednesday, July 11, 2007 8:06 PM
Subject: Radius - prevent start record for ACK ?


> I am using freeradius with openser 1.0.1.
>
> My problem is that openser is emitting TWO radius start records: One for
the
> INVITE with SIP method = 1 (INVITE) and also a second start record for SIP
> Method = 4 (ACK)
>
> Is is normal that a start record is also emitted for the ACK ?
>
> As  long as the INVITE record is sent before the ACK record that is no
real
> problem.
>
> However every-now-and-then (no pattern observed) Openser sends the Radius
> start record with SIP Method = 4 (ACK) before the Record with SIP Method =
1
> for the INVITE.
>
> The problem is that the Radius record for the ACK does not contain the
> username from the credentials so that the username is not correctly set in
> the Radius record, instead of the correct username  the callerid is used
as
> the username.
>
> How do I prevent that openser sends start records for the ACK ? Quite
> frankly I do not understand why a start record for ACK is emitted since I
> set the radius_flag only for INVITEs.
>
> the relevant parts from my configuration:
>
> modparam("acc", "radius_config",
> "/usr/local/etc/radiusclient-ng/radiusclient.conf")
> modparam("acc", "radius_flag", 1)
> modparam("acc", "log_flag", 1)
> modparam("acc", "service_type", 15)
>
> route{
>
> .....
>         # If this is an INVITE and not RE-INVITE start accounting
>         if(is_method("INVITE") && !has_totag()){
>                 # set the acc flags
>                 setflag(1);
>         };
>
>
>         if (is_method("ACK")) { #hop-by-hop ACKs are absorbed here
>                 t_newtran();
>                 # drop broken ACKs
>                 exit;
>         };
>
>
> Any hints are welcome.
>
> TIA
>
> Gerry
>


		
___________________________________________________________ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html





More information about the sr-users mailing list