Packet-Original-Timestamp
Бен Томпсон
b.thompson at latera.ru
Fri Mar 1 08:23:59 CET 2013
2013/3/1 Arran Cudbard-Bell <a.cudbardb at freeradius.org>:
>
> On 1 Mar 2013, at 01:45, Бен Томпсон <b.thompson at latera.ru> wrote:
>
>> 2013/3/1 Бен Томпсон <b.thompson at latera.ru>:
>>> 2013/3/1 Arran Cudbard-Bell <a.cudbardb at freeradius.org>:
>>>>
>>>> On 1 Mar 2013, at 00:43, Бен Томпсон <b.thompson at latera.ru> wrote:
>>>>
>>>>> Hello Everyone
>>>>>
>>>>> I have a NAS which is not sending Event-Timestamp in accounting
>>>>> messages. I wondered if I could create it in unlang by subtracting
>>>>> Acct-Delay-Time from Packet-Original-Timestamp. However, when I put a
>>>>> reference to Packet-Original-Timestamp in the acconting setion I get
>>>>> the following error :-
>>>>>
>>>>> Reference "${Packet-Original-Timestamp}" not found
>>>>>
>>>>> Am I doing something wrong?
>>>>
>>>> Yeah you're using a $ instead of a %.
>>>
>>> Many thanks.
>>
>> Another quick question :-
>>
>> ###### snip ######################
>> ++? if (!Event-Timestamp)
>> ? Evaluating !(Event-Timestamp) -> TRUE
>> ++? if (!Event-Timestamp) -> TRUE
>> ++- entering if (!Event-Timestamp) {...}
>> expand: %{Packet-Original-Timestamp} ->
>> +++[request] returns updated
>> ++- if (!Event-Timestamp) returns updated
>> ################################
>>
>> It seems that Packet-Original-Timestamp does not contain anything. I
>> was under the impression that it is generated automatically by
>> FreeRADIUS. Is this not the case
>
> Packet-Original-Timestamp is only set by the detail file reader.
>
> Event-Timestamp should be set in accounting if you call preprocess in preacct*.
>
> -Arran
>
> * At least in 3.0
OK, thanks again, I will give it a try.
More information about the Freeradius-Users
mailing list