Skip to content
Snippets Groups Projects
  1. Aug 10, 2016
  2. Aug 09, 2016
    • zuul's avatar
      26921a55
    • Mark Michelson's avatar
      res_rtp_asterisk: Cache local RTCP address. · 8fe9f1f7
      Mark Michelson authored
      When an RTCP packet is sent or received, res_rtp_asterisk generates a
      Stasis event that contains the RTCP report as well as the local and
      remote addresses that the report pertains to.
      
      The addresses are determined using ast_find_ourip(). For the local
      address, this will typically result in a lookup of the hostname of the
      server, and then a DNS lookup of that hostname. If you do not have the
      host in /etc/hosts, then this results in a full DNS lookup, which can
      potentially block for some time.
      
      This is especially problematic when performing RTCP reads, since those
      are done on the same thread responsible for reading and writing media.
      
      This patch addresses the issue by performing a lookup of the local
      address when RTCP is allocated. We then use this cached local address
      for the Stasis events when necessary.
      
      ASTERISK-26280 #close
      Reported by Mark Michelson
      
      Change-Id: I3dd61882c2e57036f09f0c390cf38f7c87e9b556
      8fe9f1f7
    • zuul's avatar
    • Corey Farrell's avatar
      Produce friendly error when AST_MODULE_SELF_SYM is not defined. · 827457dc
      Corey Farrell authored
      Modules must define AST_MODULE_SELF_SYM to be used as the name of a
      generated function.  This produces a friendly error when it's not
      defined.
      
      ASTERISK-26278 #close
      
      Change-Id: Ib9d35a08104529c516d636771365e02c6e77a45b
      827457dc
  3. Aug 08, 2016
    • Alexei Gradinari's avatar
      res_pjsip_mwi: fix unsolicited mwi blocks PJSIP stack · 403b6357
      Alexei Gradinari authored
      The PJSIP taskprocessors could be overflowed on startup
      if there are many (thousands) realtime endpoints
      configured with unsolicited mwi.
      The PJSIP stack could be totally unresponsive for a few minutes
      after boot completed.
      
      This patch creates a separate PJSIP serializers pool for mwi
      and makes unsolicited mwi use serializers from this pool.
      This patch also adds 2 new global options to tune taskprocessor
      alert levels: 'mwi_tps_queue_high' and 'mwi_tps_queue_low'.
      
      This patch also adds new global option 'mwi_disable_initial_unsolicited'
      to disable sending unsolicited mwi to all endpoints on startup.
      If disabled then unsolicited mwi will start processing
      on next endpoint's contact update.
      
      ASTERISK-26230 #close
      
      Change-Id: I4c8ecb82c249eb887930980a800c9f87f28f861a
      403b6357
  4. Aug 05, 2016
    • Alexei Gradinari's avatar
      app_voicemail: Add taskprocessor alert level options. · 9042ad40
      Alexei Gradinari authored
      On heavy loaded system with IMAP or DB storage,
      'app_voicemail' taskprocessor queue could reach 500 scheduled tasks.
      It could happen when the IMAP or DB server dies or is unreachable.
      It could happen on startup when there are many (thousands)
      realtime endpoints configured with unsolicited mwi.
      If the taskprocessor queue reaches the high water level
      then the alert is triggered and pjsip stops processing new requests
      until the queue reaches the low water level to clear the alert.
      
      This patch adds 2 new 'general' configuration options
      to tune taskprocessor alert levels:
      'tps_queue_high' - Taskprocessor high water alert trigger level.
      'tps_queue_low' - Taskprocessor low water clear alert level
      
      ASTERISK-26229 #close
      
      Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
      9042ad40
    • Joshua Colp's avatar
      res_pjsip_outbound_publish: Use a serializer shutdown group for unload. · 54869e48
      Joshua Colp authored
      This change replaces the custom unload process for the outbound
      publish module with the common serializer shutdown group.
      
      ASTERISK-25217 #close
      
      Change-Id: I280a0384d860c486202d87d2d674394cca77ffb6
      54869e48
  5. Aug 04, 2016
  6. Aug 03, 2016
  7. Aug 02, 2016
  8. Aug 01, 2016
  9. Jul 29, 2016
    • Mark Michelson's avatar
      Remove SILK payload mappings from Asterisk core. · 1cd79d6e
      Mark Michelson authored
      SILK is a bit of a hog when it comes to using up our limited number of
      dynamic payload types in the RTP engine. By freeing up four slots, it
      allows for other codecs to potentially take the place.
      
      Now, codec_silk.so will dynamically use the payload slots in the RTP
      engine when it loads.
      
      A better fix would be make RTP dynamic payload types actually
      dynamic. However, at this stage of Asterisk 14 development, this is a
      risky move that would be imprudent.
      
      Change-Id: I5774e09408f9a203db189529eabdc0d3f4c1e612
      1cd79d6e
    • zuul's avatar
      d462cb73
    • Joshua Colp's avatar
    • Joshua Colp's avatar
      astconfigparser: Handle case where line is simply a comment. · a7ae4844
      Joshua Colp authored
      Change-Id: I2dea5815363f4d787d709228a04f33baee383ef5
      a7ae4844
    • Joshua Colp's avatar
    • Corey Farrell's avatar
      pbx.c: Fix handling of '-' in extension name and callerid · 89a0a1eb
      Corey Farrell authored
      This adds a two strings to ast_exten.  name to go with exten and
      cidmatch_display to go with cidmatch.  The new fields contain input used
      to add the extension in the first place.  The existing fields now
      contain stripped input that excludes insignificant spaces and dashes.
      These stripped fields should always be used for comparisons.  The
      unstripped fields should normally be used for display, but displaying
      stripped values will not cause runtime errors.
      
      Note the actual string is only stored twice if it contains dashes.  If
      no dashes are found then both 'char *' fields point to the same memory.
      So this change has a minimum effect on memory usage.
      
      The existing functions ast_get_extension_name and
      ast_get_extension_cidmatch return unstripped values as they did before
      this change.  Other similar bugs likely still exist where unstripped
      extensions are saved outside pbx.c then passed back in.
      
      ASTERISK-26233 #close
      
      Change-Id: I6cd61ce57acc1570ca6cc14960c4c3b0a9eb837f
      89a0a1eb
  10. Jul 28, 2016
  11. Jul 27, 2016
    • David M. Lee's avatar
      Portably sscanf tv_usec · feb1a434
      David M. Lee authored
      In a timeval, tv_usec is defined as a suseconds_t, which could be
      different underlying types on different platforms. Instead of trying to
      scanf directly into the timeval, scanf into a long int, then copy that
      into the timeval.
      
      Change-Id: I29f22d049d3f7746b6c0cc23fbf4293bdaa5eb95
      feb1a434
    • Kevin Harwell's avatar
      rtp_engine: Failed assertion and wrong name given for codec · 1d364ac5
      Kevin Harwell authored
      Fixed an assert check that would trigger when the passed in value was negative.
      The negative value was being cast to an unsigned value. This resulted in the
      check failing.
      
      Also fixed another problem when loading formats in the engine. When setting the
      mime type the format's name was being passed in instead of the codec's name.
      
      Change-Id: I1a201cd419ba4d8e9a40d337e36b6fbe1737192c
      1d364ac5
    • David M. Lee's avatar
      Replace strdupa with more portable ast_strdupa · 8802e55c
      David M. Lee authored
      The strdupa function is a GNU extension, and not widely portable. We
      have an ast_strdupa function used within Asterisk which is preferred.
      I pulled the definition up from menuselect.c into the menuselect.h
      header file so it can be shared across menuselect.
      
      Change-Id: I9593c97f78386b47dc1e83201e80cb2f62b36c2e
      8802e55c
Loading