Skip to content
Snippets Groups Projects
  1. Mar 17, 2018
    • Alexander Traud's avatar
      BuildSystem: Remove unused dependency on libltdl. · 10a97882
      Alexander Traud authored
      Asterisk does not need the development package of libltdl, because it does not
      use any symbol of -lltdl directly. Instead, it uses the runtime package via the
      shared library -lodbc. On the supported platforms, that shared library declares
      its dependency on -lltdl correctly, otherwise AST_EXT_LIB_CHECK would have
      failed.
      
      ASTERISK-27745
      
      Change-Id: Icd315809b8e7978203431f3afb66240dd3a040ba
      10a97882
  2. Mar 16, 2018
    • Florian Floimair's avatar
      app_dial: Enable early-media video · ecc846b2
      Florian Floimair authored
      Certain applications (e.g. door-phone) require that also video is transmitted
      before a call is accepted.
      
      Change-Id: I9842e1dc2f6e1c2c49dc33fe615255007d2f821e
      ecc846b2
    • George Joseph's avatar
      app_voicemail: Fix json blob errors · 4d1e3fef
      George Joseph authored
      When app_voicemail calls ast_test_suite_notify with the results of
      a user keypress, it formats the keypress as '%c'.  If the user hung up
      or some other error occurrs, the result of the keypress is a non
      printable character.  This ultimately causes json_vpack_ex to think
      it's being passed a non utf-8 string and return an error.
      
      * Keypress results passed to ast_test_suite_notify are now checked with
        isprint() and a '?' is substituted if the check fails.
      
      Change-Id: I78ee188916bbac840f3d03f40201b692347ea865
      4d1e3fef
  3. Mar 14, 2018
    • Corey Farrell's avatar
      loader: Convert reload_classes to built-in modules. · 572a508e
      Corey Farrell authored
      * acl (named_acl.c)
      * cdr
      * cel
      * ccss
      * dnsmgr
      * dsp
      * enum
      * extconfig (config.c)
      * features
      * http
      * indications
      * logger
      * manager
      * plc
      * sounds
      * udptl
      
      These modules are now loaded at appropriate time by the module loader.
      Unlike loadable modules these use AST_MODULE_LOAD_FAILURE on error so
      the module loader will abort startup on failure of these modules.
      
      Some of these modules are still initialized or shutdown from outside the
      module loader.  logger.c is initialized very early and shutdown very
      late, manager.c is initialized by the module loader but is shutdown by
      the Asterisk core (too much uses it without holding references).
      
      Change-Id: I371a9a45064f20026c492623ea8062d02a1ab97f
      572a508e
  4. Mar 08, 2018
    • Richard Mudgett's avatar
      Complete deprecating legacy modules. · e6738b79
      Richard Mudgett authored
      The menuselect comment was updated to deprecate these modules but the
      AST_MODULE_INFO block at the end of file was missed.
      
      ASTERISK-27671
      
      Change-Id: I63070b5c4d4f08af010c6034acd4793c1bcef839
      e6738b79
  5. Mar 07, 2018
  6. Feb 25, 2018
    • Michael Cargile's avatar
      apps/app_amd.c: Fixed total time and silence calculations · 7b012360
      Michael Cargile authored
      Between Asterisk 11 and Asterisk 13 there was a significant increase
      in the number of AST_FRAME_NULL frames being processed by app_amd.c's
      main loop. Each AST_FRAME_NULL frame was being counted as 100ms
      towards the total time and silence. This may have been accurate
      when app_amd.c was orginally added, but it is not in Asterisk 13.
      As such the total analysis time and silence calculations were way
      off effectively breaking app_amd.c
      
      * Additional debug messages were added
      * AST_FRAME_NULL are now ignored
      
      ASTERISK-27610
      
      Change-Id: I18aca01af98f87c1e168e6ae0d85c136d1df5ea9
      7b012360
  7. Feb 13, 2018
    • Corey Farrell's avatar
      Deprecate legacy modules. · 9f74afbd
      Corey Farrell authored
      * app_fax (replaced by res_fax).
      * res_config_sqlite (replaced by res_config_sqlite3).
      * res_monitor (replaced by app_mixmonitor).
      
      This is related to ASTERISK~23657 but does not resolve that ticket.
      Resolving that ticket would require complete removal of res_monitor.
      
      ASTERISK-27671 #close
      
      Change-Id: I16a3edd61fc1abd4a7b2e9357693ed663f62dd49
      9f74afbd
  8. Feb 05, 2018
  9. Jan 31, 2018
  10. Jan 29, 2018
  11. Jan 24, 2018
    • Corey Farrell's avatar
      Remove redundant module checks and references. · 527cf5a5
      Corey Farrell authored
      This removes references that are no longer needed due to automatic
      references created by module dependencies.
      
      In addition this removes most calls to ast_module_check as they were
      checking modules which are listed as dependencies.
      
      Change-Id: I332a6e8383d4c72c8e89d988a184ab8320c4872e
      527cf5a5
  12. Jan 22, 2018
    • Corey Farrell's avatar
      Add missing OPTIONAL_API and ARI dependences. · 679fa5fb
      Corey Farrell authored
      I've audited all modules that include any header which includes
      asterisk/optional_api.h.  All modules which use OPTIONAL_API now declare
      those dependencies in AST_MODULE_INFO using requires or optional_modules
      as appropriate.
      
      In addition ARI dependency declarations have been reworked.  Instead of
      declaring additional required modules in res/ari/resource_*.c we now add
      them to an optional array "requiresModules" in api-docs for each module.
      This allows the AST_MODULE_INFO dependencies to include those missing
      modules.
      
      Change-Id: Ia0c70571f5566784f63605e78e1ceccb4f79c606
      679fa5fb
  13. Jan 17, 2018
  14. Jan 15, 2018
    • Corey Farrell's avatar
      loader: Add dependency fields to module structures. · 9cfdb81e
      Corey Farrell authored
      * Declare 'requires' and 'enhances' text fields on module info structure.
      * Rename 'nonoptreq' to 'optional_modules'.
      * Update doxygen comments.
      
      Still need to investigate dependencies among modules I cannot compile.
      
      Change-Id: I3ad9547a0a6442409ff4e352a6d897bef2cc04bf
      9cfdb81e
  15. Jan 12, 2018
  16. Jan 09, 2018
  17. Jan 06, 2018
  18. Dec 22, 2017
  19. Dec 21, 2017
  20. Dec 20, 2017
  21. Dec 19, 2017
    • Corey Farrell's avatar
      app_voicemail: Fix memory management issues. · dc04d1ec
      Corey Farrell authored
      * mwi_sub_event_cb: mwist leaked on separate_mailbox failure.
      * add_email_attachment: A reference to sox_gain_tmpdir was used
        after the storage was out of scope.
      
      Change-Id: I6282c542ff7b82fa091177a912d11234a8b00a30
      dc04d1ec
  22. Dec 18, 2017
  23. Dec 15, 2017
    • Corey Farrell's avatar
      aco: Minimize use of regex. · bf2d3593
      Corey Farrell authored
      Remove nearly all use of regex from ACO users.  Still remaining:
      * app_confbridge has a legitamate use of option name regex.
      * ast_sorcery_object_fields_register is implemented with regex, all
        callers use simple prefix based regex.  I haven't decided the best
        way to fix this in both 13/15 and master.
      
      Change-Id: Ib5ed478218d8a661ace4d2eaaea98b59a897974b
      bf2d3593
  24. Dec 13, 2017
    • pchero's avatar
      Add new AMI action for app_voicemail · daa3a300
      pchero authored
      Currently, to figure out specified voicemail's status, there's only one
      way to do it, which is use a VoicemailUserEntry AMI message.
      But it consumed it too much resource(it check everything).
      So, added new AMI action.
      
      ASTERISK-27470
      
      Change-Id: Ie4eba1424a142e5fbd1d9fb1821a3fc1a1e238b7
      daa3a300
  25. Dec 12, 2017
    • Ivan Poddubny's avatar
      app_queue: Fix extension state subscriptions removed on dialplan reload · c7f94e57
      Ivan Poddubny authored
      The approach with having a single global subscription to all extension
      state changes has one issue: dynamically created hints don't have any
      watchers and are therefore garbage collected on the first dialplan
      reload.
      
      This change creates a state subscription for every queue member with a
      hint as state_interface, thus increasing the count of watches for
      hints, so they are not destroyed prematurely anymore.
      
      There are 2 side effects:
      1. The state change callback in app_queue is not executed when
         there are no members referring to the extension.
      2. The callback is called multiple times for the same hint if it's
         associated with more than one queue member.
      
      Reported by: Steven T. Wheeler
      
      ASTERISK-18411 #close
      
      Change-Id: I4956af2136ea2a7f110ac9272eae5f6e676d8f89
      c7f94e57
  26. Dec 08, 2017
    • Sean Bright's avatar
      utils: Add convenience function for setting fd flags · 2ffe52a1
      Sean Bright authored
      There are many places in the code base where we ignore the return value
      of fcntl() when getting/setting file descriptior flags. This patch
      introduces a convenience function that allows setting or clearing file
      descriptor flags and will also log an error on failure for later
      analysis.
      
      Change-Id: I8b81901e1b1bd537ca632567cdb408931c6eded7
      2ffe52a1
  27. Dec 04, 2017
    • Sungtae Kim's avatar
      Add new object for VoicemailUserEntry · 0611fe58
      Sungtae Kim authored
      Currently, when the app_voicemail sending VoicemailUserEntry AMI event, there's
      no OldMessageCount info for default.
      To check the OldMessageCount info, it required IMAP_STORAGE define, but this is
      not correct.
      Added OldMessageCount item as a default.
      
      ASTERISK-27456
      
      Change-Id: I5c71521c2d1daf8b7b161e31c34d28cca6aea4c7
      0611fe58
  28. Nov 20, 2017
  29. Nov 19, 2017
  30. Nov 15, 2017
    • George Joseph's avatar
      app_record: Don't set RECORD_STATUS chan var until file is closed · f5127073
      George Joseph authored
      We've been calling pbx_builtin_setvar_helper to set the
      RECORD_STATUS variable before actually closing the recorded file.
      If a client is watching VarSet events and tries to do something with
      the file when a RECORD_STATUS event is seen, they might attempt to
      do so while the file it's still open.
      
      We now delay calling pbx_builtin_setvar_helper until after we close
      the file.
      
      ASTERISK-27423
      
      Change-Id: I7fe9de99953e46b4bafa2b38cf151fe8f6488254
      f5127073
  31. Nov 06, 2017
    • Richard Mudgett's avatar
      Fix ast_(v)asprintf() malloc failure usage conditions. · ee08f10d
      Richard Mudgett authored
      When (v)asprintf() fails, the state of the allocated buffer is undefined.
      The library had better not leave an allocated buffer as a result or no one
      will know to free it.  The most likely way it can return failure is for an
      allocation failure.  If the printf conversion fails then you actually have
      a threading problem which is much worse because another thread modified
      the parameter values.
      
      * Made __ast_asprintf()/__ast_vasprintf() set the returned buffer to NULL
      on failure.  That is much more useful than either an uninitialized pointer
      or a pointer that has already been freed.  Many uses won't have to check
      for failure to ensure that the buffer won't be double freed or prevent an
      attempt to free an uninitialized pointer.
      
      * stasis.c: Fixed memory leak in multi_object_blob_to_ami() allocated by
      ast_asprintf().
      
      * ari/resource_bridges.c:ari_bridges_play_helper(): Remove assignment to
      the wrong thing which is now not needed even if assigning to the right
      thing.
      
      Change-Id: Ib5252fb8850ecf0f78ed0ee2ca0796bda7e91c23
      ee08f10d
  32. Nov 02, 2017
  33. Oct 30, 2017
    • Corey Farrell's avatar
      Modules: Fix issues with CLI completion. · e82b921c
      Corey Farrell authored
      * Stop using ast_module_helper to check if a module is loaded, use
        ast_module_check instead (app_confbridge and app_meetme).
      * Stop ast_module_helper from listing reload classes when needsreload
        was not requested.
      
      ASTERISK-27378
      
      Change-Id: Iaed8c1e4fcbeb242921dbac7929a0fe75ff4b239
      e82b921c
  34. Oct 29, 2017
Loading