Skip to content
Snippets Groups Projects
  1. Apr 19, 2017
  2. 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
  3. Apr 15, 2017
  4. Apr 14, 2017
  5. Apr 13, 2017
  6. Apr 12, 2017
  7. 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
  8. Apr 08, 2017
  9. Apr 07, 2017
  10. Apr 06, 2017
Loading