Skip to content
Snippets Groups Projects
  1. Dec 11, 2017
  2. Dec 10, 2017
    • Sean Bright's avatar
      pjsip: Improve CLI completion performance · 521f741b
      Sean Bright authored
      Use the new ast_cli_completion_add() function to improve completion
      performance for commands like 'pjsip show endpoint.'
      
      Change-Id: I76d802294d2ac1766110dc75f7d117c8541ce348
      521f741b
    • Sean Bright's avatar
      astdb: Improve prefix searches in astdb · 9a9edc6c
      Sean Bright authored
      Using the LIKE operator requires a full table scan of 'astdb', whereas a
      comparison operation is able to use the primary key index.
      
      This patch adds a new function to the AstDB API for quick prefix matches
      and updates res_sorcery_astdb to utilize it. This showed substantial
      performance improvement in my test environment.
      
      Related to ASTERISK~26806, but does not completely resolve it.
      
      Change-Id: I7d37f9ba2aea139dabf2ca72d31fbe34bd9b2fa1
      9a9edc6c
  3. Dec 09, 2017
    • Corey Farrell's avatar
      loader: Refactor resource_name_match. · d2e87b8e
      Corey Farrell authored
      Optimize resource_name_match.  This change eliminates use of
      ast_strdupa, instead verifying that both basename's are the same length,
      then using strncasecmp.
      
      Change-Id: I477275c0e954c99d74be5abfc8bb6545b04e5a3d
      d2e87b8e
  4. Dec 08, 2017
    • Sean Bright's avatar
      pjsip_configuration: Add correct file header · dbb376f1
      Sean Bright authored
      Change-Id: I25348c386a222bb704aff07f54375108a6402906
      dbb376f1
    • Sean Bright's avatar
      utils: Add convenience function for setting fd flags · 2ffe52a1
      Sean Bright authored
      There are many places in the code base where we ignore the return value
      of fcntl() when getting/setting file descriptior flags. This patch
      introduces a convenience function that allows setting or clearing file
      descriptor flags and will also log an error on failure for later
      analysis.
      
      Change-Id: I8b81901e1b1bd537ca632567cdb408931c6eded7
      2ffe52a1
    • Corey Farrell's avatar
      res_stasis and res_speech: Fix load order. · e2dbc263
      Corey Farrell authored
      res_stasis was missing AST_MODFLAG_LOAD_ORDER.  Set res_stasis and
      res_speech to start at (AST_MODPRI_APP_DEPEND - 1) so they are ready for
      dependent modules.
      
      Change-Id: I27f4f3810a95b6be8a5bfbf62be2ace6bfab6ff3
      e2dbc263
  5. Dec 07, 2017
  6. Dec 06, 2017
    • Corey Farrell's avatar
      sounds_index: Avoid repeatedly reindexing. · ab191e97
      Corey Farrell authored
      The sounds index is rebuilt each time a format is registered or
      unregistered.  This causes the index to be repeatedly rebuilt during
      startup and shutdown.
      
      This patch significantly reduces the work done by delaying sound index
      initialization until after modules are loaded.  This way a reindex only
      occurs if a format module is loaded after startup.  We also skip
      reindexing when format modules are unloaded during shutdown.
      
      Change-Id: I585fd6ee04200612ab1490dc804f76805f89cf0a
      ab191e97
    • Richard Mudgett's avatar
      CDR: Fix deadlock setting some CDR values. · 3078b7ad
      Richard Mudgett authored
      Setting channel variables with the AMI Originate action caused a deadlock
      when you set CDR(amaflags) or CDR(accountcode).  This path has the channel
      locked when the CDR function is called.  The CDR function then
      synchronously passes the job to a stasis thread.  The stasis handling
      function then attempts to lock the channel.  Deadlock results.
      
      * Avoid deadlock by making the CDR function handle setting amaflags and
      accountcode directly on the channel rather than passing it off to the CDR
      processing code under a stasis thread to do it.
      
      * Made the CHANNEL function and the CDR function process amaflags the same
      way.
      
      * Fixed referencing the wrong message type in cdr_prop_write().
      
      ASTERISK-27460
      
      Change-Id: I5eacb47586bc0b8f8ff76a19bd92d1dc38b75e8f
      3078b7ad
    • Corey Farrell's avatar
      media_index: Improve startup. · 2af59ebb
      Corey Farrell authored
      This eliminates some wasteful operations in media_index startup.
      
      * Replace statically set string-fields with char[0].
      * Eliminate pointless RAII_VAR's.
      * alloc_variant: Avoid pointless ao2_find on new info->variant.
      * Stop trying find_variant before alloc_variant.
      * process_media_file: replace ast_str with ast_asprintf.  This avoids
        reallocation of file_id_str.
      
      Overall sounds_index.c is about 27% of Asterisk startup time when using
      sample configs.  This patch reduces it to 20%.  This is a half-fix.  The
      real problem is that the media_index is regenerated repeatedly - 68
      times in my test.
      
      Change-Id: Ia50b752f8efb356f852b05c4be495a6631af8652
      2af59ebb
    • Richard Mudgett's avatar
      bridge_basic.c: Update transfer diagnostic messages addendum. · e97e4155
      Richard Mudgett authored
      * Added start DTMF transfer verbose messages.
      * Made associated transfer messages use a similar message format.
      * Adjusted message verbose level as requested by initial reporter.
      
      ASTERISK-27449
      
      Change-Id: I2045714586414b3c5ef1f3cc56c1c4af4b31f551
      e97e4155
    • Jenkins2's avatar
    • Jenkins2's avatar
      Merge "Add new object for VoicemailUserEntry" · f761206f
      Jenkins2 authored
      f761206f
    • Joshua Colp's avatar
    • Jenkins2's avatar
      cc81f4eb
  7. Dec 05, 2017
    • Niklas Larsson's avatar
      bridge_basic.c: Update transfer diagnostic messages. · 9d005831
      Niklas Larsson authored
      * Add the channel name to diagnostic messages so you will know which
      channel failed to transfer.
      
      * Promoted some debug messages to verbose 4 messages.
      
      ASTERISK-27449 #close
      
      Change-Id: Idac66b7628c99379cc9269158377fd87dc97a880
      9d005831
  8. Dec 04, 2017
  9. Dec 02, 2017
    • Corey Farrell's avatar
      autoconf: Remove use of m4_ifblank. · 39939cec
      Corey Farrell authored
      The m4_ifblank macro is not available on CentOS 6, reverse conditionals
      to allow use of m4_ifval instead.  ./bootstrap.sh was run but this patch
      does not result in any difference to the generated configure script.
      
      Change-Id: I280785deb872ed8d3339d99cce63a2b54d5f1438
      39939cec
Loading