Skip to content
Snippets Groups Projects
  1. Apr 17, 2017
    • Sean Bright's avatar
      format_wav: Read 16khz wav samples properly · 6c0ab9af
      Sean Bright authored
      When opening a PCM wave file for reading, we aren't tracking the
      frequency of the opened file, so we treat 16khz files as 8khz and do
      half reads.
      
      This patch also cleans up some of the data types and an unnecessarily
      complex `if` expression.
      
      ASTERISK-26613 #close
      Reported by: Vitaly K
      
      Change-Id: I05f8b263058dc573ea8ffe0c62e7964506e11815
      6c0ab9af
  2. Apr 13, 2017
  3. Apr 12, 2017
  4. Apr 11, 2017
    • Torrey Searle's avatar
      strings.h: Avoid overflows in the string hash functions · 79012252
      Torrey Searle authored
      On 2's compliment machines abs(INT_MIN) behavior is undefined and
      results in a negative value still being returnd.  This results in
      negative hash codes that can result in crashes.
      
      ASTERISK-26528 #close
      
      Change-Id: Idff550145ca2133792a61a2e212b4a3e82c6517b
      79012252
    • 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
    • Richard Mudgett's avatar
      tcptls.c: Cleanup TCP/TLS listener thread on abnormal exit. · d76bc056
      Richard Mudgett authored
      Temporarily running out of file descriptors should not terminate the
      listener thread.  Otherwise, when there becomes more file descriptors
      available, nothing is listening.
      
      * Added EMFILE exception to abnormal thread exit.
      
      * Added an abnormal TCP/TLS listener exit error message.
      
      * Closed the TCP/TLS listener socket on abnormal exit so Asterisk does not
      appear dead if something tries to connect to the socket.
      
      ASTERISK-26903 #close
      
      Change-Id: I10f2f784065136277f271159f0925927194581b5
      d76bc056
  5. Apr 08, 2017
  6. Apr 07, 2017
  7. Apr 06, 2017
  8. 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
  9. 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
Loading