Skip to content
Snippets Groups Projects
  1. Jan 04, 2019
    • Alexei Gradinari's avatar
      RTP: reset DTMF last seqno/timestamp on RTP renegotiation · f662a26e
      Alexei Gradinari authored
      The remote side may start a new stream when renegotiating RTP.
      Need to reset the DTMF last sequence number and the timestamp
      of the last END packet on RTP renegotiation.
      
      If the new time stamp is lower then the timestamp of the last DTMF END packet
      the asterisk drops all DTMF frames as out of order.
      
      This bug was caught using Cisco ip-phone SPA5XX and codec g722.
      On SIP session update the SPA50X resets stream and a new timestamp is twice
      smaller then the previous.
      
      ASTERISK-28162 #close
      
      Change-Id: Ic72b4497e74d801b27a635559c1cf29c16c95254
      f662a26e
    • Joshua C. Colp's avatar
  2. Jan 03, 2019
  3. Jan 02, 2019
  4. Dec 26, 2018
  5. Dec 24, 2018
    • George Joseph's avatar
      ast_coredumper: Refactor the pid determination process · 809e8362
      George Joseph authored
      In order to get a dump of the running process, we need to find the
      pid of the main asterisk process.  This can be tricky if there are
      also instances of "asterisk -r" running or if an alternate location
      for asterisk.conf was specified on the command line with the -C
      option that also specified an alternation location for the pid file.
      
      So now...
      
      1. We find the asterisk executable with "which" or the --asterisk-bin
         command line option.
      2. If there's only 1 process with an executable path that matches,
         we use that pid.  If not...
      3. We try "<asterisk-bin> -rx 'core show settings'" and parse the
         output to find the pidfile, then read that for the pid.  If that
         didn't work...
      4. We get a list of all the pids matching <asterisk-bin> and look
         in /proc/<pid>/cmdline for a -C argument and retry the "core show
         settings" using the same -C option.  We can't parse the output
         of "ps" to get the -C path because it may contain spaces.  The
         contents of /proc/<pid>/cmdline are delimited by NULLs.  For BSDs
         we may have to mount /proc first. :(
      
      ASTERISK-28221
      Reported by: Andrew Nagy
      
      Change-Id: I8aa1f3f912f949df2b5348908803c636bde1d57c
      809e8362
  6. Dec 19, 2018
  7. Dec 18, 2018
  8. Dec 17, 2018
  9. Dec 14, 2018
  10. Dec 13, 2018
  11. Dec 12, 2018
  12. Dec 11, 2018
  13. Dec 10, 2018
  14. Dec 07, 2018
    • Sean Bright's avatar
      utils: Wrap socket() and pipe() to reduce syscalls · 6d69fb3c
      Sean Bright authored
      Some platforms provide an implementation of socket() and pipe2() that allow the
      caller to specify that the resulting file descriptors should be non-blocking.
      
      Using these allows us to potentially elide 3 calls into 1 by avoiding extraneous
      calls to fcntl() to set the O_NONBLOCK flag afterwards.
      
      In passing, change ast_alertpipe_init() to use pipe2() directly instead of the
      wrapper if it is available.
      
      Change-Id: I3ebe654fb549587537161506c6c950f4ab298bb0
      6d69fb3c
Loading