(RADIATOR) SessionDatabase replacing records on Alive packets

Jose Borges Ferreira underspell at gmail.com
Fri May 2 10:39:04 CDT 2008


I always set session start using  the following  code
unix_timestamp()-%{Acct-Session-Time}-0%{Acct-Delay-Time}

On Fri, May 2, 2008 at 10:50 AM, David Craigon
<david.craigon at griffin.com> wrote:
>
>
> Hello,
>
> I'm running a standalone radius accounting server. What I want to achieve is
> to have a row in a database in a table appear when I get a start packet, and
> for it to be deleted again when I get a stop packet.
>
> To this end, I am using a sessiondb.
>
> The only problem I am having is that every time an Alive packet shows up,
> the Delete query followed by the Insert query gets run. Since I record when
> the session started using the SQL statement, I'd like it not to do this.
>
> I don't want to ignore Alive packets altogether, since I do something else
> with them using an AcctSQLStatement.
>
> Any advice?
>
> David

--
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