Skip to content
Snippets Groups Projects
  1. May 09, 2022
    • George Joseph's avatar
      GCC12: Fixes for 16+ · 4aa54168
      George Joseph authored
      Most issues were in stringfields and had to do with comparing
      a pointer to an constant/interned string with NULL.  Since the
      string was a constant, a pointer to it could never be NULL so
      the comparison was always "true".  gcc now complains about that.
      
      There were also a few issues where determining if there was
      enough space for a memcpy or s(n)printf which were fixed
      by defining some of the involved variables as "volatile".
      
      There were also a few other miscellaneous fixes.
      
      ASTERISK-30044
      
      Change-Id: Ia081ca1bcfb329df6487c4660aaf1944309eb570
      4aa54168
  2. May 02, 2022
    • Naveen Albert's avatar
      chan_dahdi: Document dial resource options. · 892c0656
      Naveen Albert authored
      Documents the Dial syntax for DAHDI, namely the channel group,
      distinctive ring, answer confirmation, and digital call options
      that are specified in the resource itself.
      
      ASTERISK-24827 #close
      
      Change-Id: Ib95e78497fb00dc5cbfde1c93a69f034bfd08c30
      892c0656
    • Michael Cargile's avatar
      apps/confbridge: Added hear_own_join_sound option to control who hears sound_join · a2679b0e
      Michael Cargile authored
      Added the hear_own_join_sound option to the confbridge user profile to
      control who hears the sound_join audio file. When set to 'yes' the user
      entering the conference and the participants already in the conference
      will hear the sound_join audio file. When set to 'no' the user entering
      the conference will not hear the sound_join audio file, but the
      participants already in the conference will hear the sound_join audio
      file.
      
      ASTERISK-29931
      Added by Michael Cargile
      
      Change-Id: I856bd66dc0dfa057323860a6418c1371d249abd2
      a2679b0e
  3. Apr 27, 2022
    • Naveen Albert's avatar
      app_meetme: Don't erroneously set global variables. · b90650d8
      Naveen Albert authored
      The admin_exec function in app_meetme is used by the SLA
      applications for internal bridging. However, in these cases,
      chan is NULL. Currently, this function will set some status
      variables that are intended for a channel, but since channel
      is NULL, this is erroneously creating meaningless global
      variables, which shouldn't be happening. This sets these
      variables only if chan is not NULL.
      
      ASTERISK-30002 #close
      
      Change-Id: I817df6c26f5bda131678e56791b0b61ba64fc6f7
      b90650d8
  4. Apr 26, 2022
    • Naveen Albert's avatar
      documentation: Adds versioning information. · 0c70d497
      Naveen Albert authored
      Adds version information for applications, functions,
      and manager events/actions.
      
      This is not completely exhaustive by any means but
      covers most new things added that have release
      versioning information in the issue tracker.
      
      ASTERISK-29940 #close
      
      Change-Id: I506401e93c799715dbbe97c0a8ba18af2bf5e131
      0c70d497
    • Maximilian Fridrich's avatar
      app_dial: Flip stream direction of outgoing channel. · 53a3af63
      Maximilian Fridrich authored
      When executing dial, the topology of the incoming channel is cloned and
      used for the outgoing channel. This creates issues when an incoming
      stream is sendonly or recvonly as the stream state of the outgoing
      channel will be the same as the stream state of the incoming channel.
      
      Now the stream state is flipped for the outgoing stream in
      dial_exec_full if the incoming stream topology is recvonly or sendonly.
      
      ASTERISK-29655
      Reported by: Michael Auracher
      
      ASTERISK-29638
      Reported by: Michael Auracher
      
      Change-Id: I294dc834ac9a5f048b101b691669959e9df630e1
      53a3af63
  5. Apr 08, 2022
    • Naveen Albert's avatar
      app_mf, app_sf: Return -1 if channel hangs up. · b87c5f51
      Naveen Albert authored
      The ReceiveMF and ReceiveSF applications currently always
      return 0, even if a channel has hung up. The call will still
      end but generally applications are expected to return -1 if
      the channel has hung up.
      
      We now return -1 if a hangup occured to bring this behavior
      in line with this norm. This has no functional impact, but
      merely increases conformity with how these modules interact
      with the PBX core.
      
      ASTERISK-29951 #close
      
      Change-Id: I234d755050ab8ed58f197c6925b968ba26b14033
      b87c5f51
    • Naveen Albert's avatar
      app_queue: Add music on hold option to Queue. · ede4e209
      Naveen Albert authored
      Adds the m option to the Queue application, which allows a
      music on hold class to be specified at runtime which will
      override the class configured in queues.conf.
      
      This option functions like the m option to Dial.
      
      ASTERISK-29876 #close
      
      Change-Id: Ie25a48569cf8755c305c9438b1ed292c3adcf8d7
      ede4e209
    • Naveen Albert's avatar
      app_meetme: Emit warning if conference not found. · da44b848
      Naveen Albert authored
      Currently, if a user tries to access a non-dynamic
      MeetMe conference and the conference is not found,
      the call simply silent hangs up. There is no indication
      to the user that anything went wrong at all.
      
      This changes the relevant debug message to a warning
      so that the user is notified of this invalidity.
      
      ASTERISK-29954 #close
      
      Change-Id: Iebcfae3755d00f2150d676ee211c57bc59530048
      da44b848
  6. Mar 23, 2022
  7. Mar 11, 2022
    • Kfir Itzhak's avatar
      app_queue: Add QueueWithdrawCaller AMI action · 2be01ba4
      Kfir Itzhak authored
      This adds a new AMI action called QueueWithdrawCaller.
      This AMI action makes it possible to withdraw a caller from a queue,
      in a safe and a generic manner.
      This can be useful for retrieving a specific call and
      dispatching it to a specific extension.
      It works by signaling the caller to exit the queue application
      whenever it can. Therefore, it is not guaranteed
      that the call will leave the queue.
      
      ASTERISK-29909 #close
      
      Change-Id: Ic15aa238e23b2884abdcaadff2fda7679e29b7ec
      2be01ba4
  8. Feb 25, 2022
    • Naveen Albert's avatar
      documentation: Add since tag to xmldocs DTD · c35e205b
      Naveen Albert authored
      Adds the since tag to the documentation DTD so
      that individual applications, functions, etc.
      can now specify when they were added to Asterisk.
      
      This tag is added at the individual application,
      function, etc. level as opposed to at the module
      level because modules can expand over time as new
      functionality is added, and granularity only
      to the module level would generally not be useful.
      
      This enables the ability to more easily determine
      when new functionality was added to Asterisk, down
      to minor version as opposed to just by major version.
      This makes it easier for users to write more portable
      dialplan if desired to not use functionality that may
      not be widely available yet.
      
      ASTERISK-29896 #close
      
      Change-Id: Ibbb35c702d8038bdc3fd0a944fbfa69384cc15d5
      c35e205b
  9. Feb 23, 2022
    • Naveen Albert's avatar
      app_voicemail: Emit warning if asking for nonexistent mailbox. · 39820e35
      Naveen Albert authored
      Currently, if VoiceMailMain is called with a mailbox, if that
      mailbox doesn't exist, then the application silently falls back
      to prompting the user for the mailbox, as if no arguments were
      provided.
      
      However, if a specific mailbox is requested and it doesn't exist,
      then no warning at all is emitted.
      
      This fixes this behavior to now warn if a specifically
      requested mailbox could not be accessed, before falling back to
      prompting the user for the correct mailbox.
      
      ASTERISK-29920 #close
      
      Change-Id: Ib4093b88cd661a2cabc5d685777d4e2f0ebd20a4
      39820e35
    • Naveen Albert's avatar
      app_mp3: Document and warn about HTTPS incompatibility. · c9ef2b3b
      Naveen Albert authored
      mpg123 doesn't support HTTPS, but the MP3Player application
      doesn't document this or warn the user about this. HTTPS
      streams have become more common nowadays and users could
      reasonably try to play them without being aware they should
      use the HTTP stream instead.
      
      This adds documentation to note this limitation. It also
      throws a warning if users try to use the HTTPS stream to
      tell them to use the HTTP stream instead.
      
      ASTERISK-29900 #close
      
      Change-Id: Ie3b029be5258c5a701f71ed3b1a7a80d1e03b827
      c9ef2b3b
    • Naveen Albert's avatar
      app_mf: Add max digits option to ReceiveMF. · 0da71316
      Naveen Albert authored
      Adds an option to the ReceiveMF application to allow specifying a
      maximum number of digits.
      
      Originally, this capability was not added to ReceiveMF as it was
      with ReceiveSF because typically a ST digit is used to denote that
      sending of digits is complete. However, there are certain signaling
      protocols which simply transmit a digit (such as Expanded In-Band
      Signaling) and for these, it's necessary to be able to read a
      certain number of digits, as opposed to until receiving a ST digit.
      
      This capability is added as an option, as opposed to as a parameter,
      to remain compatible with existing usage (and not shift the
      parameters).
      
      ASTERISK-29877 #close
      
      Change-Id: I4229167c9aa69b87402c3c2a9065bd8dfa973a0b
      0da71316
  10. Feb 11, 2022
    • Alexei Gradinari's avatar
      app_queue: load queues and members from Realtime when needed · b41440a1
      Alexei Gradinari authored
      There are a lot of Queue AMI actions and Queue applications
      which do not load queue and queue members from Realtime.
      
      AMI actions
      QueuePause - if queue not in memory - response "Interface not found".
      QueueStatus/QueueSummary - if queue not in memory - empty response.
      
      Applications:
      PauseQueueMember - if queue not in memory
      	Attempt to pause interface %s, not found
      UnpauseQueueMember - if queue not in memory
      	Attempt to unpause interface xxxxx, not found
      
      This patch adds a new function load_realtime_queues
      which loads queue and queue members for desired queue
      or all queues and all members if param 'queuename' is NULL or empty.
      Calls the function load_realtime_queues when needed.
      
      Also this patch fixes leak of ast_config in function set_member_value.
      
      Also this patch fixes incorrect LOG_WARNING when pausing/unpausing
      already paused/unpaused member.
      The function ast_update_realtime returns 0 when no record modified.
      So 0 is not an error to warn about.
      
      ASTERISK-29873 #close
      ASTERISK-18416 #close
      ASTERISK-27597 #close
      
      Change-Id: I554ee0eebde93bd8f49df7f84b74acb21edcb99c
      b41440a1
  11. Jan 20, 2022
  12. Jan 06, 2022
    • Sean Bright's avatar
      utils.c: Remove all usages of ast_gethostbyname() · 0d62735f
      Sean Bright authored
      gethostbyname() and gethostbyname_r() are deprecated in favor of
      getaddrinfo() which we use in the ast_sockaddr family of functions.
      
      ASTERISK-29819 #close
      
      Change-Id: Ie277c0ef768d753b169c121ef570a71665692ab7
      0d62735f
  13. Jan 05, 2022
    • Mark Petersen's avatar
      app_queue.c: Support for Nordic syntax in announcements · dc7bcd68
      Mark Petersen authored
      adding support for playing the correct en/et for nordic languages
      by adding 'n' for neuter gender in the relevant ast_say_number
      
      ASTERISK-29827
      
      Change-Id: I03ebc827d2f0dc95132ab2f42799893c70edc5b1
      dc7bcd68
    • Naveen Albert's avatar
      app_mp3: Throw warning on nonexistent stream · 80766059
      Naveen Albert authored
      Currently, the MP3Player application doesn't
      emit a warning if attempting to play a stream
      which no longer exists. This can be a common
      scenario as many mp3 streams are valid at some
      point but can disappear at any time.
      
      Now a warning is thrown if attempting to play
      a nonexistent MP3 stream, instead of silently
      exiting.
      
      ASTERISK-29829 #close
      
      Change-Id: I53a0bf1ed1740166655eb66fe7675f6f808bf535
      80766059
    • Naveen Albert's avatar
      documentation: Add missing AMI documentation · 70bc0ff9
      Naveen Albert authored
      Adds missing documentation for some channel,
      bridge, and queue events.
      
      ASTERISK-24427
      ASTERISK-29515
      
      Change-Id: I92b06b88c8cadc0155f95ebe3e870b3e795a8c64
      70bc0ff9
    • Naveen Albert's avatar
      app_sf: Add full tech-agnostic SF support · f7c4a380
      Naveen Albert authored
      Adds tech-agnostic support for SF signaling
      by adding SF sender and receiver applications
      as well as Dial integration.
      
      ASTERISK-29802 #close
      
      Change-Id: I7ec50752e9a661af639425e5d1e339f17411bcad
      f7c4a380
    • Steve Davies's avatar
      app_queue: Fix hint updates, allow dup. hints · a2ea233a
      Steve Davies authored
      A previous patch for ASTERISK_29578 caused a 'leak' of
      extension state information across queues, causing the
      state of the first member of unrelated queues to be
      updated in addition to the correct member. Which queues
      and members depended on the order of queues in the
      iterator.
      
      Additionally, it is possible to use the same 'hint:' on
      multiple queue members, so the update cannot break out
      of the update loop early when a match is found.
      
      ASTERISK-29806 #close
      
      Change-Id: If2c1d1cc2a752afd9286d79710fc818596e7a7ad
      a2ea233a
  14. Dec 15, 2021
  15. Dec 14, 2021
    • Mark Petersen's avatar
      app_voicemail.c: Support for Danish syntax in VM · 4f06de7c
      Mark Petersen authored
      added support for playing the correct plural sound file
      dependen on where you have 1 or multipe messages
      based on the existing SE/NO code
      
      ASTERISK-29797
      
      Change-Id: I88aa814d02f3772bb80b474204b1ffb26fe438c2
      4f06de7c
    • Naveen Albert's avatar
      app_sendtext: Add ReceiveText application · 54761a41
      Naveen Albert authored
      Adds a ReceiveText application that can be used in
      conjunction with SendText. Currently, there is no
      way in Asterisk to receive text in the dialplan
      (or anywhere else, really). This allows for Asterisk
      to be the recipient of text instead of just the sender.
      
      ASTERISK-29759 #close
      
      Change-Id: Ica2c354a42bff69f323a0493d3a7cd0fb129d52d
      54761a41
  16. Dec 13, 2021
  17. Dec 06, 2021
  18. Dec 02, 2021
  19. Dec 01, 2021
    • Naveen Albert's avatar
      documentation: Standardize examples · 24a04054
      Naveen Albert authored
      Most examples in the XML documentation use the
      example tag to demonstrate examples, which gets
      parsed specially in the Wiki to make it easier
      to follow for users.
      
      This fixes a few modules to use the example
      tag instead of vanilla para tags to bring them
      in line with the standard syntax.
      
      ASTERISK-29777 #close
      
      Change-Id: I9acb6cc5faf1d220e73c6dd28592371d768d279b
      24a04054
  20. Nov 30, 2021
    • Naveen Albert's avatar
      app_voicemail: Refactor email generation functions · d374d63e
      Naveen Albert authored
      Refactors generic functions used for email generation
      into utils.c so that they can be used by multiple
      modules, including app_voicemail and app_minivm,
      to avoid code duplication.
      
      ASTERISK-29715 #close
      
      Change-Id: I1de0ed3483623e9599711129edc817c45ad237ee
      d374d63e
  21. Nov 18, 2021
  22. Nov 16, 2021
    • Naveen Albert's avatar
      app_morsecode: Fix deadlock · ad67f696
      Naveen Albert authored
      Fixes a deadlock in app_morsecode caused by locking
      the channel twice when reading variables from the
      channel. The duplicate lock is simply removed.
      
      ASTERISK-29744 #close
      
      Change-Id: I204000701f123361d7f85e0498fedc90243c75e4
      ad67f696
    • Naveen Albert's avatar
      app_read: Fix custom terminator functionality regression · 2320a963
      Naveen Albert authored
      Currently, when the t option is specified with no arguments,
      the # character is still treated as a terminator, even though
      no character should be treated as a terminator.
      
      This is because a previous regression fix was modified to
      remove the use of NULL as a default altogether. However,
      NULL and an empty string actually refer to different
      arrangements and should be treated differently. NULL is the
      default terminator (#), while an empty string removes the
      terminator altogether. This is the behavior being used by
      the rest of the core.
      
      Additionally, since S_OR catches empty strings as well as
      NULL (not intended), this is changed to a ternary operator
      instead, which fixes the behavior.
      
      ASTERISK-29705 #close
      
      Change-Id: I9b6b72196dd04f5b1e0ab5aa1b0adf627725e086
      2320a963
    • Josh Soref's avatar
      apps: Spelling fixes · eb03b18f
      Josh Soref authored
      Correct typos of the following word families:
      
      simultaneously
      administrator
      directforward
      attachfmt
      dailplan
      automatically
      applicable
      nouns
      explicit
      outside
      sponsored
      attachment
      audio
      spied
      doesn't
      counting
      encoded
      implements
      recursively
      emailaddress
      arguments
      queuerules
      members
      priority
      output
      advanced
      silencethreshold
      brazilian
      debugging
      argument
      meadmin
      formatting
      integrated
      sneakiness
      
      ASTERISK-29714
      
      Change-Id: Ie5ecaec91c00b26309da4e51cfc0991a5bb7d092
      eb03b18f
  23. Nov 08, 2021
    • Naveen Albert's avatar
      app_voicemail: Fix phantom voicemail bug on rerecord · 4e514419
      Naveen Albert authored
      If users are able to press # for options while leaving
      a message and then press 3 to rerecord the message, if
      the caller hangs up during the rerecord prompt but before
      Asterisk starts recording a message, then an "empty"
      voicemail gets processed whereby an email gets sent out
      notifying the user of a 0:00 duration message. The file
      doesn't actually exist, so playback will fail since there
      was no message to begin with.
      
      This adds a check after the streaming of the rerecord
      announcement to see if the caller has hung up. If so,
      we bail out early so that we can clean up properly.
      
      ASTERISK-29391 #close
      
      Change-Id: Id965d72759a2fd3b39afb76fec08aaebebe75c31
      4e514419
  24. Oct 25, 2021
  25. Oct 21, 2021
    • Shloime Rosenblum's avatar
      apps/app_playback.c: Add 'mix' option to app_playback · cfae5224
      Shloime Rosenblum authored
      I am adding a mix option that will play by filename and say.conf unlike
      say option that will only play with say.conf. It
      will look on the format of the name, if it is like say it play with
      say.conf if not it will play the file name.
      
      ASTERISK-29662
      
      Change-Id: I815816916a308f0fa8f165140dc15772dcbd547a
      cfae5224
  26. Sep 30, 2021
    • Naveen Albert's avatar
      app_read: Fix null pointer crash · b40ca38c
      Naveen Albert authored
      If the terminator character is not explicitly specified
      and an indications tone is used for reading a digit,
      there is no null pointer check so Asterisk crashes.
      This prevents null usage from occuring.
      
      ASTERISK-29673 #close
      
      Change-Id: Ie941833e123c3dbfb88371b5de5edbbe065514ac
      b40ca38c
Loading