Skip to content
Snippets Groups Projects
  1. Jan 17, 2019
  2. Jan 14, 2019
  3. Jan 12, 2019
  4. Jan 11, 2019
    • Alexei Gradinari's avatar
      res_pjsip: add option to disable ContactStatus event when contact is updated · 4a8564ca
      Alexei Gradinari authored
      This patch adds a new PJSIP global configuration option
      'send_contact_status_on_update_registration' to be able to have the same
      performance benefits as version 16.
      
      By default old behavior, i.e. the ContactStatus event will be sent when a
      device refreshes its registration.
      
      Change-Id: I706adf7584e7077eb6bde6d9799ca408bc82ce46
      4a8564ca
    • mohitdhiman's avatar
      stasis/endpoint: Fix memory leak of channel_ids in ast_endpoint structure. · 84a7b4d3
      mohitdhiman authored
      During Bridging of two channels if masquerade operation is performed on a
      channel (clone channel) which was created with endpoint details
      (ast_channel_alloc_with_endpoint()) and the original channel which is created
      without endpoint details (ast_channel_alloc()) then both the channels must
      exchange their endpoint details or else after masquerade when clone channel
      is being destroyed the endpoint cleanup callbacks will be destroyed too and
      after call completion unique_id of original channel will still be there in
      ast_endpoint structure's channel_ids container.
      
      ASTERISK-28197
      
      Change-Id: Ied0451f378a3f2a36acc8c0984959a69895efa17
      84a7b4d3
  5. Jan 09, 2019
    • Diederik de Groot's avatar
      RAII: Change order or variables in clang version · 790626ec
      Diederik de Groot authored
      This prevents use-after-scope issues when unwinding the stack,
      which happens in reverse order. The varname variable needs to
      remain alive for the destruction to be able to access it.
      Issue was found using clang + address-sanitizer.
      
      ASTERISK-28232 #close
      
      Change-Id: I00811c34ae910836a5fb6d22304528aef92624db
      790626ec
  6. Jan 04, 2019
  7. Jan 02, 2019
  8. Dec 26, 2018
  9. Dec 24, 2018
    • George Joseph's avatar
      ast_coredumper: Refactor the pid determination process · a39dd504
      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
      a39dd504
  10. Dec 19, 2018
    • Alexei Gradinari's avatar
      RTP: reset DTMF last seqno/timestamp on RTP renegotiation · f9face36
      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
      f9face36
    • Richard Mudgett's avatar
      backtrace.c: Fix casting pointer to/from integral type. · a5515390
      Richard Mudgett authored
      The backtrace library bfd.h include file does not get the sizes of
      pointers and ints right on some platforms.  On my old test box the size
      of bfd_vma is 8 while the size of a pointer is 4.  gcc on the box
      complains of the integer casting to/from pointers size mismatch.
      
      * uintptr_t to the rescue by doing an appropriate two stage cast.
      
      Change-Id: Icb2621583f50c8728de08a3c824d95fe53cc45d0
      a5515390
    • Joshua C. Colp's avatar
  11. Dec 18, 2018
    • George Joseph's avatar
    • George Joseph's avatar
      app_voicemail: Don't delete mailbox state unless mailbox is deleted · e1370861
      George Joseph authored
      The free_user function was automatically deleting the stasis mailbox
      state but this only makes sense when the mailbox is actually
      deleted, not just the structure freed.  This was causing issues
      where leave_voicemail would publish the mwi message to stasis and
      delete the state before the message could be processed by
      res_pjsip_mwi.
      
      * Removed the delete of state from free_user().
      
      * Created a new free_user_final() function that both frees the data
        structure and deletes the state.  This function is only called
        during module load/unload where it's appropriate to delete the
        state.
      
      ASTERISK-28215
      
      Change-Id: I305e8b3c930e9ac41d901e5dc8a58fd7904d98dd
      e1370861
  12. Dec 17, 2018
  13. Dec 14, 2018
  14. Dec 13, 2018
  15. Dec 12, 2018
  16. Dec 11, 2018
Loading