Skip to content
Snippets Groups Projects
  1. Feb 19, 2019
    • Joshua Colp's avatar
      CI: Use tmpfs option to Docker instead of mount. · 46df13e2
      Joshua Colp authored
      Some tests require Asterisk to execute scripts which
      are stored in /tmp. When mount is used for tmpfs there
      is no ability to allow scripts to be executed from
      that location.
      
      This change switches to using tmpfs which can be told
      to allow executables to be run from /tmp.
      
      Change-Id: I0e598ca2b76af1f7f2d29f0da7b1731a214a291a
      46df13e2
  2. Feb 14, 2019
  3. Feb 13, 2019
  4. Feb 11, 2019
  5. Feb 08, 2019
  6. Feb 07, 2019
    • Kevin Harwell's avatar
      res_pjsip_registrar: lock transport monitor when setting 'removing' flag · 3974633c
      Kevin Harwell authored
      A previous patch attempt to mitigate blocked threads on transport shutdown for
      a given contact. It was thought that a second lock could be avoided by checking
      the 'removing' flag on the transport monitor twice (once before and once after
      the normal named aor locking). However as with usual threading issues if the
      timing was right the original problem still occured.
      
      This patch adds locking around the first 'removing' flag check and set, thus
      nullifying the secondary check, so it was removed.
      
      ASTERISK-28213
      
      Change-Id: Iaa8e36e5311789549b76d8de42dfcea96013b2ed
      3974633c
    • Joshua Colp's avatar
      res_odbc: Add basic query logging. · a4d930c2
      Joshua Colp authored
      When Asterisk is connected and used with a database the response
      time of the database can cause problems in Asterisk if it is long.
      Normally the only way to see this problem would be to retrieve a
      backtrace from Asterisk and examine where things are blocked, or
      examine the database to see if there is any indication of a
      problem.
      
      This change adds some basic query logging to make it easier to
      investigate such a problem. When logging is enabled res_odbc will
      now keep track of the number of queries executed, as well as the
      query that has taken the longest time to execute. There is also
      an option which will cause a WARNING message to be output if a
      query takes longer than a configurable amount of time to execute.
      
      This makes it easier and clearer for users that their database may
      be experiencing a problem that could impact Asterisk.
      
      ASTERISK-28277
      
      Change-Id: I173cf4928b10754478a6a8c27dfa96ede0f058a6
      a4d930c2
  7. Feb 06, 2019
  8. Feb 05, 2019
  9. Feb 04, 2019
  10. Jan 30, 2019
  11. Jan 29, 2019
    • Ben Ford's avatar
      res_stasis: Auto-create context and extens on Stasis app launch. · 26a04477
      Ben Ford authored
      At AstriCon, there was a strong desire for the ability to completely
      bypass dialplan when using ARI. This is possible through the automatic
      creation of a context and a couple of extensions whenever an application
      is started.
      
      For example, if you have an application named 'ari-example', a context
      named 'stasis-ari-example' will be automatically created whenever this
      application is started as long as one does not already exist. Two
      extensions (a match-all extension for Stasis and a 'h' extension) are
      created within this context. Any endpoint that registers to Asterisk
      within this context will send all calls to the corresponding Stasis
      application. When the application is destroyed, the context is removed.
      
      ASTERISK-28104 #close
      
      Change-Id: Ie35bd93075e05b05e3ae129a83c9426931b7ebac
      26a04477
    • Kevin Harwell's avatar
      pjsip/config_global: regcontext context not created · 5a0a4c2e
      Kevin Harwell authored
      The context specified by 'regcontext' was not being created, so when Asterisk
      attempted to later dynamically add an extension it would fail. This patch now
      creates the context if a 'regcontext' is specified.
      
      ASTERISK-28238
      
      Change-Id: I0f36cf4ab0a93ff4b1cc5548d617ecfd45e09265
      5a0a4c2e
  12. Jan 28, 2019
    • George Joseph's avatar
      media_index.c: Refactored so it doesn't cache the index · 66982824
      George Joseph authored
      Testing revealed that the cache added no benefit but that it could
      consume excessive memory.
      
      Two new index related functions were created:
      ast_sounds_get_index_for_file() and ast_media_index_update_for_file()
      which restrict index updating to specific sound files.
      
      The original ast_sounds_get_index() and ast_media_index_update()
      calls are still available but since they no longer cache the results
      internally, developers should re-use an index they may already have
      instead of calling ast_sounds_get_index() repeatedly.  If information
      for only a single file is needed, ast_sounds_get_index_for_file()
      should be called instead of ast_sounds_get_index().
      
      The media_index directory scan code was elimininated in favor of
      using the existing ast_file_read_dirs() function.
      
      Since there's no more cache, ast_sounds_index_init now only
      registers the sounds cli commands instead of generating the
      initial index and subscribing to stasis format register/unregister
      messages.
      
      ast_sounds_reindex() is now a no-op but left for backwards
      compatibility.
      
      loader.c no longer registers "sounds" as a special reload target.
      
      Both the sounds cli commands and the sounds ari resources were
      refactored to only call ast_sounds_get_index() once per invocation
      and to use ast_sounds_get_index_for_file() when a specific sound
      file is requested.
      
      Change-Id: I1cef327ba1b0648d85d218b70ce469ad07f4aa8d
      66982824
    • Friendly Automation's avatar
    • George Joseph's avatar
      10cf12e7
    • George Joseph's avatar
    • Giuseppe Sucameli's avatar
      Fix deadlock handling subscribe req during res_parking reload · a618d20c
      Giuseppe Sucameli authored
      Split destroy_hint method to separate hint removal and extension hint
      state changed callback, the latter now called via stasis.
      This avoids deadlock between res_parking reload that is removing the
      parking lot and the related hint and subscribe requests coming for the
      same parking lot.
      
      ASTERISK-28173
      
      Change-Id: I5b03c3455b3b12b6f83cea4cc34f4b4b20444f7e
      a618d20c
  13. Jan 25, 2019
    • Kevin Harwell's avatar
      codecs.conf.sample: update codec opus docs · 62faecd6
      Kevin Harwell authored
      The option value "sdp" for some of the settings was removed a while back,
      however the sample conf was not updated.
      
      This patch removes any wording with regards to the old "sdp" option value,
      and adjusts the defaults to what they are now.
      
      ASTERISK-28263
      
      Change-Id: I41bfa44e9f69446bcc5c8fd92e3675c676fdc445
      62faecd6
  14. Jan 24, 2019
  15. Jan 23, 2019
Loading