Skip to content
Snippets Groups Projects
  1. Jun 05, 2015
    • ibercom's avatar
      CLI: Cosmetic issue - core show uptime · d463bac5
      ibercom authored
      Show uptime information ends with an unnecessary space.
      
      Now NEEDCOMMA is better defined.
      
      Change-Id: I11b360504a0703309ff51772ff8f672287f3c5a1
      d463bac5
  2. Jun 04, 2015
  3. Jun 03, 2015
    • Mark Michelson's avatar
      res_pjsip: Prevent access of NULL channels. · 92ccffd9
      Mark Michelson authored
      It is possible to receive incoming requests or responses after the channel
      on an ast_sip_session has been destroyed and NULLed out. Handlers of these
      sorts of requests or responses need to be prepared for the possibility
      that the channel is NULL or else they could cause a crash.
      
      While several places have been amended to deal with NULL channels, there
      were still a couple of places that needed updating.
      
      res_pjsip_dtmf_info.c: When handling incoming INFO requests, we need to
      return early if there is no channel on the session.
      
      res_pjsip_session.c: When handling a 302 response, we need to stop the
      redirecting attempt if there is no channel on the session.
      
      ASTERISK-25148 #close
      reported by Mark Michelson
      
      Change-Id: Id1a75ffc3d0eaa168b0b28188fb54d6cf9fc47a9
      92ccffd9
    • George Joseph's avatar
      res_pjsip/location: Fix ref leak in contact_apply_handler · d355ee7f
      George Joseph authored
      contact_apply_handler calls ast_res_pjsip_find_or_create_contact_status
      to force the creation of a contact_status object whenever a new
      contact is added but it didn't unref the returned object.
      
      Added an ao2_cleanup(status) to plug the leak.
      
      ASTERISK-25141
      
      Change-Id: Icc1401cae142855a1abc86ab5179dfb3ee861c40
      Reported-by: Corey Farrell
      d355ee7f
  4. Jun 02, 2015
  5. Jun 01, 2015
  6. May 31, 2015
    • Ivan Poddubny's avatar
      Fix buffer overflow in slin sample frames generation. · 0a5f8c0d
      Ivan Poddubny authored
      The length of frames retured by sample functions was twice as large as
      real, what caused global buffer overflow caught by AddressSanitizer.
      
      ASTERISK-24717 #close
      Reported by: Badalian Vyacheslav
      
      Change-Id: Iec2fe682aef13e556684912f906bedf7c18229c6
      0a5f8c0d
  7. May 29, 2015
  8. May 27, 2015
    • George Joseph's avatar
      endpoint/stasis: Eliminate duplicate events on endpoint status change · 6fca75bb
      George Joseph authored
      
      When an endpoint was created, it's messages were being forwarded to
      both the tech endpoint topic and the all endpoints topic.  Since
      the tech topic was also forwarded to all, this was resulting in
      duplicate messages whenever an endpoint published.  This patch
      causes the endpoint to only forward to the tech topic and lets
      the tech topic forward to all.
      
      To accomplish this, the existing stasis_cp_single_create function
      (which both creates and forwards) was cloned and split into 2
      functions, one that creates the topic and one that sets up the
      forwarding.  This allows endpoint_internal_create to create
      the topic from the endpoint_all cache without forwarding it there,
      then allows it to do the forward to the tech's topic.
      
      ASTERISK-25137 #close
      Reported-by: Vitezslav Novy
      ASTERISK-25116 #close
      Reported-by: default avatarGeorge Joseph <george.joseph@fairview5.com>
      Tested-by: default avatarGeorge Joseph <george.joseph@fairview5.com>
      
      Change-Id: I26d7d4926a0861748fd3bdffe316b75b549a801c
      6fca75bb
    • Mark Michelson's avatar
      res_sorcery_memory_cache: Add support for refreshing stale objects. · 2e54e722
      Mark Michelson authored
      This change introduces a check of object_lifetime_stale when retrieving
      cached objects. If the amount of time the object has been in the cache
      exceeds the lifetime, then a task is scheduled to update the cached
      object based on an object retrieved from other sorcery wizards instead.
      
      To prevent the cached object from being retrieved during a refresh,
      thread-local storage is used to mark the thread as being a stale object
      update. This results in the cache returning no object, leading to
      sorcery querying other wizards for the object instead.
      
      A test has been added for stale objects as well. This test ensures that
      stale objects are retrieved the same as freshly-cached objects. The test
      also ensures that after an object is stale, changes in the backend are
      reflected in the cache, to include if the object has been deleted from
      the backend.
      
      ASTERISK-25067
      Reported by Matt Jordan
      
      Change-Id: I9bd7c049adf6939bfe2899f393c2bfbbf412d217
      2e54e722
  9. May 26, 2015
  10. May 25, 2015
    • Ivan Poddubny's avatar
      Astobj2: Correctly treat hash_fn returning INT_MIN · 23a798fe
      Ivan Poddubny authored
      The code in astobj2_hash.c wrongly assumed that abs(int) is always > 0.
      However, abs(INT_MIN) = INT_MIN and is still negative, as well as
      abs(INT_MIN) % num_buckets, and as a result this led to a crash.
      
      One way to trigger the bug is using host=::80 or 0.0.0.128 in peer
      configuration section in chan_sip or chan_iax.
      
      This patch takes the remainder before applying abs, so that bucket
      number is always in range.
      
      ASTERISK-25100 #close
      Reported by: Mark Petersen
      
      Change-Id: Id6981400ad526f47e10bcf7b847b62bd2785e899
      23a798fe
  11. May 24, 2015
  12. May 23, 2015
    • Ivan Poddubny's avatar
      res_pjsip_transport_websocket: Fix crash on receiving large SIP packets · 70d54ab6
      Ivan Poddubny authored
      Incoming SIP packets larger than PJSIP_MAX_PKT_LEN were themselves
      truncated before passing to pjsip_tpmgr_receive_packet, but the length
      was passed unaltered, thus causing memory corruption and segfault.
      
      ASTERISK-25122 #close
      
      Change-Id: I608a6b6b7f229eacc33a0a7d771d18e27e5b08ab
      70d54ab6
    • Corey Farrell's avatar
      Stasis: Fix unsafe use of stasis_unsubscribe in modules. · 50044fdc
      Corey Farrell authored
      Many uses of stasis_unsubscribe in modules can be reached through unload.
      These have been switched to stasis_unsubscribe_and_join.
      
      Some subscription callbacks do nothing, for these I've created a noop
      callback function in stasis.c.  This is used by some modules that monitor
      MWI topics in order to enable cache, since the callback does not become
      invalid after dlclose it is safe to use stasis_unsubscribe on these, even
      during module unload.
      
      ASTERISK-25121 #close
      
      Change-Id: Ifc2549fbd8eef7d703c222978e8f452e2972189c
      50044fdc
  13. May 22, 2015
Loading