[OpenSIPS-Users] RADIUS interim update not work

Roberto Santini r.santini at netresults.it
Tue Jan 25 14:37:28 CET 2011


Yes, of course!

# ----- acc params -----
/* what sepcial events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
if you enable this parameter, be sure the enable "append_fromtag"
in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "failed_transaction_flag", 3)
#modparam("acc", "log_flag", 1)
#modparam("acc", "log_missed_flag", 2)
/* uncomment the following lines to enable DB accounting also */

#accounting su mysql
#modparam("acc", "db_flag", 1)
#modparam("acc", "db_missed_flag", 2)
#modparam("acc", "db_extra", "from_uri=$fu; to_uri=$tu; request_uri=$ru;
source_address=$si; p_asserted_identity=$ai")
modparam("acc",
"db_url","mysql://xxx:xxx@xxx.xxx.xxx.xxx:3306/opensips")

#accounting su radius
modparam("acc", "service_type", 15)
modparam("acc", "aaa_flag", 1)
modparam("acc", "aaa_missed_flag", 2)
modparam("acc", "aaa_url",
"radius:/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "aaa_extra", "Sip-CSeq=$ru; Sip-User-Realm=$fu;
Sip-User-ID=$tu; Sip-Branch-ID=$ci; Sip-Response-Code=$rs;
Sip-Source-IP-Address=$si; Sip-P-Asserted-Identity=$ai; Sip-RTP-Proxy=
$avp(i:50)")
modparam("aaa_radius", "radius_config",
"/etc/radiusclient-ng/radiusclient.conf")


Thanks,
Roberto.

On Tue, 2011-01-25 at 15:18 +0200, Dani Popa wrote:
> Can you give us acc module config ?
> 
> Thanks,
> Dani
> 
> Roberto Santini wrote:
> > Hi Dani,
> >  thanks for your replay.
> > I use acc module with parameters aaa_flag and aaa_missed_flag set to 1
> > and 2. Into the routing script I set only these flags. I do not use the
> > function radius_send_acct.
> >
> > Roberto.
> >
> > On Tue, 2011-01-25 at 12:45 +0200, Dani Popa wrote:
> >   
> >> What do you use for accountig ? radius_send_acct or acc ?
> >>
> >> Dani
> >>
> >> Roberto Santini wrote:
> >>     
> >>> Hi to all,
> >>>  I am new here and I have a problem with accounting on RADIUS.
> >>> OpenSIPS sends start and stop accounting messages properly, but in case
> >>> of update sends messages with Acct-Status-Type = 0, which are not
> >>> recognized by the RADIUS server.
> >>> I tried to add a definition to Acct-Status-Type = 0 into RADIUS
> >>> dictionary, but I think it is in fact a value that is not allowed
> >>> because nothing happened.
> >>> Anyone has ever had this problem? How can I fix it?
> >>> OpenSIPS version is 1.6.3 compiled with TLS support (Debian 5.0.4 64
> >>> bit), and RADIUS (freeradius) version is 2.0.4 (installed by apt-get on
> >>> Debian 5.0.4 64 bit).
> >>>
> >>> I hope you can help me and sorry for my bad English :(
> >>>
> >>> Best regards,
> >>> Roberto.
> >>>
> >>>
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at lists.opensips.org
> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>   
> >>>       
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>     
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >   
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list