Filtering accounting messages

liran kessel lirankessel at gmail.com
Mon Jul 15 15:46:21 CEST 2019


Thanks that solved the problem.


> On 15 Jul 2019, at 15:13, Matthew Newton <mcn at freeradius.org> wrote:
> 
> On Mon, 2019-07-15 at 14:54 +0300, liran kessel wrote:
>> if ("%{sql:SELECT coalesce(1,0) FROM [TABLE_NAME] WHERE
>> ne_id='%{Calling-Station-Id}'}" == 1)
>> {
>>        sql
>> }
> 
> That's not correct unlang syntax.
> 
>> However when running radiusd it fails with this error
>> 
>> # Loading preacct {...}
>> # Loading accounting {...}
>> /etc/raddb/sites-enabled/default[642]: Failed to find "{" as a module
>> or policy.
> 
> Put the '{' on the same line as the 'if'.
> 
> -- 
> Matthew
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list