[Serusers] Radius accounting

Alberto Cruz acruz at tekbrain.com
Thu Jul 21 17:33:28 CEST 2005


You should add something like this at your ser.cfg:

modparam("acc","radius_config","/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "service_type", 15)
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 3)
modparam("acc", "report_ack", 0)

And after sanity checks block:
        #---------------------------------------------
        #Checking for the Radius accounting messages
        #---------------------------------------------
        if (method=="INVITE") {
                log(1, "INVITE MESSAGE RECEIVED - START ACCOUNTING\n");
                setflag(1);
        };
        if (method=="BYE" || method=="CANCEL") {
                log (1, "%method  - STOP ACCOUNTING\n");
                setflag(1);
        };
        setflag(3);

Regards

Alberto Cruz

Naresh Parmar wrote:

> folks,
>  
> i m using free radius server with SER. just trying to figure out how 
> can i make the accounting work...have done everything in the 
> Radius-Howto but still am not seeing anything in the 
> /usr/local/var/log/radius/radacct directory...any clue...??
>
> ------------------------------------------------------------------------
> Start your day with Yahoo! - make it your home page 
> <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050721/c565c9b1/attachment.htm>


More information about the sr-users mailing list