Skip to content
Snippets Groups Projects
  1. Oct 14, 2021
  2. Jul 16, 2021
  3. Oct 02, 2020
    • Kevin Harwell's avatar
      Logging: Add debug logging categories · 56028426
      Kevin Harwell authored
      Added debug logging categories that allow a user to output debug
      information based on a specified category. This lets the user limit,
      and filter debug output to data relevant to a particular context,
      or topic. For instance the following categories are now available for
      debug logging purposes:
      
        dtls, dtls_packet, ice, rtcp, rtcp_packet, rtp, rtp_packet,
        stun, stun_packet
      
      These debug categories can be enable/disable via an Asterisk CLI command.
      
      While this overrides, and outputs debug data, core system debugging is
      not affected by this patch. Statements still output at their appropriate
      debug level. As well backwards compatibility has been maintained with
      past debug groups that could be enabled using the CLI (e.g. rtpdebug,
      stundebug, etc.).
      
      ASTERISK-29054 #close
      
      Change-Id: I6e6cb247bb1f01dbf34750b2cd98e5b5b41a1849
      56028426
  4. Aug 10, 2017
    • Richard Mudgett's avatar
      STUN/netsock2: Fix some valgrind uninitialized memory findings. · bd28a9bb
      Richard Mudgett authored
      * netsock2.c: Test the addr->len member first as it may be the only member
      initialized in the struct.
      
      * stun.c:ast_stun_handle_packet(): The combinded[] local array could get
      used uninitialized by ast_stun_request().  The uninitialized string gets
      copied to another location and could overflow the destination memory
      buffer.
      
      These valgrind findings were found for ASTERISK_27150 but are not
      necessarily a fix for the issue.
      
      Change-Id: I55f8687ba4ffc0f69578fd850af006a56cbc9a57
      bd28a9bb
  5. Apr 11, 2017
    • Richard Mudgett's avatar
      stun.c: Fix ast_stun_request() erratic timeout. · 7c37365f
      Richard Mudgett authored
      If ast_stun_request() receives packets other than a STUN response then we
      could conceivably never exit if we continue to receive packets with less
      than three seconds between them.
      
      * Fix poll timeout to keep track of the time when we sent the STUN
      request.  We will now send a STUN request every three seconds regardless
      of how many other packets we receive while waiting for a response until we
      have completed three STUN request transmission cycles.
      
      Change-Id: Ib606cb08585e06eb50877f67b8d3bd385a85c266
      7c37365f
  6. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  7. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  8. Mar 26, 2015
  9. Nov 14, 2014
  10. May 09, 2014
  11. Dec 11, 2012
  12. Jul 09, 2012
    • Joshua Colp's avatar
      When receiving a STUN binding request send one out as the Google Talk client... · 8f162be8
      Joshua Colp authored
      When receiving a STUN binding request send one out as the Google Talk client uses this as a method to determine if the remote party is still reachable or not.
      
      Failure to do this results in the Google Talk client ignoring RTP packets after a specific period of time. This is also done as a result of receiving a STUN binding request so that the username information can be used from the inbound request, thus not requiring it to be stored on a per candidate basis.
      
      (closes issue ASTERISK-20107)
      Reported by: Malcolm Davenport
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8f162be8
  13. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  14. Dec 01, 2011
    • Richard Mudgett's avatar
      Re-resolve the STUN address if a STUN poll fails for res_stun_monitor. · 83cd844b
      Richard Mudgett authored
      The STUN socket must remain open between polls or the external address
      seen by the STUN server is likely to change.  However, if the STUN request
      poll fails then the STUN server address needs to be re-resolved and the
      STUN socket needs to be closed and reopened.
      
      * Re-resolve the STUN server address and create a new socket if the STUN
      request poll fails.
      
      * Fix ast_stun_request() return value consistency.
      
      * Fix ast_stun_request() to check the received packet for expected message
      type and transaction ID.
      
      * Fix ast_stun_request() to read packets until timeout or an associated
      response packet is found.  The stun_purge_socket() hack is no longer
      required.
      
      * Reduce ast_stun_request() error messages to debug output.
      
      * No longer pass in the destination address to ast_stun_request() if the
      socket is already bound or connected to the destination.
      
      (closes issue ASTERISK-18327)
      Reported by: Wolfram Joost
      Tested by: rmudgett
      
      Review: https://reviewboard.asterisk.org/r/1595/
      ........
      
      Merged revisions 346700 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 346701 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      83cd844b
  15. Sep 02, 2010
  16. Apr 03, 2009
    • Mark Michelson's avatar
      This commit introduces COLP/CONP and Redirecting party information into Asterisk. · 6f53ed4c
      Mark Michelson authored
      The channel drivers which have been most heavily tested with these enhancements are
      chan_sip and chan_misdn. Further work is being done to add Q.SIG support and will be
      introduced in a later commit. chan_skinny has code added to it here, but according
      to user pj, the support on chan_skinny is not working as of now. This will be fixed in
      a later commit.
      
      A special thanks goes out to bugtracker user gareth for getting the ball rolling and
      providing the initial support for this work. Without his initial work on this, this would
      not have been nearly as painless as it was.
      
      This functionality has been tested by Digium's product quality department, as well as a
      customer site running thousands of calls every day. In addition, many many many many bugtracker
      users have tested this, too.
      
      (closes issue #8824)
      Reported by: gareth
      
      Review: http://reviewboard.digium.com/r/201
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@186525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6f53ed4c
  17. Apr 02, 2009
Loading