Skip to content
Snippets Groups Projects
  1. Dec 14, 2021
    • Naveen Albert's avatar
      strings: Fix enum names in comment examples · 86bc3eef
      Naveen Albert authored
      The enum values for ast_strsep_flags includes
      AST_STRSEP_STRIP. However, some comments reference
      AST_SEP_STRIP, which doesn't exist. This fixes
      these comments to use the correct value.
      
      ASTERISK-29800 #close
      
      Change-Id: If7bbd0c0e6226a211d25ddf9d1629347e2674943
      86bc3eef
  2. Dec 13, 2021
    • Naveen Albert's avatar
      configs: Updates to sample configs · c6410dc4
      Naveen Albert authored
      Includes some minor updates to extensions.conf
      and iax.conf. In particular, the demonstration
      of macros in extensions.conf is removed, as
      Macro is deprecated and will be removed soon.
      These examples have been replaced with examples
      demonstrating the usage of Gosub instead.
      
      The older exten => ...,n syntax is also mostly
      replaced with the same keyword to demonstrate the
      newer, more concise way of defining extensions.
      
      IAXTEL no longer exists, so this example is replaced
      with something more generic.
      
      Some documentation is also added to extensions.conf
      and iax.conf to clarify some of the new expanded
      encryption capabilities with IAX2.
      
      ASTERISK-29758 #close
      
      Change-Id: I04fba9671aa1ee9ba1bd5027061f80bbe38e7b46
      c6410dc4
    • 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
      pbx_variables: Increase parsing capabilities of MSet · c6309af5
      Naveen Albert authored
      Currently MSet can only parse a maximum of 24 variables.
      If more variables are provided to MSet, the 24th variable
      will simply contain the remainder of the string and the
      remaining variables thereafter will never get set.
      
      This increases the number of variables that can be parsed
      in one go from 24 to 99. Additionally, documentation is added
      since this limitation is currently undocumented and is
      confusing to users who encounter this limitation.
      
      ASTERISK-29766 #close
      
      Change-Id: I3fe35b462dedec0a452fd9ea7f92c920a3939f16
      c6309af5
    • Naveen Albert's avatar
      chan_sip: Fix crash when accessing RURI before initiating outgoing call · 3108457d
      Naveen Albert authored
      Attempting to access ${CHANNEL(ruri)} in a pre-dial handler before
      initiating an outgoing call will cause Asterisk to crash. This is
      because a null field is accessed, resulting in an offset from null and
      subsequent memory access violation.
      
      Since RURI is not guaranteed to exist, we now check if the base
      pointer is non-null before calculating an offset.
      
      ASTERISK-29772
      
      Change-Id: Icd3b02f07256bbe6615854af5717074087b95a83
      3108457d
    • 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
    • Sean Bright's avatar
      CHANGES: Correct reference to configuration file. · 087f25d3
      Sean Bright authored
      Change-Id: I22a788ebf11168fff7fbf9ea956ebcd705ab63dd
      087f25d3
    • Naveen Albert's avatar
      pbx: Add variable substitution API for extensions · cc1418ef
      Naveen Albert authored
      Currently, variable substitution involving dialplan
      extensions is quite clunky since it entails obtaining
      the current dialplan location, backing it up, storing
      the desired variables for substitution on the channel,
      performing substitution, then restoring the original
      location.
      
      In addition to being clunky, things could also go wrong
      if an async goto were to occur and change the dialplan
      location during a substitution.
      
      Fundamentally, there's no reason it needs to be done this
      way, so new API is added to allow for directly passing in
      the dialplan location for the purposes of variable
      substitution so we don't need to mess with the channel
      information anymore. Existing API is not changed.
      
      ASTERISK-29745 #close
      
      Change-Id: I23273bf27fa0efb64a606eebf9aa8e2f41a065e4
      cc1418ef
    • 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
      progdocs: Fix Doxygen left-overs. · 4b6c7257
      Alexander Traud authored
      Change-Id: I5b5cf9c9cbbe00ba8b379a8d162ac67445d39016
      4b6c7257
    • Alexander Traud's avatar
      xmldoc: Correct definition for XML element 'matchInfo'. · 5b24edeb
      Alexander Traud authored
      ASTERISK-29791
      
      Change-Id: I7c656498427fcadd0a5d61a54ff67e6036609725
      5b24edeb
  3. 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
  4. Dec 07, 2021
  5. Dec 06, 2021
  6. Dec 03, 2021
    • Alexander Traud's avatar
      res: Fix for Doxygen. · 178cb0ff
      Alexander Traud authored
      These are the remaining issues found in /res.
      
      ASTERISK-29761
      
      Change-Id: I572e6019c422780dde5ce8448b6c85c77af6046d
      178cb0ff
    • 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
  7. Dec 02, 2021
  8. Nov 30, 2021
    • Naveen Albert's avatar
      documentation: Standardize examples · bcb7aee7
      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
      bcb7aee7
    • Sean Bright's avatar
      config.c: Prevent UB in ast_realtime_require_field. · 04ac4fe5
      Sean Bright authored
      A backend's implementation of the realtime 'require' function may call
      va_arg() and then fail, leaving the va_list in an undefined
      state. Pass a copy of the va_list instead.
      
      ASTERISK-29771 #close
      
      Change-Id: I555565a72af84e96d49f62fe8cb66ba5a78461f4
      04ac4fe5
    • Naveen Albert's avatar
      app_voicemail: Refactor email generation functions · 70cdb0f9
      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
      70cdb0f9
  9. Nov 29, 2021
  10. Nov 22, 2021
    • Jaco Kroon's avatar
      logger: use __FUNCTION__ instead of __PRETTY_FUNCTION__ · 89237be1
      Jaco Kroon authored
      
      This avoids a few long-name overflows, at the cost of less instructive
      names in the case of C++ (specifically overloaded functions and class
      methods).  This in turn is offset against the fact that we're logging
      the filename and line numbers in any case.
      
      Change-Id: I54101a0bb5f8cb9ef63ec12c5e0d4c8edafff9ed
      Signed-off-by: default avatarJaco Kroon <jaco@uls.co.za>
      89237be1
  11. Nov 19, 2021
    • Mike Bradeen's avatar
      astobj2.c: Fix core when ref_log enabled · ea941032
      Mike Bradeen authored
      In the AO2_ALLOC_OPT_LOCK_NOLOCK case the referenced obj
      structure is freed, but is then referenced later if ref_log is
      enabled. The change is to store the obj->priv_data.options value
      locally and reference it instead of the value from the freed obj
      
      ASTERISK-29730
      
      Change-Id: I60cc5dc1f5a4330e7ad56976fc38a42de0ab6072
      ea941032
    • Alexander Traud's avatar
      channels: Fix for Doxygen. · 3f86c95c
      Alexander Traud authored
      ASTERISK-29762
      
      Change-Id: Ia8811ac12b93ff8c18164699c6fbc604cb0a23f7
      3f86c95c
    • Joshua C. Colp's avatar
      bridge: Deny full Local channel pair in bridge. · 7d4e37a1
      Joshua C. Colp authored
      Local channels are made up of two pairs - the 1 and 2
      sides. When a frame goes in one side, it comes out the
      other. Back and forth. When both halves are in a
      bridge this creates an infinite loop of frames.
      
      This change makes it so that bridging no longer
      allows both of these sides to exist in the same
      bridge.
      
      ASTERISK-29748
      
      Change-Id: I29928b6de87cd9be996a77daccefd7c360fef651
      7d4e37a1
    • 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
    • Boris P. Korzun's avatar
      rtp_engine: Add type field for JSON RTCP Report stasis messages · 70b14f3e
      Boris P. Korzun authored
      ASTERISK-29727 #close
      
      Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82
      70b14f3e
  12. Nov 18, 2021
Loading