Skip to content
Snippets Groups Projects
  1. Sep 10, 2021
    • Naveen Albert's avatar
      res_tonedetect: Tone detection module · a6eb1b6f
      Naveen Albert authored
      dsp.c contains arbitrary tone detection functionality
      which is currently only used for fax tone recognition.
      This change makes this functionality publicly
      accessible so that other modules can take advantage
      of this.
      
      Additionally, a WaitForTone and TONE_DETECT app and
      function are included to allow users to do their
      own tone detection operations in the dialplan.
      
      ASTERISK-29546
      
      Change-Id: Ie38c395000f4fd4d04e942e8658e177f8f499b26
      a6eb1b6f
  2. Sep 09, 2021
  3. Sep 02, 2021
    • Naveen Albert's avatar
      chan_iax2: Add ANI2/OLI information element · 5a685249
      Naveen Albert authored
      Adds an information element for ANI2 so that
      Originating Line Information can be transmitted
      over IAX2 channels.
      
      ASTERISK-29605 #close
      
      Change-Id: Iaeacdf6ccde18eaff7f776a0f49fee87dcb549d2
      5a685249
  4. Sep 01, 2021
    • Naveen Albert's avatar
      app_read: Allow reading # as a digit · dd980e00
      Naveen Albert authored
      Allows for the digit # to be read as a digit,
      just like any other DTMF digit, as opposed to
      forcing it to be used as an end of input
      indicator. The default behavior remains
      unchanged.
      
      ASTERISK-18454 #close
      
      Change-Id: I3033432adb9d296ad227e76b540b8b4a2417665b
      dd980e00
    • Sebastien Duthil's avatar
      res_rtp_asterisk: Automatically refresh stunaddr from DNS · ac492f2f
      Sebastien Duthil authored
      This allows the STUN server to change its IP address without having to
      reload the res_rtp_asterisk module.
      
      The refresh of the name resolution occurs first when the module is
      loaded, then recurringly, slightly after the previous DNS answer TTL
      expires.
      
      ASTERISK-29508 #close
      
      Change-Id: I7955a046293f913ba121bbd82153b04439e3465f
      ac492f2f
  5. Aug 25, 2021
    • Naveen Albert's avatar
      app_queue: Don't reset queue stats on reload · c7af4699
      Naveen Albert authored
      Prevents reloads of app_queue from also resetting
      queue statistics.
      
      Also preserves individual queue agent statistics
      if we're just reloading members.
      
      ASTERISK-28701
      
      Change-Id: Ib5d4cdec175e44de38ef0f6ede4a7701751766f1
      c7af4699
  6. Aug 19, 2021
    • George Joseph's avatar
      res_pjproject: Allow mapping to Asterisk TRACE level · b72425b1
      George Joseph authored
      Allow mapping pjproject log messages to the Asterisk TRACE
      log level.  The defaults were also changes to log pjproject
      levels 3,4 to DEBUG and 5,6 to TRACE.  Previously 3,4,5,6
      all went to DEBUG.
      
      ASTERISK-29582
      
      Change-Id: I859a37a8dec263ed68099709cfbd3e665324c72d
      b72425b1
    • Naveen Albert's avatar
      app_milliwatt: Timing fix · dffc5e7f
      Naveen Albert authored
      The Milliwatt application uses incorrect tone timings
      that cause it to play the 1004 Hz tone constantly.
      
      This adds an option to enable the correct timing
      behavior, so that the Milliwatt application can
      be used for milliwatt test lines. The default behavior
      remains unchanged for compatability reasons, even
      though it is incorrect.
      
      ASTERISK-29575 #close
      
      Change-Id: I73ccc6c6fcaa31931c6fff3b85ad1805b2ce9d8c
      dffc5e7f
    • Naveen Albert's avatar
      app_morsecode: Add American Morse code · 9cac1c16
      Naveen Albert authored
      Previously, the Morsecode application only supported international
      Morse code. This adds support for American Morse code and adds an
      option to configure the frequency used in off intervals.
      
      Additionally, the application checks for hangup between tones
      to prevent application execution from continuing after hangup.
      
      ASTERISK-29541
      
      Change-Id: I172431a2e18e6527d577e74adfb05b154cba7bd4
      9cac1c16
    • Naveen Albert's avatar
      func_scramble: Audio scrambler function · 3eec5b8c
      Naveen Albert authored
      Adds a function to scramble audio on a channel using
      whole spectrum frequency inversion. This can be used
      as a privacy enhancement with applications like
      ChanSpy or other potentially sensitive audio.
      
      ASTERISK-29542
      
      Change-Id: I01020769d91060a1f56a708eb405f87648d1a67e
      3eec5b8c
    • Naveen Albert's avatar
      app_originate: Add ability to set codecs · cb1dfecc
      Naveen Albert authored
      A list of codecs to use for dialplan-originated calls can
      now be specified in Originate, similar to the ability
      in call files and the manager action.
      
      Additionally, we now default to just using the slin codec
      for originated calls, rather than all the slin* codecs up
      through slin192, which has been known to cause issues
      and inconsistencies from AMI and call file behavior.
      
      ASTERISK-29543
      
      Change-Id: I96a1aeb83d54b635b7a51e1b4680f03791622883
      cb1dfecc
  7. Aug 12, 2021
  8. Aug 09, 2021
    • Naveen Albert's avatar
      func_frame_drop: New function · 118d8482
      Naveen Albert authored
      Adds function to selectively drop specified frames
      in the TX or RX direction on a channel, including
      control frames.
      
      ASTERISK-29478
      
      Change-Id: I8147c9d55d74e2e48861edba6b22f930920541ec
      118d8482
  9. Aug 04, 2021
    • Naveen Albert's avatar
      app_queue: Allow streaming multiple announcement files · 940f6c4a
      Naveen Albert authored
      Allows multiple files comprising an agent announcement
      to be played by separating on the ampersand, similar
      to the multi-file support in other Asterisk applications.
      
      ASTERISK-29528
      
      Change-Id: Iec600d8cd5ba14aa1e4e37f906accb356cd7891a
      940f6c4a
  10. Aug 03, 2021
    • Igor Goncharovsky's avatar
      res_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by pattern · 1e4ed61a
      Igor Goncharovsky authored
      PJSIP currently does not provide a function to replace SIP_HEADERS() function to get a list of headers from INVITE request.
      It may be used to get all X- headers in case the actual set and names of headers unknown.
      
      ASTERISK-29389
      
      Change-Id: Ic09d395de71a0021e0d6c5c29e1e19d689079f8b
      1e4ed61a
    • Rijnhard Hessel's avatar
      res_statsd: handle non-standard meter type safely · 71dd1d91
      Rijnhard Hessel authored
      Meter types are not well supported,
      lacking support in telegraf, datadog and the official statsd servers.
      We deprecate meters and provide a compliant fallback for any existing usages.
      
      A flag has been introduced to allow meters to fallback to counters.
      
      
      ASTERISK-29513
      
      Change-Id: I5fcb385983a1b88f03696ff30a26b55c546a1dd7
      71dd1d91
  11. Aug 02, 2021
    • Naveen Albert's avatar
      app_dtmfstore: New application to store digits · 016f6a0e
      Naveen Albert authored
      Adds application to asynchronously collect digits
      dialed on a channel in the TX or RX direction
      using a framehook and stores them in a specified
      variable, up to a configurable number of digits.
      
      ASTERISK-29477
      
      Change-Id: I51aa93fc9507f7636ac44806c4420ce690423e6f
      016f6a0e
  12. Jul 22, 2021
  13. Jul 15, 2021
  14. Jul 08, 2021
    • Naveen Albert's avatar
      app_waitforcond: New application · 1b21b1ab
      Naveen Albert authored
      While several applications exist to wait for
      a certain event to occur, none allow waiting
      for any generic expression to become true.
      This application allows for waiting for a condition
      to become true, with configurable timeout and
      checking interval.
      
      ASTERISK-29444
      
      Change-Id: I08adf2824b8bc63405778cf355963b5005612f41
      1b21b1ab
  15. Jun 24, 2021
    • Andre Barbosa's avatar
      res_stasis_playback: Send PlaybackFinish event only once for errors · 283812e4
      Andre Barbosa authored
      When we try to play a list of sound files in the same Play command,
      we get only one PlaybackFinish event, after all sounds are played.
      
      But in the case where the Play fails (because channel is destroyed
      for example), Asterisk will send one PlaybackFinish event for each
      sound file still to be played. If the list is big, Asterisk is
      sending many events.
      
      This patch adds a failed state so we can understand that the play
      failed. On that case we don't send the event, if we still have a
      list of sounds to be played.
      
      When we reach the last sound, we send the PlaybackFinish with
      the failed state.
      
      ASTERISK-29464 #close
      
      Change-Id: I4c2e5921cc597702513af0d7c6c2c982e1798322
      283812e4
  16. Jun 23, 2021
    • Naveen Albert's avatar
      app_dial: Expanded A option to add caller announcement · c4236dcf
      Naveen Albert authored
      Hitherto, the A option has made it possible to play
      audio upon answer to the called party only. This option
      is expanded to allow for playback of an audio file to
      the caller instead of or in addition to the audio
      played to the answerer.
      
      ASTERISK-29442
      
      Change-Id: If6eed3ff5c341dc8c588c8210987f2571e891e5e
      c4236dcf
  17. Jun 17, 2021
  18. Jun 11, 2021
    • Naveen Albert's avatar
      app_originate: Allow setting Caller ID and variables · a611a0cd
      Naveen Albert authored
      Caller ID can now be set on the called channel and
      Variables can now be set on the destination
      using the Originate application, just as
      they can be currently using call files
      or the Manager Action.
      
      ASTERISK-29450
      
      Change-Id: Ia64cfe97d2792bcbf4775b3126cad662922a8b66
      a611a0cd
  19. Jun 08, 2021
    • Naveen Albert's avatar
      app_confbridge: New ConfKick() application · a40e58a4
      Naveen Albert authored
      Adds a new ConfKick() application, which may
      be used to kick a specific channel, all channels,
      or all non-admin channels from a specified
      conference bridge, similar to existing CLI and
      AMI commands.
      
      ASTERISK-29446
      
      Change-Id: I5d96b683880bfdd27b2ab1c3f2e897c5046ded9b
      a40e58a4
    • Naveen Albert's avatar
      res_pjsip_dtmf_info: Hook flash · 99573f95
      Naveen Albert authored
      Adds hook flash recognition support
      for application/hook-flash.
      
      ASTERISK-29460
      
      Change-Id: I1d060fa89a7cf41244c98f892fff44eb1c9738ea
      99573f95
    • Naveen Albert's avatar
      app_confbridge: New option to prevent answer supervision · a8615224
      Naveen Albert authored
      A new user option, answer_channel, adds the capability to
      prevent answering the channel if it hasn't already been
      answered yet.
      
      ASTERISK-29440
      
      Change-Id: I26642729d0345f178c7b8045506605c8402de54b
      a8615224
  20. May 27, 2021
    • George Joseph's avatar
      res_pjsip_messaging: Refactor outgoing URI processing · 8e2672d2
      George Joseph authored
       * Implemented the new "to" parameter of the MessageSend()
         dialplan application.  This allows a user to specify
         a complete SIP "To" header separate from the Request URI.
      
       * Completely refactored the get_outbound_endpoint() function
         to actually handle all the destination combinations that
         we advertized as supporting.
      
       * We now also accept a destination in the same format
         as Dial()...  PJSIP/number@endpoint
      
       * Added lots of debugging.
      
      ASTERISK-29404
      Reported by Brian J. Murrell
      
      Change-Id: I67a485196d9199916468f7f98bfb9a0b993a4cce
      8e2672d2
  21. May 26, 2021
    • Naveen Albert's avatar
      func_math: Three new dialplan functions · 9106c9d1
      Naveen Albert authored
      Introduces three new dialplan functions, MIN and MAX,
      which can be used to calculate the minimum or
      maximum of up to two numbers, and ABS, an absolute
      value function.
      
      ASTERISK-29431
      
      Change-Id: I2bda9269d18f9d54833c85e48e41fce0e0ce4d8d
      9106c9d1
    • Naveen Albert's avatar
      func_volume: Add read capability to function. · 033c2a22
      Naveen Albert authored
      Up until now, the VOLUME function has been write
      only, so that TX/RX values can be set but not
      read afterwards. Now, previously set TX/RX values
      can be read later.
      
      ASTERISK-29439
      
      Change-Id: Ia23e92fa2e755c36e9c8e69f2940d2703ccccb5f
      033c2a22
    • Joseph Nadiv's avatar
      res_pjsip.c: Support endpoints with domain info in username · b21d4d1b
      Joseph Nadiv authored
      In multidomain environments, it is desirable to create
      PJSIP endpoints with the domain info in the endpoint name
      in pjsip_endpoint.conf.  This resulted in an error with
      registrations, NOTIFY, and OPTIONS packet generation.
      
      This commit will detect if there is an @ in the endpoint
      identifier and generate the URI accordingly so NOTIFY and
      OPTIONS From headers will generate correctly.
      
      ASTERISK-28393
      
      Change-Id: I96f8d01dfdd5573ba7a28299e46271dd4210b619
      b21d4d1b
  22. May 21, 2021
  23. May 19, 2021
    • Joseph Nadiv's avatar
      res_pjsip_dialog_info_body_generator: Add LOCAL/REMOTE tags in dialog-info+xml · 83c2a16b
      Joseph Nadiv authored
      RFC 4235 Section 4.1.6 describes XML elements that should be
      sent to subscribed endpoints to identify the local and remote
      participants in the dialog.
      
      This patch adds this functionality to PJSIP by iterating through the
      ringing channels causing the NOTIFY, and inserts the channel info
      into the dialog so that information is properly passed to the endpoint
      in dialog-info+xml.
      
      ASTERISK-24601
      Patch submitted: Joshua Elson
      Modified by: Joseph Nadiv and Sean Bright
      Tested by: Joseph Nadiv
      
      Change-Id: I20c5cf5b45f34d7179df6573c5abf863eb72964b
      83c2a16b
    • Naveen Albert's avatar
      app_voicemail: Configurable voicemail beep · bfc25e5d
      Naveen Albert authored
      Hitherto, VoiceMail() played a non-customizable beep tone to indicate
      the caller could leave a message. In some cases, the beep may not
      be desired, or a different tone may be desired.
      
      To increase flexibility, a new option allows customization of the tone.
      If the t option is specified, the default beep will be overridden.
      Supplying an argument will cause it to use the specified file for the tone,
      and omitting it will cause it to skip the beep altogether. If the option
      is not used, the default behavior persists.
      
      ASTERISK-29349
      
      Change-Id: I1c439c0011497e28a28067fc1cf1e654c8843280
      bfc25e5d
    • 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
  24. May 11, 2021
    • Ben Ford's avatar
      STIR/SHAKEN: Switch to base64 URL encoding. · a84d3403
      Ben Ford authored
      STIR/SHAKEN encodes using base64 URL format. Currently, we just use
      base64. New functions have been added that convert to and from base64
      encoding.
      
      The origid field should also be an UUID. This means there's no reason to
      have it as an option in stir_shaken.conf, as we can simply generate one
      when creating the Identity header.
      
      https://wiki.asterisk.org/wiki/display/AST/OpenSIPit+2021
      
      Change-Id: Icf094a2a54e87db91d6b12244c9f5ba4fc2e0b8c
      a84d3403
    • Ben Ford's avatar
      STIR/SHAKEN: Fix certificate type and storage. · 5e6508b5
      Ben Ford authored
      During OpenSIPit, we found out that the public certificates must be of
      type X.509. When reading in public keys, we use the corresponding X.509
      functions now.
      
      We also discovered that we needed a better naming scheme for the
      certificates since certificates with the same name would cause issues
      (overwriting certs, etc.). Now when we download a public certificate, we
      get the serial number from it and use that as the name of the cached
      certificate.
      
      The configuration option public_key_url in stir_shaken.conf has also
      been renamed to public_cert_url, which better describes what the option
      is for.
      
      https://wiki.asterisk.org/wiki/display/AST/OpenSIPit+2021
      
      Change-Id: Ia00b20835f5f976e3603797f2f2fb19672d8114d
      5e6508b5
  25. 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
  26. Apr 29, 2021
Loading