[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:21 CST 2008


The following issue has been CLOSED 
====================================================================== 
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:                     closed
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:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-29 07:23 Corydon76      Status                   new => closed       
2008-12-29 07:23 Corydon76      Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list