Skip to content
Snippets Groups Projects
  1. May 11, 2020
    • traud's avatar
      app_osplookup: Avoid a format truncation. · 527e4f65
      traud authored
      Ensure that output buffers for the osp_convert_inout
      function have sufficient space for additional data
      such as brackets and ports.
      
      ASTERISK-28804
      
      Change-Id: Ie54c8241ff0cc653910539c2db00ff2a4869750b
      527e4f65
  2. May 06, 2020
  3. Apr 30, 2020
  4. Apr 24, 2020
    • Alexander Traud's avatar
      app_fax: SpanDSP headers do not use ast_malloc; ignore that. · 26b8c999
      Alexander Traud authored
      Since Asterisk 14, app_fax did not compile at all because Asterisk
      requires that not malloc but ast_malloc is used everywhere. However,
      the system headers of SpanDSP use malloc. Because we cannot (and do
      not need to) change system headers, let us ignore this.
      
      ASTERISK-28848
      
      Change-Id: I31f7a6b92a07032c5cef1c16b8901b107fe35546
      26b8c999
  5. Apr 20, 2020
    • Joshua C. Colp's avatar
      confbridge: Add support for disabling text messaging. · 6cfc6ff5
      Joshua C. Colp authored
      When in a conference bridge it may be necessary to have
      text messages disabled for specific participants or for
      all. This change adds a configuration option, "text_messaging",
      which can be used to enable or disable this on the
      user profile. By default existing behavior is preserved
      as it defaults to "yes".
      
      ASTERISK-28841
      
      Change-Id: I30b5d9ae6f4803881d1ed9300590d405e392bc13
      6cfc6ff5
    • Alexander Traud's avatar
      app_getcpeid: Add build-time dependency. · 5c2b8fde
      Alexander Traud authored
      ASTERISK-28838
      
      Change-Id: I68b78e7e4718be82507247433127ce3992a5ba96
      5c2b8fde
  6. Mar 25, 2020
  7. Mar 13, 2020
    • Joshua C. Colp's avatar
      audiohook: Don't allow audiohooks to attach to hung up channels. · 98d10d0a
      Joshua C. Colp authored
      Given a scenario where MixMonitor was initiated over AMI it
      was possible for the channel and MixMonitor thread to remain
      alive past hang up of the channel. This scenario required
      the AMI initiated MixMonitor to retrieve the channel, a
      hangup to occur on the channel in another thread, and then
      for MixMonitor to actually start. If this occurred the
      MixMonitor thread would remain alive indefinitely and
      the channel reference would remain.
      
      This change ensures that audiohooks are never able to
      be attached to channels that have been hung up. An
      additional fix has also been done in app_mixmonitor to
      properly release the channel reference if this occurs.
      
      ASTERISK-28780
      
      Change-Id: I8044c06daa06f0f16607788c596f55623be26f58
      98d10d0a
  8. Feb 25, 2020
  9. Feb 18, 2020
    • Sean Bright's avatar
      app_mixmonitor: Turn on synchronization by default · 8dcdce42
      Sean Bright authored
      The optional synchronization behavior created in
      64906c4c is now the default for
      MixMonitor.
      
      * Add a new flag 'n' that allows for this behavior to be turned off
      
      * Add a notice when the 'S' option is used indicating that it is no
        longer necessary
      
      Change-Id: I158987c475cda4e1ff1256dd0daccdd99df568b4
      8dcdce42
  10. Feb 17, 2020
    • Sean Bright's avatar
      app_mixmonitor: Set MIXMONITOR_FILENAME to correct value when wav49 is used · ddfb60ac
      Sean Bright authored
      When opening a file for writing, Asterisk silently converts filenames
      ending with 'wav49' to 'WAV.' We aren't taking that in to account when
      setting the MIXMONITOR_FILENAME variable in MixMonitor.
      
      * If the user wants to write to a wav49 file, make sure that it is
        reflected properly in MIXMONITOR_FILENAME.
      
      * Add a note to the documentation describing this behavior.
      
      * Add a note in main/file.c indicating that app_mixmonitor needs to be
        changed if the logic in build_filename was changed.
      
      ASTERISK-24798 #close
      Reported by: xrobau
      
      Change-Id: I384691ce624eb55c80a125b9ca206d2d691c574c
      ddfb60ac
  11. Jan 16, 2020
  12. Jan 15, 2020
  13. Jan 14, 2020
    • Sean Bright's avatar
      app_voicemail: Set globals to default values when voicemail.conf missing · 9be89d99
      Sean Bright authored
      If voicemail.conf exists but is empty, the config parsing process will
      default a number of global variables to non-zero values. On the other
      hand, if voicemail.conf is missing (arguably semantically equivalent
      to an empty file), this process is skipped and the globals are
      defaulted to 0.
      
      Set the globals to the same values they would be set to if a
      configuration were present. This allows voicemail configuration to be
      done completely by Realtime without the need to create an empty
      voicemail.conf file.
      
      ASTERISK-27622 #close
      Reported by: Jim Van Meggelen
      
      Change-Id: Id907d280f310f12e542ca527e6a025432b9fb409
      9be89d99
    • Seán C McCord's avatar
      feat: AudioSocket channel, application, and ARI support. · 163efbd7
      Seán C McCord authored
      This commit adds support for
      [AudioSocket](
      https://wiki.asterisk.org/wiki/display/AST/AudioSocket),
      a very simple bidirectional audio streaming protocol. There are both
      channel and application interfaces.
      
      A description of the protocol can be found on the above referenced
      GitHub page.  A short talk about the reasons and implementation can be
      found on [YouTube](https://www.youtube.com/watch?v=tjduXbZZEgI), from
      CommCon 2019.
      
      ARI support has also been added via the existing "externalMedia" ARI
      functionality. The UUID is specified using the arbitrary "data" field.
      
      ASTERISK-28484 #close
      
      Change-Id: Ie866e6c4fa13178ec76f2a6971ad3590a3a588b5
      163efbd7
  14. Jan 12, 2020
    • Sean Bright's avatar
      app_queue: Deprecate the QueueMemberPause.Reason field · 9522390a
      Sean Bright authored
      The QueueMemberPause AMI event includes two fields that return the
      reason a member was paused.
      
      * In release branches, deprecate Reason in favor of PausedReason.
      * In master, remove the Reason field entirely.
      
      ASTERISK-28349 #close
      Reported by: Niksa Baldun
      
      Change-Id: I01da58f2b0ab927baeee754870f62b51b7b3d296
      9522390a
  15. Jan 09, 2020
    • Corey Farrell's avatar
      app_record: Do not hang up if beep audio is missing · 2f8b20b9
      Corey Farrell authored
      Additionally alter the warning to mention that it was "beep" which could
      not be streamed to give admins a better clue about what the warning
      means.
      
      ASTERISK-28682
      
      Change-Id: If5aed21226a173117ed17589f44826dd1ba6576e
      2f8b20b9
  16. Jan 08, 2020
    • Kevin Harwell's avatar
      app_agent_pool: Update XML docs for AgentLogin · 00a74321
      Kevin Harwell authored
      This patch fixes some wrongly formatted documentation for the AgentLogin
      application. A couple of "see also" links should contain only the function
      name, and no parameters.
      
      Change-Id: I3f788b47dce3292e311f8a9856938d59a0bd0661
      00a74321
  17. Jan 07, 2020
    • Richard Mudgett's avatar
      app_chanisavail.c: Simplify dialplan using ChanIsAvail. · fe3cce81
      Richard Mudgett authored
      Dialplan has to be careful about passing an empty device list or empty
      positions in the list.  As a result, dialplan has to check for these
      conditions before using ChanIsAvail.  Simplify dialplan by making
      ChanIsAvail handle these conditions gracefully.
      
      * Made tolerate empty positions in the device list.
      
      * Simplified the code and eliminated some unnecessary indention.
      
      ASTERISK-28638
      
      Change-Id: I9e4b67e2cbf26b2417c2d03485b8568e898931d3
      fe3cce81
  18. Jan 06, 2020
    • Richard Mudgett's avatar
      app_bridgeaddchan.c: Make BridgeAdd be more like Bridge · 19069f7d
      Richard Mudgett authored
      * Made BridgeAdd not hangup the call if there is a problem.
      * Reduced message level from warning to verbose for normal exception
      cases.
      * Added a loop safety check to BridgeAdd.
      * Made BridgeAdd set BRIDGERESULT with the status when dialplan is
      resumed.
      
      Change-Id: I374d39b8a3edcc794eeb5c6b9f31a01424cdc426
      19069f7d
    • Richard Mudgett's avatar
      app_dial.c: Simplify dialplan using Dial. · abcb4ab3
      Richard Mudgett authored
      Dialplan has to be careful about passing an empty destination list or
      empty positions in the list.  As a result, dialplan has to check for
      these conditions before using Dial.  Simplify dialplan by making Dial
      handle these conditions gracefully.
      
      * Made tolerate empty positions in the dialed device list.
      
      * Reduced some message log levels from notice to verbose.
      
      ASTERISK-28638
      
      Change-Id: I6edc731aff451f8bdfaee5498078dd18c3a11ab9
      abcb4ab3
    • Richard Mudgett's avatar
      app_page.c: Simplify dialplan using Page. · d86a6ac5
      Richard Mudgett authored
      Dialplan has to be careful about passing an empty destination list or
      empty positions in the list.  As a result, dialplan has to check for
      these conditions before using Page.  Simplify dialplan by making Page
      handle these conditions gracefully.
      
      * Made tolerate empty positions in the paged device list.
      
      * Reduced some warnings associated with the 's' option to verbose
      messages.  The warning level for those messages really serves no purpose
      as that is why the 's' option exists.
      
      ASTERISK-28638
      
      Change-Id: I95b64a6d6800cd1a25279c88889314ae60fc21e3
      d86a6ac5
    • Richard Mudgett's avatar
      app_chanspy.c: Reduce log message level from notice to verbose. · 0d1f3d9b
      Richard Mudgett authored
      Change-Id: Ica5f38ccd8cdc077aef14d0c50425e0b29ac7e0a
      0d1f3d9b
    • Richard Mudgett's avatar
      app_softhangup.c: Reduce unnecessary warning to verbose message. · a4579471
      Richard Mudgett authored
      Why log a warning for something your dialplan explicitly asked for?
      
      Change-Id: I167b90daf4c7d75dd4b7ef94849f6cef05aa43a7
      a4579471
  19. Dec 16, 2019
    • Frederic LE FOLL's avatar
      app_chanisavail/cdr: ChanIsAvail sometimes fails to deactivate CDR. · a83625b3
      Frederic LE FOLL authored
      Temporary channel lifespan is very short and CDR deactivation request
      through ast_cdr_set_property() may happen when CDR is not available
      yet. Use CDR_PROP() dialplan function instead, it will first wait
      for pending CDR insertion requests to be processed.
      
      ASTERISK-28636
      
      Change-Id: I1cbe09e8d2169c0962c1195133ff260d291f2074
      a83625b3
    • Joshua C. Colp's avatar
      confbridge: Add support for specifying maximum sample rate. · 89b7144f
      Joshua C. Colp authored
      ConfBridge has the ability to move between different sample
      rates for mixing the conference bridge. Up until now there has
      only been the ability to set the conference bridge to mix at
      a specific sample rate, or to let it move between sample rates
      as necessary. This change adds the ability to configure a
      conference bridge with a maximum sample rate so it can move
      between sample rates but only up to the configured maximum.
      
      ASTERISK-28658
      
      Change-Id: Idff80896ccfb8a58a816e4ce9ac4ebde785963ee
      89b7144f
  20. Dec 04, 2019
  21. Nov 19, 2019
    • Michael Cargile's avatar
      app_amd: Fixed timeout issue · 5bda4603
      Michael Cargile authored
      ASTERISK_28143 attempted to fix an issue where calls with no audio would never
      timeout. It did so by adding AST_FRAME_NULL as a frame type to process in its
      calculations. Unfortunately these frames seem to show up at irregular time
      intervals. This resulted in app_amd returning prematurely most of the time.
      
      * Removed AST_FRAME_NULL from the calculations
      * Added a check to see how much time has actually passed since app_amd began
      
      ASTERISK-28608
      
      Change-Id: I642a21b02d389b17e40ccd5357754b034c3daa42
      5bda4603
  22. Nov 18, 2019
    • lvl's avatar
      app_senddtmf: Add receive mode to AMI Action PlayDTMF · 772b5903
      lvl authored
      ASTERISK-28614
      
      Change-Id: I183501297ae1dc294ae56b34acac9b0343eb2664
      772b5903
    • Kevin Harwell's avatar
      various files - fix some alerts raised by lgtm code analysis · bdd785d3
      Kevin Harwell authored
      This patch fixes several issues reported by the lgtm code analysis tool:
      
      https://lgtm.com/projects/g/asterisk/asterisk
      
      Not all reported issues were addressed in this patch. This patch mostly fixes
      confirmed reported errors, potential problematic code points, and a few other
      "low hanging" warnings or recommendations found in core supported modules.
      These include, but are not limited to the following:
      
      * innapropriate stack allocation in loops
      * buffer overflows
      * variable declaration "hiding" another variable declaration
      * comparisons results that are always the same
      * ambiguously signed bit-field members
      * missing header guards
      
      Change-Id: Id4a881686605d26c94ab5409bc70fcc21efacc25
      bdd785d3
  23. Nov 07, 2019
  24. Oct 14, 2019
    • cmaj's avatar
      app_voicemail.c: Support multiple file formats for forwarded messages. · 2d67dbfe
      cmaj authored
      If you specify multiple formats in voicemail.conf, eg. "format = gsm|wav"
      and are using realtime ODBC backend, only the first format gets stored
      in the database. So when you forward a message later on, there is a bug
      generating the email, related to the stored format (GSM) being different
      than the desired email format (WAV) specified for the user. Sox can
      handle this, but Asterisk needs to tell sox exactly what to do.
      
      ASTERISK-22192
      
      Change-Id: I7321e7f7e7c58adbf41dd4fd7191c887b9b2eafd
      2d67dbfe
  25. Oct 08, 2019
  26. Sep 19, 2019
  27. Sep 10, 2019
    • Frederic LE FOLL's avatar
      ChanIsAvail() generates a CDR when unanswered=yes in cdr.conf. · 2d0eee54
      Frederic LE FOLL authored
      ChanIsAvail() creates a temporary channel with ast_request() to test
      resource availability. It should not generate a CDR when it hangs up
      this temporary channel.
      
      This patch disables CDR generation for the temporary channel with
      ast_cdr_set_property().
      
      ASTERISK-28527
      
      Change-Id: I7b0555c6909c7d322e452dde97c9ea5b111552d1
      2d0eee54
  28. Aug 20, 2019
    • Sean Bright's avatar
      audiohook.c: Substitute silence for unavailable audio frames · 64906c4c
      Sean Bright authored
      There are 4 scenarios to consider when capturing audio from a channel
      with an audiohook:
      
       1. There is no rx and no tx audio, so return nothing.
       2. There is rx but no tx audio, so return rx.
       3. There is tx but no rx audio, so return tx.
       4. There is rx and tx audio, so mix them and return.
      
      The file passed as the primary argument to MixMonitor will be written to
      in scenarios 2, 3, and 4. However, if you pass the r() and t() options
      to MixMonitor, a frame will only be written to the r() file if there was
      rx audio and a frame will only be written to the t() file if there was
      tx audio.
      
      If you subsequently take the r() and t() files and try to mix them, the
      sides of the conversation will 'drift' and be non-representative of the
      user experience.
      
      This patch adds a new 'S' option to MixMonitor that injects a frame of
      silence on either the r() side or the t() side of the channel so that
      when later mixed, there is no such drift.
      
      Change-Id: Ibf5ed73a811087727bd561a89a59f4447b4ee20e
      64906c4c
  29. Aug 15, 2019
  30. Aug 06, 2019
    • Sean Bright's avatar
      app_voicemail: Remove extra menuselect build options · 9d07d5a6
      Sean Bright authored
      You now select voicemail backends like normal dialplan applications, so
      there is no longer a need for their own menuselect category.
      
      Reported by snuff-work in #asterisk-dev
      
      Change-Id: Idfa4c9c8349726074318a9e6b68d24c374521005
      9d07d5a6
  31. Aug 01, 2019
    • Kevin Harwell's avatar
      various modules: json integer overflow · 3656c42c
      Kevin Harwell authored
      There were still a few places in the code that could overflow when "packing"
      a json object with a value outside the base type integer's range. For instance:
      
      unsigned int value = INT_MAX + 1
      ast_json_pack("{s: i}", value);
      
      would result in a negative number being "packed". In those situations this patch
      alters those values to a ast_json_int_t, which widens the value up to a long or
      long long.
      
      ASTERISK-28480
      
      Change-Id: Ied530780d83e6f1772adba0e28d8938ef30c49a1
      3656c42c
Loading