[OpenSER-Devel] usrloc permanent records and strptime
Henning Westerholt
henning.westerholt at 1und1.de
Thu Jun 5 14:41:49 CEST 2008
On Thursday 05 June 2008, Juha Heinanen wrote:
> > in order to specify an permant usrloc entry in the database one
> > should set the expires colum to zero. This is equivalent to a
> > datetime value of '0000-00-00 00:00:00' (at least in mysql).
>
> does it matter what the expires date for permanent contacts is because
> a permanent contact has a specific cflag value?
Hi Juha,
in the past there were some flags defined for this purpose (FL_PERMANENT).
But now its just
#define VALID_CONTACT(c, t) ((c->expires>t) || (c->expires==0))
Cheers,
Henning
More information about the Devel
mailing list