[OpenSER-Devel] [ openser-Bugs-1986657 ] usrloc permanent records and strptime problem

SourceForge.net noreply at sourceforge.net
Tue Jul 1 14:29:47 CEST 2008


Bugs item #1986657, was opened at 2008-06-06 20:09
Message generated for change (Comment added) made by juhe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1986657&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Henning Westerholt (henningw)
Assigned to: Nobody/Anonymous (nobody)
Summary: usrloc permanent records and strptime problem

Initial Comment:
The actual way of dealing with permanent records in the location DB is not optimal and should be reworked.

> The idea was to replace the FL_PERMANENT flag with > the 0 value for expires - both mean the contact 
> will never expire.

expires is a time_t value. Zero is here defined as 1970-01-01 00:00:00 UTC. But this is not portable for different timezones (at least on mysql), as mysql don't support timezones in datetime columns.

For example on my system i need to specify 1970-01-01 01:00:00 to get the usrloc logic working. But daylight changes, or using different timezones will break this again. So i think i'll use just the usrloc expires default 2020-05-28 21:32:15 in my database. 

Perhaps it makes sense to remove this usrloc permanent contact handling altogether, if its not working stable.

This was discussed in the thread at:
http://www.nabble.com/usrloc-permanent-records-and-strptime-td17668417.html


----------------------------------------------------------------------

>Comment By: Juha Heinanen (juhe)
Date: 2008-07-01 15:29

Message:
Logged In: YES 
user_id=1332122
Originator: NO

my suggestion is to use a flag to indicate that a contact is permanent. 
if that does not work due to problems with bit handling in some DBs, my
suggestion is to add a new field to location table that tells if contact is
permanent.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1986657&group_id=139143



More information about the Devel mailing list