Skip to content
Snippets Groups Projects
  1. Mar 13, 2018
    • Corey Farrell's avatar
      core: Remove non-critical cleanup from startup aborts. · fee929c8
      Corey Farrell authored
      When built-in components of Asterisk fail to start they cause the
      Asterisk startup to abort.  In these cases only the most critical
      cleanup should be performed - closing databases and terminating
      proceses.  These cleanups are registered using ast_register_atexit, all
      other cleanups should not be run during startup abort.
      
      The main reason for this change is that these cleanup procedures are
      untestable from the partially initialized states, if they fail it could
      prevent us from ever running the critical cleanup with ast_run_atexits.
      
      Create separate initialization for dns_core.c to be run unconditionally
      during startup instead of being initialized by the first dns resolver to
      be registered. This ensures that 'sched' is initialized before it can be
      potentially used.
      
      Replace ast_register_atexit with ast_register_cleanup in media_cache.c.
      There is no reason for this cleanup to happen unconditionally.
      
      Change-Id: Iecc2df98008b21509925ff16740bd5fa29527db3
      fee929c8
  2. 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
  3. Nov 30, 2015
    • George Joseph's avatar
      dns: Change lookup failures from LOG_ERROR to debug 1. · e5723d27
      George Joseph authored
      dns.c and dns_system_resolver.c were spitting out errors for lookup
      failures for things like not finding a SRV record even though
      there was an A record.  Those have been changed to debug messages.
      Logging not finding ANY record is left to the higher level caller.
      
      Also, dns_system_resolver was using Windows line endings so I
      converted them to Unix style.  The actual log changes are on lines
      156 and 159.
      
      Change-Id: I65be16ea15304b96f9dcb4d289dbd3e2286fc094
      e5723d27
  4. Nov 10, 2015
  5. Jul 08, 2015
    • Ashley Sanders's avatar
      DNS: Create a system-level DNS resolver · 3cdfd39a
      Ashley Sanders authored
      Prior to this patch, the DNS core present in master had no default system-level
      resolver implementation. Therefore, it was not possible for the DNS core to
      perform resolutions unless the libunbound library was installed and the
      res_resolver_unbound module was loaded.
      
      This patch introduces a system-level DNS resolver implementation that will
      register itself with the lowest consideration priority available (to ensure
      that it is to be used only as a last resort). The resolver relies on low-level
      DNS search functions to perform a rudimentary DNS search based on a provided
      query and then supplies the search results to the DNS core.
      
      ASTERISK-25146 #close
      Reported By: Joshua Colp
      
      Change-Id: I3b36ea17b889a98df4f8d80d50bb7ee175afa077
      3cdfd39a
Loading