Skip to content
Snippets Groups Projects
  1. Jan 07, 2022
    • George Joseph's avatar
      bundled_pjproject: Make it easier to hack · 3f093b8d
      George Joseph authored
      There are times when you need to troubleshoot issues with bundled
      pjproject or add new features that need to be pushed upstream
      but...
      
      * The source directory created by extracting the pjproject tarball
        is not scanned for code changes so you have to keep forcing
        rebuilds.
      * The source directory isn't a git repo so you can't easily create
        patches, do git bisects, etc.
      * Accidentally doing a make distclean will ruin your day by wiping
        out the source directory, and your changes.
      * etc.
      
      This commit makes that easier.
      See third-party/pjproject/README-hacking.md for the details.
      
      ASTERISK-29824
      
      Change-Id: Idb1251040affdab31d27cd272dda68676da9b268
      3f093b8d
  2. Jan 05, 2022
    • Mark Petersen's avatar
      app_queue.c: Support for Nordic syntax in announcements · dea71ddb
      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
      dea71ddb
    • Naveen Albert's avatar
      ami: Add AMI event for Wink · f133ae6c
      Naveen Albert authored
      Adds an AMI event for a wink frame.
      
      ASTERISK-29830 #close
      
      Change-Id: I83e426de5e37baed79a4dbcc91e9e8d030ef1b56
      f133ae6c
    • Naveen Albert's avatar
      cli: Add module refresh command · 1c2f311b
      Naveen Albert authored
      Adds a command to the CLI to unload and then
      load a module. This makes it easier to perform
      these operations which are often done
      subsequently to load a new version of a module.
      
      "module reload" already refers to reloading of
      configuration, so the name "refresh" is chosen
      instead.
      
      ASTERISK-29807 #close
      
      Change-Id: I595f6f11774a0de2565a1fba38da22309ce93a2c
      1c2f311b
  3. Dec 15, 2021
  4. Dec 14, 2021
    • Mark Petersen's avatar
      app_voicemail.c: Support for Danish syntax in VM · a4c42e70
      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
      a4c42e70
  5. Dec 13, 2021
    • Naveen Albert's avatar
      app_sendtext: Add ReceiveText application · 2f1eb561
      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
      2f1eb561
    • Naveen Albert's avatar
      func_json: Adds JSON_DECODE function · c0cdaf02
      Naveen Albert authored
      Adds the JSON_DECODE function for parsing JSON in the
      dialplan. JSON parsing already exists in the Asterisk
      core and is used for many different things. This
      function exposes the basic parsing capability to
      the user in the dialplan, for instance, in conjunction
      with CURL for using API responses.
      
      ASTERISK-29706 #close
      
      Change-Id: Iea60c49a7358dfdc2db60803cdc9a742f808ba2c
      c0cdaf02
    • Naveen Albert's avatar
      app_mf: Add full tech-agnostic MF support · 2b2b708d
      Naveen Albert authored
      Adds tech-agnostic support for MF signaling by adding
      MF sender and receiver applications as well as Dial
      integration.
      
      ASTERISK-29496-mf #do-not-close
      
      Change-Id: I61962b359b8ec4cfd05df877ddf9f5b8f71927a4
      2b2b708d
    • Alexander Traud's avatar
      xmldoc: Avoid whitespace around value for parameter/required. · 55dd77b9
      Alexander Traud authored
      Otherwise, the value 'false' was not found in the enumerated set of
      the XML DTD for the XML attribute 'required' in the XML element
      'parameter'. Therefore, DTD validation of the runtime XML failed.
      
      ASTERISK-29790
      
      Change-Id: Id13f230ad65a70dd8c2e3ae9ac85d1e841aed03e
      55dd77b9
    • Alexander Traud's avatar
      xmldoc: Correct definition for XML element 'matchInfo'. · 5b24edeb
      Alexander Traud authored
      ASTERISK-29791
      
      Change-Id: I7c656498427fcadd0a5d61a54ff67e6036609725
      5b24edeb
  6. Dec 08, 2021
    • Alexander Traud's avatar
      progdocs: Update Makefile. · d914e144
      Alexander Traud authored
      In developer mode, use internal documentation as well.
      This should produce no warnings. Fix yours!
      
      In noisy mode, output all possible warnings of Doxygen.
      This creates zillion of warnings. Double-check your current module!
      
      Any warnings are in the file './doxygen.log'. Beside that, this change
      avoids deprecated parameters because the configuration file for Doxygen
      contains only those parameters which differ from the default. This
      avoids the need to update the file on each run. Furthermore, it adds
      AST_VECTOR to be expanded. Finally, the default name for that file is
      Doxyfile. Therefore, let us use that!
      
      ASTERISK-26991
      ASTERISK-20259
      
      Change-Id: I4129092a199d5e24c319a09cd088614b121015af
      d914e144
  7. Dec 03, 2021
    • Dustin Marquess's avatar
      res_fax_spandsp: Add spandsp 3.0.0+ compatibility · b2e71b82
      Dustin Marquess authored
      Newer versions of spandsp did refactoring of code to add new features
      like color FAXing. This refactoring broke backwards compatibility.
      Add support for the new version while retaining support for 0.0.6.
      
      ASTERISK-29729 #close
      
      Change-Id: I3bd74550604ebcf0304528d647fa39abc62fbaa1
      b2e71b82
  8. Dec 02, 2021
  9. Nov 19, 2021
    • Naveen Albert's avatar
      res_tonedetect: Add call progress tone detection · ca2e13e1
      Naveen Albert authored
      Makes basic call progress tone detection available
      in a tech-agnostic manner with the addition of the
      ToneScan application. This can determine if the channel
      has encountered a busy signal, SIT tones, dial tone,
      modem, fax machine, etc. A few basic async progress
      tone detect options are also added to the TONE_DETECT
      function.
      
      ASTERISK-29720 #close
      
      Change-Id: Ia02437e0450473031e294798b8cb421fb8f24e90
      ca2e13e1
  10. Nov 15, 2021
    • Josh Soref's avatar
      doc: Spelling fixes · 135d51e5
      Josh Soref authored
      Correct typos of the following word families:
      
      transparent
      roughly
      
      ASTERISK-29714
      
      Change-Id: I2b90c68dfde4aa3f0d58f64f8187465336acb1b3
      135d51e5
  11. Nov 08, 2021
    • Naveen Albert's avatar
      chan_iax2: Allow both secret and outkey at dial time · bea08a56
      Naveen Albert authored
      Historically, the dial syntax for IAX2 has held that
      an outkey (used only for RSA authenticated calls)
      and a secret (used only for plain text and MD5 authenticated
      calls, historically) were mutually exclusive, and thus
      the same position in the dial string was used for both
      values.
      
      Now that encryption is possible with RSA authentication,
      this poses a limitation, since encryption requires a
      secret and RSA authentication requires an outkey. Thus,
      the dial syntax is extended so that both a secret and
      an outkey can be specified.
      
      The new extended syntax is backwards compatible with the
      old syntax. However, a secret can now be specified after
      the outkey, or the outkey can be specified after the secret.
      This makes it possible to spawn an encrypted RSA authenticated
      call without a corresponding peer being predefined in iax.conf.
      
      ASTERISK-29707 #close
      
      Change-Id: I1f8149313ed760169d604afbb07720a8b07dd00e
      bea08a56
  12. Oct 28, 2021
    • George Joseph's avatar
      ast_coredumper: Refactor to better find things · 08cb6725
      George Joseph authored
      The search for a running asterisk when --running is used
      has been greatly simplified and in the event it doesn't
      work, you can now specify a pid to use on the command
      line with --pid.
      
      The search for asterisk modules when --tarball-coredumps
      is used has been enhanced to have a better chance of finding
      them and in the event it doesn't work, you can now specify
      --libdir on the command line to indicate the library directory
      where they were installed.
      
      The DATEFORMAT variable was renamed to DATEOPTS and is now
      passed to the 'date' utility rather than running DATEFORMAT
      as a command.
      
      The coredump and output files are now renamed with DATEOPTS.
      This can be disabled by specifying --no-rename.
      
      Several confusing and conflicting options were removed:
      --append-coredumps
      --conffile
      --no-default-search
      --tarball-uniqueid
      
      The script was re-structured to make it easier for follow.
      
      Change-Id: I674be64bdde3ef310b6a551d4911c3b600ffee59
      08cb6725
  13. Oct 27, 2021
    • Ben Ford's avatar
      STIR/SHAKEN: Option split and response codes. · 2e55c0fd
      Ben Ford authored
      The stir_shaken configuration option now has 4 different choices to pick
      from: off, attest, verify, and on. Off and on behave the same way they
      do now. Attest will only perform attestation on the endpoint, and verify
      will only perform verification on the endpoint.
      
      Certain responses are required to be sent based on certain conditions
      for STIR/SHAKEN. For example, if we get a Date header that is outside of
      the time range that is considered valid, a 403 Stale Date response
      should be sent. This and several other responses have been added.
      
      Change-Id: I4ac1ecf652cd0e336006b0ca638dc826b5b1ebf7
      2e55c0fd
  14. Oct 25, 2021
  15. Oct 21, 2021
    • Shloime Rosenblum's avatar
      apps/app_playback.c: Add 'mix' option to app_playback · 63c8d12e
      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
      63c8d12e
  16. Oct 13, 2021
  17. Oct 07, 2021
    • Naveen Albert's avatar
      chan_iax2: Add encryption for RSA authentication · 437b2bfb
      Naveen Albert authored
      Adds support for encryption to RSA-authenticated
      calls. Also prevents crashes if an RSA IAX2 call
      is initiated to a switch requiring encryption
      but no secret is provided.
      
      ASTERISK-20219
      
      Change-Id: I18f1f9d7c59b4f9cffa00f3b94a4c875846efd40
      437b2bfb
  18. Oct 06, 2021
    • Matthew Kern's avatar
      res_pjsip_t38: bind UDPTL sessions like RTP · 15e43222
      Matthew Kern authored
      In res_pjsip_sdp_rtp, the bind_rtp_to_media_address option and the
      fallback use of the transport's bind address solve problems sending
      media on systems that cannot send ipv4 packets on ipv6 sockets, and
      certain other situations. This change extends both of these behaviors
      to UDPTL sessions as well in res_pjsip_t38, to fix fax-specific
      problems on these systems, introducing a new option
      endpoint/t38_bind_udptl_to_media_address.
      
      ASTERISK-29402
      
      Change-Id: I87220c0e9cdd2fe9d156846cb906debe08c63557
      15e43222
  19. Sep 24, 2021
    • Joseph Nadiv's avatar
      res_pjsip_registrar: Remove unavailable contacts if exceeds max_contacts · 43687640
      Joseph Nadiv authored
      The behavior of max_contacts and remove_existing are connected.  If
      remove_existing is enabled, the soonest expiring contacts are removed.
      This may occur when there is an unavailable contact.  Similarly,
      when remove_existing is not enabled, registrations from good
      endpoints are rejected in favor of retaining unavailable contacts.
      
      This commit adds a new AOR option remove_unavailable, and the effect
      of this setting will depend on remove_existing.  If remove_existing
      is set to no, we will still remove unavailable contacts when they
      exceed max_contacts, if there are any. If remove_existing is set to
      yes, we will prioritize the removal of unavailable contacts before
      those that are expiring soonest.
      
      ASTERISK-29525
      
      Change-Id: Ia2711b08f2b4d1177411b1be23e970d7fdff5784
      43687640
  20. Sep 22, 2021
  21. Sep 21, 2021
    • Naveen Albert's avatar
      func_channel: Add CHANNEL_EXISTS function. · cf0d656a
      Naveen Albert authored
      Adds a function to check for the existence of a channel by
      name or by UNIQUEID.
      
      ASTERISK-29656 #close
      
      Change-Id: Ib464e9eb6e13dc683a846286798fecff4fd943cb
      cf0d656a
    • Naveen Albert's avatar
      logger: Add custom logging capabilities · a65bb134
      Naveen Albert authored
      Adds the ability for users to log to custom log levels
      by providing custom log level names in logger.conf. Also
      adds a logger show levels CLI command.
      
      ASTERISK-29529
      
      Change-Id: If082703cf81a436ae5a565c75225fa8c0554b702
      a65bb134
  22. Sep 16, 2021
  23. Sep 14, 2021
    • Naveen Albert's avatar
      app_mf: Add channel agnostic MF sender · 60daa8f7
      Naveen Albert authored
      Adds a SendMF application and PlayMF manager
      event to send arbitrary R1 MF tones on the
      current or specified channel.
      
      ASTERISK-29496
      
      Change-Id: I5d89afdbccee3f86cc702ed96d882f3d351327a4
      60daa8f7
  24. Sep 10, 2021
    • Naveen Albert's avatar
      func_strings: Add STRBETWEEN function · 6198c1d2
      Naveen Albert authored
      Adds the STRBETWEEN function, which can be used to insert a
      substring between each character in a string. For instance,
      this can be used to insert pauses between DTMF tones in a
      string of digits.
      
      ASTERISK-29627
      
      Change-Id: Ice23009d4a8e9bb9718d2b2301d405567087d258
      6198c1d2
    • Naveen Albert's avatar
      func_env: Add DIRNAME and BASENAME functions · 19de228e
      Naveen Albert authored
      Adds the DIRNAME and BASENAME functions, which are
      wrappers around the corresponding C library functions.
      These can be used to safely and conveniently work with
      file paths and names in the dialplan.
      
      ASTERISK-29628 #close
      
      Change-Id: Id3aeb907f65c0ff96b6e57751ff0cb49d61db7f3
      19de228e
    • Naveen Albert's avatar
      func_sayfiles: Retrieve say file names · b6b7b149
      Naveen Albert authored
      Up until now, all of the logic used to translate
      arguments to the Say applications has been
      directly coupled to playback, preventing other
      modules from using this logic.
      
      This refactors code in say.c and adds a SAYFILES
      function that can be used to retrieve the file
      names that would be played. These can then be
      used in other applications or for other purposes.
      
      Additionally, a SayMoney application and a SayOrdinal
      application are added. Both SayOrdinal and SayNumber
      are also expanded to support integers greater than
      one billion.
      
      ASTERISK-29531
      
      Change-Id: If9718c89353b8e153d84add3cc4637b79585db19
      b6b7b149
    • 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
  25. Sep 09, 2021
  26. 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
  27. 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
  28. 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
Loading