(RADIATOR) Problem with Timestamp

Sergio Gonzalez sagonzal at sky.net.co
Thu Apr 24 10:52:03 CDT 2003


*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hello there.

I've been working on a hook to make some discounts on user's available 
time. I've a problem and I was wondering if someone can help me with this.

When I receive a Acct Stop Type I catch the packet and try to see the 
Timestamp for the packet. This is because I need to make the discounts 
based on that value. I assumed I could use

${$_[0]}->get_attr('Timestamp')

but I found that attribute isn't set into the request stop packet. I saw 
notice Timestamp attribute is set (for example) when another RADIUS send 
the stop request, but not when it was originated by a RAS. Well, then I tried

$Radius::Radius::Timestamp

as a Timestamp. but I couldn't get the value either. Looking at some 
examples of AcctColumnDef I found this:

          AcctColumnDef  TIME_STAMP,Timestamp,integer
                                                         ^^^^^^^^^^^^

How can I get that value inside my hook?

My hook is a PreProcessingHook one.

Thanks in advance for the help


Sergio Alejandro Gonzalez
Director Operativo
Network and Services Field Manager
SkyNet de Colombia.
Calle 100 No. 8A-55 Of. 711
Bogota, Cundinamarca
Colombia, South America.
Tel: 57 (+1) 6 422 020
Cel: 57 (+3)/(03315) 3551034
Pager: 5405555, 3469999 Cod 2010

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list