Skip to content
Snippets Groups Projects
  1. Jun 28, 2015
    • Matt Jordan's avatar
      Makefile: Remove coverage files on 'make clean' · 9b74dcb6
      Matt Jordan authored
      This patch updates a variety of Makefiles in Asterisk's build system to
      remove .gcda and .gcno files when 'make clean' is executed. These files
      are generated when '--enable-coverage' is passed to the Asterisk
      configure script.
      
      Change-Id: Ib70b41eea2ee2908885bff02e80faf9f40c84602
      9b74dcb6
  2. Jun 08, 2015
    • Corey Farrell's avatar
      Fix unsafe uses of ast_context pointers. · 53658a14
      Corey Farrell authored
      Although ast_context_find, ast_context_find_or_create and
      ast_context_destroy perform locking of the contexts table,
      any context pointer can become invalid at any time that the
      contexts table is unlocked. This change adds locking around
      all complete operations involving these functions.
      
      Places where ast_context_find was followed by ast_context_destroy
      have been replaced with calls ast_context_destroy_by_name.
      
      ASTERISK-25094 #close
      Reported by: Corey Farrell
      
      Change-Id: I1866b6787730c9c4f3f836b6133ffe9c820734fa
      53658a14
  3. May 05, 2015
  4. Apr 24, 2015
    • Kevin Harwell's avatar
      app_confbridge: Default the template option to a compatible default profile. · 019695b4
      Kevin Harwell authored
      Confbridge dynamic profiles did not have a default profile unless you
      explicitly used Set(CONFBRIDGE(bridge,template)=default_bridge). If a
      template was not set prior to the bridge being created then some
      options were left with no default values set. This patch makes it so
      the default templates are set to the default bridge and user profiles.
      
      ASTERISK-24749 #close
      Reported by: philippebolduc
      
      Change-Id: I1bd6e94b38701ac2112d842db68de63d46f60e0a
      019695b4
  5. Apr 09, 2015
  6. Apr 08, 2015
  7. Apr 07, 2015
  8. Mar 30, 2015
  9. Mar 28, 2015
  10. Mar 26, 2015
  11. Mar 22, 2015
  12. Mar 17, 2015
  13. Mar 14, 2015
  14. Mar 10, 2015
    • Matthew Jordan's avatar
      app_voicemail: Fix crash with IMAP backends when greetings aren't present · 6c61b4e3
      Matthew Jordan authored
      When an IMAP backend is in use and greetings are set to be used, but aren't
      present for a user in their IMAP folder, Asterisk will crash. This occurs
      due to the mailstream being set to the 'greetings' folder and being left
      in that particular state, regardless of the success/failure of the attempt
      to access the folder the mailstream points to. Later access of the mailstream
      assumes that it points to the 'INBOX' (or some other folder), resulting in
      either a crash (if the greetings folder didn't exist and the mailstream is
      invalid) or an inability to read messages from the 'INBOX' folder.
      
      This patch restores the mailstream to its correct state after accessing the
      greetings. This fixes the crash, and sets the mailstream to the state that
      VoiceMailMain expects.
      
      Note that while ASTERISK-23390 also contained a patch for this issue, the
      patch on ASTERISK-24786 is the one being merged here.
      
      Review: https://reviewboard.asterisk.org/r/4459/
      
      ASTERISK-23390 #close
      Reported by: Ben Smithurst
      
      ASTERISK-24786 #close
      Reported by: Graham Barnett
      Tested by: Graham Barnett
      patches:
        app_voicemail.c.patch.SIGSEGV3rev2 uploaded by Graham Barnett (License 6685)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6c61b4e3
  15. Mar 05, 2015
  16. Feb 26, 2015
  17. Feb 21, 2015
    • Matthew Jordan's avatar
      apps/app_voicemail: Demote an ERROR message to a WARNING message · 37df042f
      Matthew Jordan authored
      When using IMAP voicemail with FreePBX, you will often get ERROR messages
      complaining about not being able to find a mailbox. This is due to how FreePBX
      handles voicemail mailboxes. Unfortunately, app_voicemail has to consider this
      a configuration error, as in any other system it would be indicative of
      someone misconfiguring their system.
      
      Regardless, a misconfiguration is a WARNING, and not an ERROR. This patch
      demotes the message so that system administrators can hopefully reduce some
      of the noise in their log files.
      
      Note that in the original patch this was made into a NOTICE, but that's a
      too forgiving.
      
      ASTERISK-24790 #close
      Reported by: Graham Barnett
      patches:
        app_voicemail.c.patch_noise uploaded by Graham Barnett (License 6685)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      37df042f
  18. Feb 20, 2015
    • Matthew Jordan's avatar
      apps/app_voicemail: Fix IMAP header compatibility issue with Microsoft Exchange · 991f9790
      Matthew Jordan authored
      When interfacing with Microsoft Exchange, custom headers will be returned as
      all lower case. Currently, the IMAP header code will fail to parse the returned
      custom headers, as it will be performing a case sensitive comparison. This can
      cause playback of messages to fail, as needed information - such as origtime -
      will not be present.
      
      This patch updates app_voicemail's header parsing code to perform a case
      insensitive lookup for the requested custom headers. Since the headers are
      specific to Asterisk, e.g., 'x-asterisk-vm-orig-time', and headers should be
      unique in an IMAP message, this should cause no issues with other systems.
      
      ASTERISK-24787 #close
      Reported by: Graham Barnett
      patches:
        app_voicemail.c.patch_MSExchange uploaded by Graham Barnett (License 6685)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      991f9790
  19. Feb 15, 2015
    • Matthew Jordan's avatar
      apps/app_mixmonitor: Move Test Event for MIXMONITOR_END to after it finishes · a1ed030c
      Matthew Jordan authored
      The Test Event for MIXMONITOR_END - which signals that a MixMonitor has
      completed - technically fired before the filestream was closed. If a test
      used this to trigger a condition to verify that the file was written, it
      could result in a race condition where the file size would not be what the
      test expected.
      
      Luckily, no tests were using this (although they should have been). Since the
      test event needed to be moved after the point where the MixMonitor autochan has
      been destroyed, the test event no longer emits the channel name. Luckily,
      nothing needs it.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@431788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a1ed030c
  20. Jan 27, 2015
  21. Jan 23, 2015
  22. Jan 22, 2015
    • Matthew Jordan's avatar
      apps/app_voicemail: Trigger MWI notification with MixMonitor m() option · 189bbe46
      Matthew Jordan authored
      The MixMonitor m() option allows a recording to be pushed to a specific
      voicemail mailbox. If the message is delivered to the mailbox's INBOX, however,
      no MWI notification is currently raised.
      
      This patch corrects the issue by properly calling notify_new_state from the
      msg_create_from_file function. This will cause MWI to be triggered if the
      message was placed in the mailbox's INBOX.
      
      ASTERISK-24709 #close
      Reported by: Gareth Palmer
      patches:
        app_voicemail-430919.patch uploaded by Gareth Palmer (License 5169)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@430920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      189bbe46
  23. Jan 20, 2015
    • Matthew Jordan's avatar
      app_voicemail: Temp message left after review/hangup with ODBC/IMAP backend · ee3290a7
      Matthew Jordan authored
      When using ODBC or IMAP storage, temporary files created on the file system
      must be disposed of using the DISPOSE macro. The DELETE macro will map to a
      deletion function for the backend storage, but does not clean up any local
      files created as a result of the operation.
      
      When using voicemail with the operator and review options enabled, pressing
      0 to enter the menu, followed by 1 to save the message, followed by any
      other DTMF press to delete the message, will result in the temporary file
      lingering on the file system.
      
      This patch properly calls DISPOSE after the DELETE. This causes the local
      file to be disposed of.
      
      ASTERISK-24288 #close
      Reported by: LEI FU
      patches:
        voicemail_odbc_review_fix.diff uploaded by LEI FU (License 6640)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@430795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ee3290a7
  24. Jan 13, 2015
    • Richard Mudgett's avatar
      app_macro: Don't restore the calling location on a channel redirect. · 2ecff992
      Richard Mudgett authored
      v11: If a channel redirect to a macro exten of a macro that is active
      happens, the redirect location doesn't get executed.  Instead the original
      macro location is restored and gets reexecuted.
      
      v13: An additional effect happens if a parked call times out to an
      extension in the macro that parked the call then the macro is reexecuted
      instead of the expected park return location.
      
      * Made not restore the macro calling location on an
      AST_SOFTHANGUP_ASYNCGOTO.
      
      * Increased the locked channel range when setting up the macro execution
      environment to cover things that should be done while the channel is
      locked.
      
      * Removed unnecessary NULL tests before calling ast_free() in
      _macro_exec().
      
      ASTERISK-23850 #close
      Reported by: Andrew Nagy
      
      Review: https://reviewboard.asterisk.org/r/4292/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@430564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      2ecff992
  25. Dec 17, 2014
    • Walter Doekes's avatar
      Fix printf problems with high ascii characters after r413586 (1.8). · 822abf9e
      Walter Doekes authored
      In r413586 (1.8) various casts were added to silence gcc 4.10 warnings.
      Those fixes included things like:
      
          -out += sprintf(out, "%%%02X", (unsigned char) *ptr);
          +out += sprintf(out, "%%%02X", (unsigned) *ptr);
      
      That works for low ascii characters, but for the high range that yields
      e.g. FFFFFFC3 when C3 is expected.
      
      This changeset:
      - fixes those casts to use the 'hh' unsigned char modifier instead
      - consistently uses %02x instead of %2.2x (or other non-standard usage)
      - adds a few 'h' modifiers in various places
      - fixes a 'replcaes' typo
      - dev/urandon typo (in 13+ patch)
      
      Review: https://reviewboard.asterisk.org/r/4263/
      
      ASTERISK-24619 #close
      Reported by: Stefan27 (on IRC)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@429673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      822abf9e
  26. Dec 06, 2014
  27. Dec 03, 2014
    • Matthew Jordan's avatar
      apps/app_voicemail: Fix crash with IMAP when streams are opened simultaneously · 4a054379
      Matthew Jordan authored
      The UW IMAP library is instrinsically not thread-safe, and relies upon higher
      level applications to guarantee thread safety. For the most part, this is
      provided by the vms object, which provides locking for individual streams.
      Unfortunately, this is not sufficient for calls to mail_open which create the
      IMAP stream. mail_open can, on some systems, call into a UW IMAP specific
      function for determining the address of a system based on a hostname,
      ip_nametoaddr.
      
      In the ip6_unix implementation of this function, static variables are used
      to hold parsing buffers. This can cause a crash if multiple threads attempt
      to convert a hostname to an address at the same time. Locking on a single
      mail stream is not sufficient to prevent simultaneous access to these static
      variables.
      
      In the IMAP library, this function can be called from the mail_open and
      imap_status functions. As the imap_status function is not used by
      app_voicemail, locking on access to mail_open is sufficient to prevent
      any mangling of the buffers.
      
      Review: https://reviewboard.asterisk.org/r/4188/
      
      ASTERISK-24516 #close
      Reported by: David Duncan Ross Palmer
      Tested by: David Duncan Ross Palmer
      patches:
        ASTERISK-24516.diff uploaded by David Duncan Ross Palmer (License 6660)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@428863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4a054379
  28. Dec 01, 2014
  29. Nov 20, 2014
    • Kevin Harwell's avatar
      AST-2014-017 - app_confbridge: permission escalation/ class authorization. · 060ced4b
      Kevin Harwell authored
      Confbridge dialplan function permission escalation via AMI and inappropriate
      class authorization on the ConfbridgeStartRecord action. The CONFBRIDGE dialplan
      function when executed from an external protocol (for instance AMI), could
      result in a privilege escalation. Also, the AMI action “ConfbridgeStartRecord”
      could also be used to execute arbitrary system commands without first checking
      for system access.
      
      Asterisk now inhibits the CONFBRIDGE function from being executed from an
      external interface if the live_dangerously option is set to no.  Also, the
      “ConfbridgeStartRecord” AMI action is now only allowed to execute under a
      user with system level access.
      
      ASTERISK-24490
      Reported by: Gareth Palmer
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@428332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      060ced4b
  30. Nov 17, 2014
    • Matthew Jordan's avatar
      apps/app_confbridge: Ensure 'normal' users hear message when last marked leaves · f20ddb12
      Matthew Jordan authored
      When r428077 was made for ASTERISK-24522, it failed to take into account users
      who are neither wait_marked nor end_marked. These users are *also* supposed to
      hear the 'leader has left the conference' message. Granted, this behaviour is
      a bit odd; however, that is how it used to work... and behaviour changes are
      not good.
      
      This patch ensures that if there are any 'normal' users present when the last
      marked user leaves the conference, the message will still be played to them.
      
      Note that this regression was caught by the Asterisk Test Suite's
      confbridge_nominal test, which has a quirky combination of users.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@428113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f20ddb12
    • Matthew Jordan's avatar
      app_confbridge: Don't play leader leaving prompt if no one will hear it · 10d242b7
      Matthew Jordan authored
      Consider the following:
      - A marked user in a conference
      - One or more end_marked only users in the conference
      
      When the marked users leaves, we will be in the conf_state_multi_marked state.
      This currently will traverse the users, kicking out any who have the end_marked
      flags. When they are kicked, a full ast_bridge_remove is immediately called on
      the channels. At this time, we also unilaterally set the need_prompt flag.
      
      When the need_prompt flag is set, we then playback a sound to the bridge
      informing everyone that the leader has left; however, no one is left in the
      bridge. This causes some odd behaviour for the end_marked users - they are
      stuck waiting for the bridge to be unlocked. This results in them waiting for
      5 or 6 seconds of dead air before hearing that they've been kicked.
      
      Unfortunately, we do have to keep the bridge locked while we're playing back
      the 'leader-has-left' prompt. If there are any wait_marked users in the
      conference, this behaviour can't be easily changed - but we do make the case
      of the end_marked users better with this patch.
      
      Review: https://reviewboard.asterisk.org/r/4184/
      
      ASTERISK-24522 #close
      Reported by: Matt Jordan
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@428077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      10d242b7
  31. Nov 14, 2014
  32. Nov 03, 2014
  33. Nov 02, 2014
  34. Oct 30, 2014
  35. Oct 28, 2014
Loading