[Home]

Summary:ASTERISK-08507: Registration acknowledgement incorrectly handles missing refresh value
Reporter:Scot McSweeney-Roberts (maethor)Labels:
Date Opened:2007-01-06 17:46:52.000-0600Date Closed:2007-01-07 23:13:34.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) regrefresh.diff
Description:When registering with a server, if the REGACK message is missing the optional refresh value, Asterisk sets the value to 0. This causes Asterisk to never refresh the registration, which causes the registration to timeout on the server. Looking at the specification for IAX2, it appears that that 60 should be the default value.

****** ADDITIONAL INFORMATION ******

All that is required to fix this is to change the intial value of the refresh variable in the iax2_ack_registry function from 0 to 60. Once that's done, Asterisk starts to correctly refresh itself with a server that doesn't send a refresh value. In case it makes it easier, I've include a patch.
Comments:By: Joshua C. Colp (jcolp) 2007-01-07 23:13:33.000-0600

Fixed in 1.2 as of revision 49889, 1.4 as of revision 49890, and trunk as of revision 49891. Thanks!