Skip to content
Snippets Groups Projects
  1. Mar 06, 2022
  2. Jun 15, 2021
    • Naveen Albert's avatar
      pbx_builtins: Corrects SayNumber warning · 2b174a38
      Naveen Albert authored
      Previously, SayNumber always emitted a warning if the caller hung up
      during execution. Usually this isn't correct, so check if the channel
      hung up and, if so, don't emit a warning.
      
      ASTERISK-29475
      
      Change-Id: Ieea4a67301c6ea83bbc7690c1d4808d79a704594
      2b174a38
  3. May 25, 2021
  4. May 19, 2021
    • Naveen Albert's avatar
      AMI: Add AMI event to expose hook flash events · 0ad3504c
      Naveen Albert authored
      Although Asterisk can receive and propogate flash events, it currently
      provides no mechanism for doing anything with them itself.
      
      This AMI event allows flash events to be processed by Asterisk.
      Additionally, AST_CONTROL_FLASH is included in a switch statement
      in channel.c to avoid throwing a warning when we shouldn't.
      
      ASTERISK-29380
      
      Change-Id: Ie17ffe65086e0282c88542e38eed6a461ec79e81
      0ad3504c
  5. May 13, 2021
    • Naveen Albert's avatar
      main/file.c: Don't throw error on flash event. · 283fa3a9
      Naveen Albert authored
      AST_CONTROL_FLASH isn't accounted for in a switch statement in file.c
      where it should be ignored. Adding this to the switch ensures a
      warning isn't thrown on RFC2833 flash events, since nothing's amiss.
      
      ASTERISK-29372
      
      Change-Id: I4fa549bfb7ba1894a4044de999ea124877422fbc
      283fa3a9
  6. May 11, 2021
  7. May 04, 2021
    • George Joseph's avatar
      Updates for the MessageSend Dialplan App · 40bdfff7
      George Joseph authored
      Enhancements:
      
       * The MessageSend dialplan application now takes an optional
         third argument that can set the message's "To" field on
         outgoing messages.  It's an alternative to using the
         MESSAGE(to) dialplan function.
      
         NOTE: No channel driver currently implements this field.  A
         follow-on commit for res_pjsip_messaging will implement it for
         the chan_pjsip channel driver.
      
       * To prevent confusion with the first argument, currently named
         "to", it's been renamed to "destination". Its function,
         creating the request URI, hasn't changed.
      
       * The documentation for MessageSend was updated to be
         more clear about the parameters and how they interact
         the MESSAGE() dialplan function.
      
       * With the rename of MessageSend's first parameter, and the fact
         that message.c references <info> elements in chan_sip.c,
         res_pjsip_messaging.c and res_xmpp, they each needed
         documentation updates to use MessageDestinationInfo instead of
         MessageToInfo.
      
       * appdocsxml.dtd was updated to include a missing element
         declaration for "dataType".  This was showing up as an error
         in Eclipse's dtd editor.
      
       * Despite the changes in this commit, there should be
         no impact to current users of MessageSend.
      
      Change-Id: I6fb5b569657a02866a66ea352fd53d30d8ac965a
      40bdfff7
  8. Apr 30, 2021
  9. Apr 28, 2021
  10. Apr 05, 2021
    • George Joseph's avatar
      bridge_channel_write_frame: Check for NULL channel · 88aec107
      George Joseph authored
      There is a possibility, when bridge_channel_write_frame() is
      called, that the bridge_channel->chan will be NULL.  The first
      thing bridge_channel_write_frame() does though is call
      ast_channel_is_multistream() which had no check for a NULL
      channel and therefore caused a segfault. Since it's still
      possible for bridge_channel_write_frame() to write the frame to
      the other channels in the bridge, we don't want to bail before we
      call ast_channel_is_multistream() but we can just skip the
      multi-channel stuff.  So...
      
      bridge_channel_write_frame() only calls ast_channel_is_multistream()
      if bridge_channel->chan is not NULL.
      
      As a safety measure, ast_channel_is_multistream() now returns
      false if the supplied channel is NULL.
      
      ASTERISK-29379
      Reported-by: Vyrva Igor
      Reported-by: Ross Beer
      
      Change-Id: Idfe62dbea8c69813ecfd58e113a6620dc42352ce
      88aec107
  11. Apr 02, 2021
  12. Apr 01, 2021
    • Joshua C. Colp's avatar
      loader: Output warnings for deprecated modules. · a9a98644
      Joshua C. Colp authored
      Using the information from the MODULEINFO XML we can
      now output useful information at the end of module
      loading for deprecated modules. This includes the
      version it was deprecated in, the version it will be
      removed in, and the replacement if available.
      
      ASTERISK-29339
      
      Change-Id: I2080dab97d2186be94c421b41dabf6d79a11611a
      a9a98644
  13. Mar 31, 2021
    • Kevin Harwell's avatar
      time: Add timeval create and unit conversion functions · 15de2f17
      Kevin Harwell authored
      Added a TIME_UNIT enumeration, and a function that converts a
      string to one of the enumerated values. Also, added functions
      that create and initialize a timeval object using a specified
      value, and unit type.
      
      Change-Id: Ic31a1c3262a44f77a5ef78bfc85dcf69a8d47392
      15de2f17
  14. Mar 22, 2021
    • Mark Murawski's avatar
      logger: Console sessions will now respect logger.conf dateformat= option · a0009c80
      Mark Murawski authored
      The 'core' console (ie: asterisk -c) does read logger.conf and does
      use the dateformat= option.
      
      Whereas 'remote' consoles (ie: asterisk -r -T) does not read logger.conf
      and uses a hard coded dateformat option for printing received verbose messages:
        main/logger.c: static char dateformat[256] = "%b %e %T"
      
      This change will load logger.conf for each remote console session and
      use the dateformat= option to set the per-line timestamp for verbose messages
      
      Change-Id: I3ea10990dbd920e9f7ce8ff771bc65aa7f4ea8c1
      ASTERISK-25358: #close
      Reported-by: Igor Liferenko
      a0009c80
    • Joshua C. Colp's avatar
      core_unreal: Fix deadlock with T.38 control frames. · ed2f637b
      Joshua C. Colp authored
      When using the ast_unreal_lock_all function no channel
      locks can be held before calling it.
      
      This change unlocks the channel that indicate was
      called on before doing so and then relocks it afterwards.
      
      ASTERISK-29035
      
      Change-Id: Id65016201b5f9c9519a216e250f9101c629e19e9
      ed2f637b
  15. Mar 10, 2021
    • Joshua C. Colp's avatar
      channel: Fix crash in suppress API. · f7bda066
      Joshua C. Colp authored
      There exists an inconsistency with framehook usage
      such that it is only on reads that the frame should
      be freed, not on writes as well.
      
      ASTERISK-29071
      
      Change-Id: I5ef918ebe4debac8a469e8d43bf9d6b673e8e472
      f7bda066
  16. Mar 05, 2021
    • Joshua C. Colp's avatar
      sorcery: Add support for more intelligent reloading. · a9acbd19
      Joshua C. Colp authored
      Some sorcery objects actually contain dynamic content
      that can change despite the underlying configuration
      itself not changing. A good example of this is the
      res_pjsip_endpoint_identifier_ip module which allows
      specifying hostnames. While the configuration may not
      change between reloads the DNS information of the
      hostnames can.
      
      This change adds the ability for a sorcery object to be
      marked as having dynamic contents which is then taken
      into account when reloading by the sorcery file based
      config module. If there is an object with dynamic content
      then a reload will be forced while if there are none
      then the existing behavior of not reloading occurs.
      
      ASTERISK-29321
      
      Change-Id: I9342dc55be46cc00204533c266a68d972760a0b1
      a9acbd19
  17. Mar 04, 2021
  18. Mar 03, 2021
    • Joshua C. Colp's avatar
      channel: Fix memory leak in suppress API. · b43b81d9
      Joshua C. Colp authored
      A frame suppression API exists as part of channels
      which allows audio frames to or from a channel to
      be dropped. The MuteAudio AMI action uses this
      API to perform its job.
      
      This API uses a framehook to intercept flowing
      audio and drop it when appropriate. It is the
      responsibility of the framehook to free the
      frame it is given if it changes the frame. The
      suppression API failed to do this resulting in
      a leak of audio frames.
      
      This change adds the freeing of these frames.
      
      ASTERISK-29071
      
      Change-Id: Ie50acd454d672d36af914050c327d2e120d8ba7b
      b43b81d9
  19. Mar 02, 2021
    • Nico Kooijman's avatar
      main: With Dutch language year after 2020 is not spoken in say.c · 7b052ec9
      Nico Kooijman authored
      Implemented the english way of saying the year in ast_say_date_with_format_nl.
      Currently the numbers are spoken correctly until 2020 and stopped working
      this year.
      
      ASTERISK-29297 #close
      Reported-by: Jacek Konieczny
      
      Change-Id: If5918eed5ab05df31df4dd23f08a909a60f6aba4
      7b052ec9
  20. Feb 23, 2021
    • Alexander Traud's avatar
      chan_sip: Filter pass-through audio/video formats away, again. · 1adf9368
      Alexander Traud authored
      Instead of looking for pass-through formats in the list of transcodable
      formats (which is going to find nothing), go through the result which
      is going to be the jointcaps of the tech_pvt of the channel. Finally,
      only with that list, ast_format_cap_remove(.) is going to succeed.
      
      This restores the behaviour of Asterisk 1.8. However, it does not fix
      ASTERISK_29282 because that issue report is about chan_sip and PJSIP.
      Here, only chan_sip is fixed because PJSIP does not even call
      ast_rtp_instance_available_formats -> ast_translate_available_format.
      
      Change-Id: Icade2366ac2b82935b95a9981678c987da2e8c34
      1adf9368
    • Sebastien Duthil's avatar
      app_mixmonitor: Add AMI events MixMonitorStart, -Stop and -Mute. · 092628c9
      Sebastien Duthil authored
      ASTERISK-29244
      
      Change-Id: I1862d58264c2c8b5d8983272cb29734b184d67c5
      092628c9
  21. Feb 17, 2021
    • Ben Ford's avatar
      core_unreal: Fix T.38 faxing when using local channels. · 62e2dd48
      Ben Ford authored
      After some changes to streams and topologies, receiving fax through
      local channels stopped working. This change adds a stream topology with
      a stream of type IMAGE to the local channel pair and allows fax to be
      received.
      
      ASTERISK-29035 #close
      
      Change-Id: Id103cc5c9295295d8e68d5628e76220f8f17e9fb
      62e2dd48
  22. Jan 27, 2021
Loading