Skip to content
Snippets Groups Projects
  1. Feb 19, 2019
    • Torrey Searle's avatar
      res/res_rtp_asterisk: clear smoother when local bridging · 8ea9608e
      Torrey Searle authored
      p2p_write updates txformat but doesn't require a smoother.  If a smoother
      was created by another bridge type the smoother could fall out of date causing
      one way audio issues.  To prevent this the smoother is now destroyed on the
      start of native bridge.
      
      ASTERISK-28284 #close
      
      Change-Id: I84e67f144963787fff9b4d79ac500514fb40cdc6
      8ea9608e
  2. Feb 11, 2019
  3. Feb 08, 2019
    • Joshua Colp's avatar
      ci: Rerun unit tests when non-code changes occur. · c2ea9c90
      Joshua Colp authored
      This change makes it so that even if non-code changes
      occur (such as commit message changing) unit tests
      will still be run and result in a verification.
      
      ASTERISK-28251
      
      Change-Id: I6491fff7c93e5d5cd8e41054486968bf66c4f608
      c2ea9c90
  4. Feb 07, 2019
    • Kevin Harwell's avatar
      res_pjsip_registrar: lock transport monitor when setting 'removing' flag · 61a8f79a
      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
      61a8f79a
    • Joshua Colp's avatar
      res_odbc: Add basic query logging. · 54a912b2
      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
      54a912b2
  5. Feb 06, 2019
  6. Feb 05, 2019
  7. Feb 04, 2019
    • Sean Bright's avatar
      sounds: Sort 'core show sounds' output · f174eb4a
      Sean Bright authored
      Change-Id: Ib39052a745040f75eb635f15a042da15b20e22ab
      f174eb4a
    • Joshua C. Colp's avatar
    • Ben Ford's avatar
      res_stasis: Auto-create context and extens on Stasis app launch. · 3f9c5fba
      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
      3f9c5fba
    • George Joseph's avatar
      bundled-jansson: On OpenSuse Leap libjansson.a was placed in lib64 · ac2d302c
      George Joseph authored
      On OpenSuse Leap, libjansson.a is installed in
      third-party/jansson/dest/lib64 instead of lib (which is where
      the top-level makeopts looks).  This causes a link failure.
      
      * Updated jansson/Makefile to add an explicit --libdir to force
        the installation to third-party/jansson/dest/lib.
      
      ASTERISK-28271
      Reported by: David Wilcox
      
      Change-Id: Ibf8af75e5da13562105fcc39ed898c6ef0b5a5f3
      ac2d302c
  8. Jan 30, 2019
    • sungtae kim's avatar
      Added ARI resource /ari/asterisk/ping · ac90968a
      sungtae kim authored
      Added ARI resource.
      GET /ari/asterisk/ping : It returns "pong" message with timestamp
      and asterisk id. It would be useful for simple heath check.
      
      Change-Id: I8d24e1dcc96f60f73437c68d9463ed746f688b29
      ac90968a
  9. Jan 29, 2019
    • Kevin Harwell's avatar
      pjsip/config_global: regcontext context not created · f668db9b
      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
      f668db9b
  10. Jan 28, 2019
    • George Joseph's avatar
      media_index.c: Refactored so it doesn't cache the index · 7071e9d6
      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.
      
      "sounds" is no longer a valid target for the "module reload"
      command.
      
      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
      7071e9d6
    • George Joseph's avatar
      6118b65a
    • George Joseph's avatar
      42d63b69
    • George Joseph's avatar
  11. Jan 25, 2019
    • Kevin Harwell's avatar
      codecs.conf.sample: update codec opus docs · 0bcaadc0
      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
      0bcaadc0
  12. Jan 24, 2019
  13. Jan 23, 2019
  14. Jan 22, 2019
    • Gerald Schnabel's avatar
      manager_channels: Fix throwing of HangupHandler manager events · f9ca0afb
      Gerald Schnabel authored
      The type value extracted from stasis message data in channel_hangup_handler_cb
      isn't compared against the valid values "run", "pop" and "push". Thus the
      manager events HangupHandlerPush, HangupHandlerPop and HangupHandlerRun are
      never thrown.
      
      This regression was introduced by ASTERISK_21462.
      
      ASTERISK-28252
      
      Change-Id: I9956e35e18da1873113644df1ddc3c7cd37bf524
      f9ca0afb
    • Chris-Savinovich's avatar
      Test_cel: Fails when DONT_OPTIMIZE is off · 1c8378bb
      Chris-Savinovich authored
      A bug in GCC causes TEST_CEL to return failure under the following
      conditions:
      1. TEST_FRAMEWORK on
      2. DONT_OPTIMIZE off
      3. Fedora and Ubuntu
      4. GCC 8.2.1
      5. Test name: test_cel_dial_pickup
      6. There must exist a certain combination of multithreading.
      The bug affects arithmetic calculations when the optimization level
      is bigger than O1 and the -fpartial-inline flag is on. Provided these
      conditions, function ast_str_to_lower() fails to convert to lower case
      due to said function being of type force_inline.  The solution is to
      remove the "force_inline" type declaration from function ast_str_to_lower()
      
      Change-Id: Ied32e0071f12ed9d5f3b4cdd878b2532a1c769d7
      1c8378bb
    • George Joseph's avatar
      app_voicemail: Add Mailbox Aliases · c6980e32
      George Joseph authored
      You can now define an "aliases" context in voicemail.conf
      whose entries point to actual mailboxes.  These can be used anywhere
      the mailbox is specified.
      
      Example:
      [general]
      aliasescontext = myaliases
      
      [default]
      1234 = yadayada
      
      [myaliases]
      4321@devices = 1234@default
      
      Now you can use 4321@devices to refer to the 1234@default mailbox.
      
      This can be useful to provide channel drivers with constant
      mailbox specifications such as <extension>@devices leaving
      app_voicemail to control exactly which mailbox the alias points to.
      Now, only voicemail has to be reloaded to make changes instead of
      individual channel drivers which are usually more expensive to
      reload.
      
      Change-Id: I395b9205c91523a334fe971be0d1de4522067b04
      c6980e32
    • Kevin Harwell's avatar
      res_pjsip_registrar: mitigate blocked threads on reliable transport shutdown · b82d2856
      Kevin Harwell authored
      When a reliable transport is shutdown it's possible for the pjsip registrar
      resource shutdown handler to get called multiple times. If this happens and one
      of the threads is taking "too long" (slow database call for instance) then the
      others get blocked waiting to delete.
      
      Since it only takes one to delete the contact then the other threads should be
      able to continue on if one of the threads is currently "deleting". This patch
      makes it so now when a thread enters the shutdown handler it checks to see if a
      thread is currently already "deleting". If so, then the thread does not attempt
      to get the lock, and instead continues on thus avoiding the blockage.
      
      ASTERISK-28213 #close
      
      Change-Id: I7563ca596312b1dff4f3ab41483e89fe2862328a
      b82d2856
    • George Joseph's avatar
      pjproject_bundled: Add patch for double free issue in timer heap · deffb8a6
      George Joseph authored
      Fixed #2172: Avoid double reference counter decrements in
      timer in the scenario of race condition between
      pj_timer_heap_cancel() and pj_timer_heap_poll().
      
      Change-Id: If000e9438c83ac5084b678eb811e902c035bd2d8
      deffb8a6
Loading