Dynamic session timeout

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Nov 1 21:48:12 CET 2018



> On 1 Nov 2018, at 16:47, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
> 
> 
> 
>> On 1 Nov 2018, at 16:32, Sam T <givemesam at gmail.com> wrote:
>> 
>> Arg, were stuck. I thought we had your edit in here correctly. Here is the
>> entire expression and the output.
>> 
>> //////////
>> 
>> %{expr:%{%{integer:reply:WISPr-Session-Terminate-Time}} - %l}
>> 
>> 
>> if (reply:WISPr-Session-Terminate-Time) {
>>           update reply {
>>       # Session-Timeout := "%{expr:%{WISPr-Session-Terminate-Time} - %l}"
>>       # Session-Timeout := "%{expr:%{reply:WISPr-Session-Terminate-Time}
>> - %l}"
>>       Session-Timeout :=
>> "%{expr:%{%{integer:reply:WISPr-Session-Terminate-Time}} - %l}"
>>           }
>>       }
> 
> Ah Alan's initial expression was slightly incorrect, the correct one is:
> 
> 	%{expr:%{integer:reply:WISPr-Session-Terminate-Time} - %l}
> 
> It had two many levels of nesting around the integer expansion.

too/two, technically both correct :)

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2




More information about the Freeradius-Users mailing list