Re: Accounting on 2 tables
Thanks. BTW, is there a way to distinguish instances in Radius server for accounting i.e. for asterisk use instance1 and opensips use instance2? Currently using NAS table for radius client setup. id nasname shortname type ports secret server community description 1 10.0.0.0/8 Company other 5060 hatuiks \N \N RADIUS Client 2 10.3.120.100 TestSIP04 other 5060 hatuiks04 \N \N RADIUS Client Please advise and share any supported document related to above case as I'm newbie in Freeradius. Date: Fri, 24 Feb 2017 09:54:53 -0500
From: Alan DeKok <aland@deployingradius.com> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: Accounting on 2 tables Message-ID: <3653CA7E-31CF-4044-98AD-68E8DC0205CF@deployingradius.com> Content-Type: text/plain; charset=us-ascii
On Feb 24, 2017, at 9:44 AM, Ahmed Munir <ahmedmunir007@gmail.com> wrote:
I would like to know is it possible to setup more than 1 tables for accounting? As by default radacct table is used.
Yes.
You will need to set up two instances of the SQL module, and then edit the queries as necessary.
The reason I'm asking as need to setup accounting on different tables for Asterisk and OpenSIPs.
Please advise and share the supported document.
I would suggest taking the time to look at the wiki. This is documented (see rlm_sql in the wiki). All it takes is for you to look.
Alan DeKok.
-- Regards, Ahmed Munir Chohan
On Feb 28, 2017, at 10:43 AM, Ahmed Munir <ahmedmunir007@gmail.com> wrote:
BTW, is there a way to distinguish instances in Radius server for accounting i.e. for asterisk use instance1 and opensips use instance2?
If they are separate clients, you can use virtual servers for each client. Or, just check Packet-Src-IP-Address.
Currently using NAS table for radius client setup.
id nasname shortname type ports secret server community description 1 10.0.0.0/8 Company other 5060 hatuiks \N \N RADIUS Client 2 10.3.120.100 TestSIP04 other 5060 hatuiks04 \N \N RADIUS Client
Please advise and share any supported document related to above case as I'm newbie in Freeradius.
The server comes with tons of examples and documentation. I suggest starting by reading the configuration files. And the wiki. Alan DeKok.
participants (2)
-
Ahmed Munir -
Alan DeKok