Skip to content
Snippets Groups Projects
  1. Jan 31, 2022
    • Naveen Albert's avatar
      cdr: allow disabling CDR by default on new channels · 6fc8453e
      Naveen Albert authored
      Adds a new option, defaultenabled, to the CDR core to
      control whether or not CDR is enabled on a newly created
      channel. This allows CDR to be disabled by default on
      new channels and require the user to explicitly enable
      CDR if desired. Existing behavior remains unchanged.
      
      ASTERISK-29808 #close
      
      Change-Id: Ibb78c11974bda229bbb7004b64761980e0b2c6d1
      6fc8453e
    • Kevin Harwell's avatar
      res_http_websocket: Add a client connection timeout · 98f86697
      Kevin Harwell authored
      Previously there was no way to specify a connection timeout when
      attempting to connect a websocket client to a server. This patch
      makes it possible to now do such.
      
      Change-Id: I5812f6f28d3d13adbc246517f87af177fa20ee9d
      98f86697
    • Sean Bright's avatar
      build: Rebuild configure and autoconfig.h.in · 5b47b7a3
      Sean Bright authored
      autoconfigh.h.in was missed in the original review for this
      issue. Additionally it looks like I have newer pkg-config autoconf
      macros on my development machine.
      
      ASTERISK-29817
      
      Change-Id: I3c85a4de82c5d7d6e0e23dad4c33bb650a86a57b
      5b47b7a3
  2. Jan 21, 2022
    • Mike Bradeen's avatar
      sched: fix and test a double deref on delete of an executing call back · ac8988c9
      Mike Bradeen authored
      sched: Avoid a double deref when AST_SCHED_DEL_UNREF is called on an
      executing call-back. This is done by adding a new variable 'rescheduled'
      to the struct sched which is set in ast_sched_runq and checked in
      ast_sched_del_nonrunning. ast_sched_del_nonrunning is a replacement for
      now deprecated ast_sched_del which returns a new possible value -2
      if called on an executing call-back with rescheduled set. ast_sched_del
      is modified to call ast_sched_del_nonrunning to maintain existing code.
      AST_SCHED_DEL_UNREF is also updated to look for the -2 in which case it
      will not throw a warning or invoke refcall.
      test_sched: Add a new unit test sched_test_freebird that will check the
      reference count in the resolved scenario.
      
      ASTERISK-29698
      
      Change-Id: Icfb16b3acbc29cf5b4cef74183f7531caaefe21d
      ac8988c9
  3. Jan 19, 2022
    • Michał Górny's avatar
      include: Remove unimplemented HMAC declarations · eef29d24
      Michał Górny authored
      Remove the HMAC declarations from the includes.  They are
      not implemented nor used anywhere, and their presence breaks the build
      on NetBSD that delivers an incompatible hmac() function in <stdlib.h>.
      
      ASTERISK-29818
      
      Change-Id: I0c4b88645e30174b1b63846a6b328625b69c2ea7
      eef29d24
    • Naveen Albert's avatar
      frame.h: Fix spelling typo · 18c257b4
      Naveen Albert authored
      Fixes CNG description from "noice" to "noise".
      
      ASTERISK-29855 #close
      
      Change-Id: Ie7cbbd7d72b426693df7447384ff8700318cd36d
      18c257b4
  4. Jan 17, 2022
    • George Joseph's avatar
      res_pjsip: Add utils for checking media types · 59cf9f00
      George Joseph authored
      Added two new functions to assist checking media types...
      
      * ast_sip_are_media_types_equal compares two pjsip_media_types.
      * ast_sip_is_media_type_in tests if one media type is in a list
        of others.
      
      Added static definitions for commonly used media types to
      res_pjsip.h.
      
      Changed several modules to use the new functions and static
      definitions.
      
      ASTERISK_29813
      (not ready to close)
      
      Change-Id: Ief77675235bd3bf00a6b095d4673fd878d0801b9
      59cf9f00
  5. 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
  6. Jan 05, 2022
    • 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
    • Kevin Harwell's avatar
      tcptls.c: refactor client connection to be more robust · 06f9227a
      Kevin Harwell authored
      The current TCP client connect code, blocks and does not handle EINTR
      error case.
      
      This patch makes the client socket non-blocking while connecting,
      ensures a connect does not immediately fail due to EINTR "errors",
      and adds a connect timeout option.
      
      The original client start call sets the new timeout option to
      "infinite", thus making sure old, orginal behavior is retained.
      
      ASTERISK-29746 #close
      
      Change-Id: I907571843a83e43c0742b95a64785f4411f02671
      06f9227a
    • Naveen Albert's avatar
      app_sf: Add full tech-agnostic SF support · dd6df425
      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
      dd6df425
  7. Dec 15, 2021
    • Kevin Harwell's avatar
      http.c: Add ability to create multiple HTTP servers · 05afa061
      Kevin Harwell authored
      Previously, it was only possible to have one HTTP server in Asterisk.
      With this patch it is now possible to have multiple HTTP servers
      listening on different addresses.
      
      Note, this behavior has only been made available through an API call
      from within the TEST_FRAMEWORK. Specifically, this feature has been
      added in order to allow unit test to create/start and stop servers,
      if one has not been enabled through configuration.
      
      Change-Id: Ic5fb5f11e62c019a1c51310f4667b32a4dae52f5
      05afa061
  8. 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
  9. Dec 13, 2021
    • 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
      progdocs: Fix Doxygen left-overs. · 4b6c7257
      Alexander Traud authored
      Change-Id: I5b5cf9c9cbbe00ba8b379a8d162ac67445d39016
      4b6c7257
  10. 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
  11. Dec 02, 2021
  12. Nov 30, 2021
    • 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
  13. Nov 29, 2021
  14. 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
  15. Nov 18, 2021
  16. Nov 16, 2021
    • Josh Soref's avatar
      include: Spelling fixes · b13acf3a
      Josh Soref authored
      Correct typos of the following word families:
      
      activities
      forward
      occurs
      unprepared
      association
      compress
      extracted
      doubly
      callback
      prometheus
      underlying
      keyframe
      continue
      convenience
      calculates
      ignorepattern
      determine
      subscribers
      subsystem
      synthetic
      applies
      example
      manager
      established
      result
      microseconds
      occurrences
      unsuccessful
      accommodates
      related
      signifying
      unsubscribe
      greater
      fastforward
      itself
      unregistering
      using
      translator
      sorcery
      implementation
      serializers
      asynchronous
      unknowingly
      initialization
      determining
      category
      these
      persistent
      propagate
      outputted
      string
      allocated
      decremented
      second
      cacheability
      destructor
      impaired
      decrypted
      relies
      signaling
      based
      suspended
      retrieved
      functions
      search
      auth
      considered
      
      ASTERISK-29714
      
      Change-Id: I542ce887a16603f886a915920d5710d4a0a1358d
      b13acf3a
  17. Oct 28, 2021
    • Kevin Harwell's avatar
      strings/json: Add string delimter match, and object create with vars methods · ae97aaed
      Kevin Harwell authored
      Add a function to check if there is an exact match a one string between
      delimiters in another string.
      
      Add a function that will create an ast_json object out of a list of
      Asterisk variables. An excludes string can also optionally be passed
      in.
      
      Also, add a macro to make it easier to get object integers.
      
      Change-Id: I5f34f18e102126aef3997f19a553a266d70d6226
      ae97aaed
  18. 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
  19. Oct 21, 2021
Loading