Asterisk
  1. Asterisk
  2. ASTERISK-8507

Registration acknowledgement incorrectly handles missing refresh value

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/General
    • Labels:
      None
    • SVN Revision Number:
      49765
    • Mantis ID:
      8746
    • Regression:
      No

      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.

        Activity

        Hide
        Joshua Colp added a comment -

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

        Show
        Joshua Colp added a comment - Fixed in 1.2 as of revision 49889, 1.4 as of revision 49890, and trunk as of revision 49891. Thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development