Skip to content
Snippets Groups Projects
  1. Apr 11, 2017
    • Richard Mudgett's avatar
      res_rtp_asterisk.c: Add stun_blacklist option · 7312cbe8
      Richard Mudgett authored
      Added the stun_blacklist option to rtp.conf.  Some multihomed servers have
      IP interfaces that cannot reach the STUN server specified by stunaddr.
      Blacklist those interface subnets from trying to send a STUN packet to
      find the external IP address.  Attempting to send the STUN packet
      needlessly delays processing incoming and outgoing SIP INVITEs because we
      will wait for a response that can never come until we give up on the
      response.  Multiple subnets may be listed.
      
      ASTERISK-26890 #close
      
      Change-Id: I3ff4f729e787f00c3e6e670fe6435acce38be342
      7312cbe8
    • Richard Mudgett's avatar
      stun.c: Fix ast_stun_request() erratic timeout. · 7c37365f
      Richard Mudgett authored
      If ast_stun_request() receives packets other than a STUN response then we
      could conceivably never exit if we continue to receive packets with less
      than three seconds between them.
      
      * Fix poll timeout to keep track of the time when we sent the STUN
      request.  We will now send a STUN request every three seconds regardless
      of how many other packets we receive while waiting for a response until we
      have completed three STUN request transmission cycles.
      
      Change-Id: Ib606cb08585e06eb50877f67b8d3bd385a85c266
      7c37365f
    • Richard Mudgett's avatar
      sorcery.c: Speed up ast_sorcery_retrieve_by_id() · 8d323c74
      Richard Mudgett authored
      Return early if ast_sorcery_retrieve_by_id() is not passed an id to find.
      Also eliminated the RAII_VAR() usage in the function.
      
      Change-Id: I871dbe162a301b5ced8b4393cec27180c7c6b218
      8d323c74
    • Richard Mudgett's avatar
      res_pjsip: Fix pointer use after unref. · 5b4e2ec2
      Richard Mudgett authored
      Change-Id: I4b6e1b0070563eeaee223cb58326f1b962ed5bc1
      5b4e2ec2
    • Richard Mudgett's avatar
      res_pjsip_sdp_rtp.c: Don't use deprecated transport struct member. · 6f793ac1
      Richard Mudgett authored
      * create_rtp(): Eliminate use of deprecated transport struct member.  That
      member and several others in the transport structure were deprecated
      because of an infinite loop created when using realtime configuration.
      See 2451d4e4
      
      ASTERISK-26851
      
      Change-Id: I0533aa13c9ce3c6cc394e0fd2b5bf1cd1b2ef3bc
      6f793ac1
  2. Apr 08, 2017
  3. Apr 07, 2017
  4. Apr 06, 2017
  5. Apr 05, 2017
    • George Joseph's avatar
      pjproject_bundled: Add 3 upstream patches · 01e9eaf3
      George Joseph authored
      0035-r5572-svn-backport-dialog-transaction-deadlock.patch
      0036-r5573-svn-backport-ua-pjsua-transaction-deadlock.patch
      0037-r5576-svn-backport-session-timer-crash.patch
      
      Also removed the progress bar from wget download to stdout.
      
      ASTERISK-26905 #close
      Reported-by: Ross Beer
      
      Change-Id: I268fb3cf71a3bb24283ff0d24bd8b03239d81256
      01e9eaf3
    • Troy Bowman's avatar
      app_queue: Log reason for PAUSEALL/UNPAUSEALL · fac5115c
      Troy Bowman authored
      We needed the reason for our reporting when agents pause/unpause all of
      their queues at once.  This is a small, simple patch that adds a reason
      for PAUSEALL and UNPAUSEALL.  I have been using it in production for years.
      
      ASTERISK-26920 #close
      
      Change-Id: Ifb3f0d1a0abd5194253d9794023546e1395baf3d
      fac5115c
    • George Joseph's avatar
      sample_config: Add samples for pubsub to pjsip.conf.sample · 40e9d5e8
      George Joseph authored
      Added:
       * outbound-publish
       * resource_list
       * inbound-publication
       * asterisk-publication
      
      Change-Id: I65043a896c35483f30a92d30b5b118359af7ba5a
      40e9d5e8
  6. Apr 04, 2017
    • Richard Mudgett's avatar
      res_pjsip_sdp_rtp.c: Don't alter global addr variable. · f2ee8ac2
      Richard Mudgett authored
      * create_rtp(): Fix unexpected alteration of global address_rtp if a
      transport is bound to an address.
      
      * create_rtp(): Fix use of uninitialized memory if the endpoint RTP media
      address is invalid or the transport has an invalid address.
      
      ASTERISK-26851
      
      Change-Id: Icde42e65164a88913cb5c2601b285eebcff397b7
      f2ee8ac2
    • Corey Farrell's avatar
      CDR: Protect from data overflow in ast_cdr_setuserfield. · 380973cc
      Corey Farrell authored
      ast_cdr_setuserfield wrote to a fixed length field using strcpy. This could
      result in a buffer overrun when called from chan_sip or func_cdr. This patch
      adds a maximum bytes written to the field by using ast_copy_string instead.
      
      ASTERISK-26897 #close
      patches:
        0001-CDR-Protect-from-data-overflow-in-ast_cdr_setuserfie.patch submitted
          by Corey Farrell (license #5909)
      
      Change-Id: Ib23ca77e9b9e2803a450e1206af45df2d2fdf65c
      380973cc
  7. Apr 03, 2017
    • Daniel Journo's avatar
      Unused realtime MOH classes not purged on 'moh reload' · 6c3ae397
      Daniel Journo authored
      Purge Realtime MOH classes on 'moh reload' even when musiconhold.conf
      hasn't changed.
      
      ASTERISK-25974 #close
      
      Change-Id: I42c78ea76528473a656f204595956c9eedcf3246
      6c3ae397
    • Corey Farrell's avatar
      core: Improve/simplify handling of required headers. · 8e360641
      Corey Farrell authored
      * Report failures if configure finds a required header is missing.
      * Deduplicate includes between asterisk.h, astmm.h and compat.h.
      * Unconditionally include headers in compat.h if required elsewhere.
      
      Change-Id: Ie67d0185ca71fbfb81c9bdfaebe46a49e3c56dc5
      8e360641
    • Richard Mudgett's avatar
      res_pjsip: Fix transport ref leak. · a889621b
      Richard Mudgett authored
      We were leaking a transport ref in multihomed_on_rx_message() which
      resulted in the FRACK about excessive ref counts.
      
      ASTERISK-26916 #close
      
      Change-Id: I7a96658a9614a060565bb9ad51cb1c9c11ee145f
      a889621b
    • Mark Michelson's avatar
    • Alexander Traud's avatar
      chan_sip: Session Timers required but refused wrongly. · 4fc22c76
      Alexander Traud authored
      SIP user-agents indicate which protocol extensions are allowed in headers
      like Supported and Required. Such protocol extensions are Session Timers
      (RFC 4028) for example. Session Timers are supported since Mantis-10665.
      Since ASTERISK-21721, not only the first but multiple Supported/Required
      headers in a message are parsed. In that change, an existing variable was
      re-used within a newly added do-loop. Currently, at the end of that loop,
      that variable is an empty string always. Previously, that variable was used
      within log output. However, the log output was not changed.
      
      ASTERISK-26915 #close
      
      Change-Id: I09315f31b4d78fb214bb2a9fb6c0f5e143eae990
      4fc22c76
  8. Apr 01, 2017
  9. Mar 31, 2017
  10. Mar 30, 2017
    • zuul's avatar
    • Sean Bright's avatar
      cdr_pgsql: Fix buffer overflow calling libpq · c537f994
      Sean Bright authored
      Implement the same buffer size checking done in cel_pgsql.
      
      ASTERISK-26896 #close
      Reported by: twisted
      
      Change-Id: Iaacfa1f1de7cb1e9414d121850d2d8c2888f3f48
      c537f994
    • Walter Doekes's avatar
      build: Fix deb build issues with fakeroot · a7d94f50
      Walter Doekes authored
      If DESTDIR is set, don't call ldconfig. Assume that DESTDIR is used to
      create a binary archive. The ldconfig call should be delegated to the
      archive postinst script. This fixes the case where fakeroot wraps 'make
      install' causing $EUID to be 0 even though it doesn't have permission to
      call ldconfig.
      
      The previous logic in configure.ac to detect and correct libdir
      has been removed as it was not completely accurate.  CentOS 64-bit
      users should again specifiy --libdir=/usr/lib64 when configuring
      to prevent install to /usr/lib.
      
      Updated Makefile:check-old-libdir to check for orphans in
      lib64 when installing to lib as well as orphans in lib when installing
      to lib64.
      
      Updated Makefile and main/Makefile uninstall targets to remove the
      orphans using the new logic.
      
      ASTERISK-26705
      
      Change-Id: I51739d4a03e60bff38be719b8d2ead0007afdd51
      a7d94f50
    • zuul's avatar
    • Joshua Colp's avatar
      sdp: Add support for setting connection address and clean up state. · f3290d6b
      Joshua Colp authored
      This change cleans up state management for media streams by moving
      RTP instances into their own session structure and adding additional
      details that are not relevant to the core (such as connection address).
      These can live either in the local capabilities or joint capabilities.
      
      The ability to set explicit connection address information for
      the purposes of direct media and NAT has also been added at the
      global and stream specific level.
      
      ASTERISK-26900
      
      Change-Id: If7e5307239a9534420732de11c451a2705b6b681
      f3290d6b
Loading