Skip to content
Snippets Groups Projects
  1. Oct 17, 2016
    • Matt Jordan's avatar
      res/ari: Add the Asterisk EID field to outgoing events · dd5129d8
      Matt Jordan authored
      This patch adds the Asterisk EID field to all outgoing ARI events.
      Because this field should be added to all events as they are
      transmitted, it is appended to the JSON message just prior to it being
      handed off to the application message handler. This makes it somewhat
      resilient to both new events being added to ARI, as well as other
      potential event transport mechanisms.
      
      ASTERISK-26470 #close
      
      Change-Id: Ieff0ecc24464e83f3f44e9c3e7bd9a5d70b87a1d
      dd5129d8
  2. Oct 14, 2016
  3. Oct 13, 2016
    • Richard Mudgett's avatar
      Audit ast_json_pack() calls for needed UTF-8 checks. · 9c49b963
      Richard Mudgett authored
      Added needed UTF-8 checks before constructing json objects in various
      files for strings obtained outside the system.  In this case string values
      from a channel driver's peer and not from the user setting channel
      variables.
      
      * aoc.c: Fixed type mismatch in s_to_json() for time and granularity json
      object construction.
      
      ASTERISK-26466
      Reported by: Richard Mudgett
      
      Change-Id: Iac2d867fa598daba5c5dbc619b5464625a7f2096
      9c49b963
    • Richard Mudgett's avatar
      json: Check party id name, number, subaddresses for UTF-8. · 774d5f7e
      Richard Mudgett authored
      * Updated unit test as ast_json_name_number() is now NULL tolerant.
      
      ASTERISK-26466 #close
      Reported by: Richard Mudgett
      
      Change-Id: I7d4e14194f8f81f24a1dc34d1b8602c0950265a6
      774d5f7e
    • Richard Mudgett's avatar
      json: Add UTF-8 check call. · 1c4c6c08
      Richard Mudgett authored
      Since the json library does not make the check function public we
      recreate/copy the function in our interface module.
      
      ASTERISK-26466
      Reported by: Richard Mudgett
      
      Change-Id: I36d3d750b6f5f1a110bc69ea92b435ecdeeb2a99
      1c4c6c08
    • Richard Mudgett's avatar
      aoc.c: Whitespace cleanup · 6fe5202c
      Richard Mudgett authored
      * In s_to_json() removed unnecessary ast_json_ref() to ast_json_null()
      when creating the type json object.  The ref is a noop.
      
      Change-Id: I2be8b836876fc2e34a27c161f8b1c53b58a3889a
      6fe5202c
    • Richard Mudgett's avatar
      app_minivm.c: Fix malformed ast_json_pack() call. · c3bf1632
      Richard Mudgett authored
      Change-Id: I082b239022fac462666e52a14a44304748908dc0
      c3bf1632
    • Richard Mudgett's avatar
      app_queue.c: Fix clearing of pause reason string. · 9c54964d
      Richard Mudgett authored
      The pause reason is not always cleared when it should be cleared.
      
      * Made set_queue_member_pause() always clear pause reason if not pausing
      with a reason string.
      
      Change-Id: I993dad19626ec017478a230e980989438b778c53
      9c54964d
  4. Oct 12, 2016
    • George Joseph's avatar
      res_config_mysql: Fix several issues related to recent table changes · 3b3d0688
      George Joseph authored
      Unlike any of the other database drivers, res_config_mysql checks that
      the table definition matches the requirements for every insert and
      update statement.  Since all requirements are forced to 'char', any
      column that isn't a char, like ps_contacts' expiration_time,
      qualify_timeout, etc., will throw a warning.  It's kinda harmless but
      very misleading.  Since no other driver does those checks on insert
      or update, they've been removed from res_config_mysql.  Also, all
      the logic that actually attempted to ALTER the table to fix the issue
      has been removed.  With the move to alembic, the auto-alter
      functionality is not only unnecessary, it's also dangerous.
      
      The other issue is that res_config_mysql calls the mysql_insert_id
      function inside store_mysql.  Presumably the intention was to return
      the number of rows inserted DESPITE A NOTE IN THE CODE THAT THE VALUE
      IS NON_PORTABLE AND MAY CHANGE.  That value is then returned to
      config realtime as the number of rows inserted.  Guess what?  The value
      changed.  It now only returns the number of rows inserted if there's an
      auto increment column on the table, which ps_contacts doesn't have.
      Otherwise it returns 0.  So now, the insert worked but we tell config
      realtime and sorcery that no rows were inserted.  That call to
      mysql_insert_id was removed and we now always return 1 if the insert
      succeeded.  We're only inserting 1 row at a time anyway.  If the insert
      fails, we still return -1.
      
      ASTERISK-26362 #close
      Reported-by: Carlos Chavez
      
      Change-Id: I83ce633efdb477b03c8399946994ee16fefceaf4
      3b3d0688
    • frahaase's avatar
      Binaural synthesis (confbridge): Adds libfftw3 as dependency. · dd6fc1bb
      frahaase authored
      Adds libfftw3 to the build chain that is is going to be used for binaural
      synthesis by bridge_softmix.
      
      ASTERISK-26292
      
      Change-Id: Iedc2f174e4ccb39ae5d9e698e339c6a17155867b
      dd6fc1bb
    • zuul's avatar
    • zuul's avatar
    • Torrey Searle's avatar
      res_fax: Fix a tight race condition causing fax to crash in audio fallback · 20c3dba3
      Torrey Searle authored
      When T.38 gets rejected and G711 failback occurs there is a period of
      time where neither AST_FAX_TECH_T38 nor AST_FAX_TECH_AUDIO is set,
      leading to a crash.
      
      Change-Id: Icc3f457b2292d48a9d7843dac0028347420cc982
      20c3dba3
    • zuul's avatar
    • zuul's avatar
  5. Oct 11, 2016
  6. Oct 10, 2016
    • Joshua Colp's avatar
      28c0e7ab
    • Torrey Searle's avatar
      res_rtp_asterisk: Fix infinite DTMF issue when switching to P2P bridge · cc269766
      Torrey Searle authored
      If a bridge switched to P2P when a DTMF was in progress it
      was possible for the DTMF to continue being sent indefinitely.
      
      Change-Id: I7e2a3efe0d59d4b214ed50cd0b5d0317e2d92e29
      cc269766
    • Corey Farrell's avatar
      logger: Prevent output of verbose messages initiated from rasterisk. · fafdde32
      Corey Farrell authored
      Remote asterisk consoles should only display verbose log messages
      created by the daemon.  The first patch for ASTERISK-26410 caused
      a couple verbose messages to be printed when the rasterisk process
      ended.
      
      ASTERISK-26410
      
      Change-Id: Ie2a1bb3753ad2724c0349ec1a336f52f7117b52a
      fafdde32
    • Michael Walton's avatar
      audiohooks: Remove redundant codec translations when using audiohooks · 7af7490e
      Michael Walton authored
      The main frame read and write handlers in main/channel.c don't use the
      optimum placement in the processing flow for calling audiohooks
      callbacks, as far as codec translation is concerned. This change places
      the audiohooks callback code:
       * After the channel read translation if the frame is not linear before
      the translation, thereby increasing the chance that the frame is linear
      as required by audiohooks
       * Before the channel write translation if the frame is linear at this
      point
      This prevents the audiohooks code from instantiating additional
      translation paths to/from linear where a linear frame format is already
      available, saving valuable CPU cycles
      
      ASTERISK-26419
      
      Change-Id: I6edd5771f0740e758e7eb42558b953f046c01f8f
      7af7490e
    • Badalyan Vyacheslav's avatar
      res_pjsip_config_wizard: Memory leak in module_unload · 3ab7fae9
      Badalyan Vyacheslav authored
      Fixed a memory leak. It removes only the first element.
      Added a useful feature in vector.h to remove all items
      under the CMP through a callback function / macro.
      
      ASTERISK-26453 #close
      
      Change-Id: I84508353463456d2495678f125738e20052da950
      3ab7fae9
    • Ludovic Gasc (GMLudo)'s avatar
      res_calendar: Add support for fetching calendars when reloading · 9f62feca
      Ludovic Gasc (GMLudo) authored
      We use a lot res_calendar, we are very happy with that, especially
      because you use libical, the almost alone opensource library that
      supports really ical format with all types of recurrency.
      
      Nevertheless, some features are missed for our business use cases.
      
      This first patch adds a new option in calendar.conf:
      fetch_again_at_reload. Be my guest for a better name.
      
      If it's true, when you'll launch "module reload res_calendar.so",
      Asterisk will download again the calendar.
      
      The business use case is that we have a WebUI with a scheduler planner,
      we know when the calendars are modified.
      
      For now, we need to define 1 minute of timeout to have a chance that
      our user doesn't wait too long between the modification and the real
      test.  But it generates a lot of useless HTTP traffic.
      
      
      ASTERISK-26422 #close
      
      Change-Id: I384b02ebfa42b142bbbd5b7221458c7f4dee7077
      9f62feca
    • Joshua Colp's avatar
    • Badalyan Vyacheslav's avatar
      cel_odbc: Fix memory leak on module unload · ca2f3e5b
      Badalyan Vyacheslav authored
      Change-Id: Ic7a1236eba2408090fdabb5f717b5fa455ead715
      ca2f3e5b
    • George Joseph's avatar
      bundled_pjproject: Add tests for programs used by the Makefile, et al. · 5fb848ee
      George Joseph authored
      Added tests for bzip2, tar, patch, sed and nm to configure.ac.
      
      Set DOWNLOAD_TO_STDOUT to a working command line regardless of
      whether the download program is wget, curl or fetch.
      
      Added a 'configure.m4' file to the third-party directory which takes
      care of calling any third-party project setup.  Had to move some
      pjproject_bundled stuff up in configure.ac so it was called before
      the third-party configure macro.
      
      The pjproject tarball is now downloaded to the externals_cache_dir if
      it was specified on the ./configure command line
      
      Removed regeneration of the pjproject aconfigure file.  It was only
      needed for an old patch that no longer applies.
      
      Converted the tests for symbols to explicit tests since we know that
      they're now available in the bundled version.  Saves a little time
      during configure.
      
      ASTERISK-26416 #close
      Reported-by: Corey Farrell
      
      Change-Id: Id1d94251c0155f8dd41b7de7067f35cfbaafbb9b
      (cherry picked from commit e6b0053d)
      (cherry picked from commit a0d02f38)
      5fb848ee
  7. Oct 09, 2016
Loading