Skip to content
Snippets Groups Projects
  1. Nov 21, 2019
  2. Nov 20, 2019
  3. Nov 19, 2019
    • George Joseph's avatar
      CI: Fix missing script block in jenkinsfiles · 2a6a2800
      George Joseph authored
      Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3
      (cherry picked from commit 95213b01)
      2a6a2800
    • George Joseph's avatar
      CI: Fix missing script block in jenkinsfiles · 4abb54b2
      George Joseph authored
      Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f
      (cherry picked from commit d60f23ec)
      (cherry picked from commit ce8a23fd)
      (cherry picked from commit f0d1ce50)
      4abb54b2
    • George Joseph's avatar
      CI: Increase clone depth and do better cleanup · e8e1314f
      George Joseph authored
      The original clone depth of 10 was causing the need to rebase
      changes whose parent was older than the 10 commits.  The clone
      depth has been increased to 100.
      
      Workspace cleanup was only happening for successful builds which
      wasn't enough to keep the 8G workspace in-memory drives on the
      docker slaves from filling up.  Now the workspaces are cleaned up
      after every build regardless of success/failure.  If you need to
      preserve builds temporarily, you can log into Jenkins/Manage
      Jenkins/Configure System and change the CLEANUP_WS_* environment
      variable for the job type you're troubleshooting to "FALSE".
      
      Change-Id: I0d7366e87cea714e5dbc9488caf718802fce75ca
      e8e1314f
    • Friendly Automation's avatar
    • Sean Bright's avatar
      res_pjsip_registrar: Fix uninitlized variable warning · a5fa0d66
      Sean Bright authored
      Fixes: error: ‘domain_name’ may be used uninitialized in this function
      
      Found with gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
      
      Change-Id: I44413b49ea1205aa25538142161deb73883c79e8
      a5fa0d66
    • George Joseph's avatar
    • Michael Cargile's avatar
      app_amd: Fixed timeout issue · 5bda4603
      Michael Cargile authored
      ASTERISK_28143 attempted to fix an issue where calls with no audio would never
      timeout. It did so by adding AST_FRAME_NULL as a frame type to process in its
      calculations. Unfortunately these frames seem to show up at irregular time
      intervals. This resulted in app_amd returning prematurely most of the time.
      
      * Removed AST_FRAME_NULL from the calculations
      * Added a check to see how much time has actually passed since app_amd began
      
      ASTERISK-28608
      
      Change-Id: I642a21b02d389b17e40ccd5357754b034c3daa42
      5bda4603
    • Frederic LE FOLL's avatar
      chan_dahdi: PRI span status may stay "Down, Active" after a short alarm · a68299f5
      Frederic LE FOLL authored
      Upon a short PRI disconnection, libpri may maintain Q.921 layer 'up' and
      may thus not send PRI_EVENT_DCHAN_DOWN / PRI_EVENT_DCHAN_UP events.
      If pri_event_alarm() clears DCHAN_UP status bit upon alarm detection
      and no Q.921 reconnection sequence occurs, chan_dahdi will keep
      seeing span status "Down" at the end of alarm.
      
      This patch modifies pri_event_alarm() in order to keep DCHAN_UP bit
      unchanged. libpri will send a PRI_EVENT_DCHAN_DOWN event if it detects
      a disconnection of Q.921 layer and this will clear DCHAN_UP if required.
      
      ASTERISK-28615
      
      Change-Id: Ibe27df4971fd4c82cc6850020bce4a8b2692c996
      a68299f5
  4. Nov 18, 2019
  5. Nov 15, 2019
    • Martin Tomec's avatar
      func_curl.c: Support custom http headers · d257a089
      Martin Tomec authored
      When user wants to send json data, the default Content-Type header
      is incorect (application/x-www-form-urlencoded). This patch allows
      to set any custom headers so the Content-Type header can be
      overriden. User can set multiple headers by multiple calls of
      curlopt(). This approach is not consistent with other parameters,
      but is more readable in dialplan than one call with multiple
      headers.
      
      ASTERISK-28613
      
      Change-Id: I4dd68c3f4e25362ef941d73a3861f58348dcfbf9
      d257a089
    • Joshua Colp's avatar
      parking: Fix case where we can't get the parker. · 807a70b7
      Joshua Colp authored
      ASTERISK-28616
      
      Change-Id: Iabe31ae38d01604284fcc5c2438d44e29a32ea4d
      807a70b7
  6. Nov 14, 2019
    • George Joseph's avatar
      stasis: Don't hold app_registry and session locks unnecessarily · 990a91b4
      George Joseph authored
      resource_events:stasis_app_message_handler() was locking the session,
      then attempting to determine if the app had debug enabled which
      locked the app_registry container.  res_stasis:__stasis_app_register
      was locking the app_registry container then calling app_update
      which caused app_handler (which locks the session) to run.
      The result was a deadlock.
      
      * Updated resource_events:stasis_app_message_handler() to determine
        if debug was set (which locks the app_registry) before obtaining the
        session lock.
      
      * Updated res_stasis:__stasis_app_register to release the app_registry
        container lock before calling app_update (which locks the sesison).
      
      ASTERISK-28423
      Reported by Ross Beer
      
      Change-Id: I58c69d08cb372852a63933608e4d6c3e456247b4
      990a91b4
    • Friendly Automation's avatar
  7. Nov 13, 2019
    • Joshua Colp's avatar
      parking: Use channel snapshot instead of channel. · e924c510
      Joshua Colp authored
      There exists a scenario where a thread can hold a lock on the
      channels container while trying to lock a bridge. At the same
      time another thread can hold the lock for said bridge while
      attempting to retrieve a channel. This causes a deadlock.
      
      This change fixes this scenario by retrieving a channel snapshot
      instead of a channel, as information present in the snapshot
      is all that is needed.
      
      ASTERISK-28616
      
      Change-Id: I68ceb1d62c7378addcd286e21be08a660a7cecf2
      e924c510
  8. Nov 12, 2019
    • Kevin Harwell's avatar
      res_pjsip_session: initialize pending's topology to endpoint's · 0e3b3978
      Kevin Harwell authored
      Found during some testing, there is a race condition between selecting an
      appropriate bridge type for a call versus the applying of media on the callee's
      session. In some instances a native bridge type would have been chosen, but
      due to the callee's media not yet being established at bridge compatibility
      check time the simple bridge type is picked instead.
      
      When using chan_pjsip this initiates a topology change event. The topologies
      are then compared for the two sessions. However, when the topology was created
      for the caller its streams are initialized to "inactive". This topology is then
      used as a base when creating the callee's topology, and streams. Soon after
      the caller's topology's stream(s) get updated based on the sdp (get set to
      sendrecv in the failing scenario).
      
      Now when the topology change event is raised, and the two topologies are
      compared, the comparison fails due to a stream state mismatch (sendrecv vs
      inactive). And since they differ a reinvite is sent out (to the caller in
      this case).
      
      This patch makes it such that when the caller's topology is initially created
      it gets created based on its configured endpoint's media topology. When the
      endpoint's topology is created its stream's state(s) are initialized to
      sendrecv instead of inactive. Subsequently, now when the callee's topology is
      created its topology streams are now initialized to sendrecv. Thus when the
      topology change event occurs due to the mentioned scenario the stream states
      match for the given sessions, and the reinvite is not sent unless due to some
      other valid mismatch.
      
      Note, this patch only changes one pending media state's creation point. It's
      possible other places *could* be changed, however for now it was deemed best
      to only alter what's here.
      
      Change-Id: I6ba3a6a75f64824a1b963044c37acbe951c389c7
      0e3b3978
  9. Nov 07, 2019
  10. Oct 31, 2019
  11. Oct 29, 2019
  12. Oct 24, 2019
  13. Oct 21, 2019
  14. Oct 18, 2019
    • Sean Bright's avatar
      utils.h: Set lower bound for thread stack size to PTHREAD_STACK_MIN · a4222614
      Sean Bright authored
      ASTERISK-28590 #close
      
      Change-Id: I51abce00c04d0a06550bda5205580705185b9c1c
      a4222614
    • Joshua Colp's avatar
    • George Joseph's avatar
      ExternalMedia: Change return object from ExternalMedia to Channel · d71d0f94
      George Joseph authored
      When we created the External Media addition to ARI we created an
      ExternalMedia object to be returned from the channels/externalMedia
      REST endpoint.  This object contained the channel object that was
      created plus local_address and local_port attributes (which are
      also in the Channel variables).  At the time, we thought that
      creating an ExternalMedia object would give us more flexibility
      in the future but as we created the sample speech to text
      application, we discovered that it doesn't work so well with ARI
      client libraries that a) don't have the ExternalMedia object
      defined and/or b) can't promote the embedded channel structure
      to a first-class Channel object.
      
      This change causes the channels/externalMedia REST endpoint to
      return a Channel object (like channels/create and channels/originate)
      instead of the ExternalMedia object.
      
      Change-Id: If280094debd35102cf21e0a31a5e0846fec14af9
      d71d0f94
Loading