Filtering accounting messages

Matthew Newton mcn at freeradius.org
Mon Jul 15 14:13:53 CEST 2019


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




More information about the Freeradius-Users mailing list