[asterisk-bugs] [Asterisk 0014142]: Registration uses hwclock and sysclock to retrieve time

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 29 07:23:04 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14142 
====================================================================== 
Reported By:                CGMChris
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14142
Category:                   Channels/chan_sip/Registration
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-26 17:44 CST
Last Modified:              2008-12-29 07:23 CST
====================================================================== 
Summary:                    Registration uses hwclock and sysclock to retrieve
time
Description: 
It looks like different areas of the SIP registration code retrieve the
date/time differently. Under *most* conditions the time is pulled from the
sysclock, however, under some rare conditions the time appears to be pulled
from the hwclock.

My system had the hardware clock set 4 hours ahead of the sysclock (it's a
new system and I had never ran /sbin/hwclock --systohc).

Once every day or so, my service would go out, and "sip show registry"
would report a registration time in the future.  Asterisk was showing me as
connected with a registration time 4 hours into the future, but my provider
was timing me out.

I tried the following settings (with no luck)
sip.conf:
[general]
...
registerattempts=0
registertimeout=60
defaultexpiry=120

Granted it's my fault that I did not set the hwclock, but I think Asterisk
should also be more consistent on how it pulls the date/time -- hwclock or
sysclock, one or the other.
====================================================================== 

---------------------------------------------------------------------- 
 (0096978) Corydon76 (administrator) - 2008-12-29 07:23
 http://bugs.digium.com/view.php?id=14142#c96978 
---------------------------------------------------------------------- 
Asterisk is very consistent on how it pulls the time -- it's always the
sysclock, never the hwclock.  Presumably, you have some other process that
is setting the sysclock to the hwclock. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-29 07:23 Corydon76      Note Added: 0096978                          
======================================================================




More information about the asterisk-bugs mailing list