Skip to content
Snippets Groups Projects
  1. Oct 24, 2016
    • George Joseph's avatar
      pjproject_bundled: Fixed various build issues · 16c23b57
      George Joseph authored
      * CFLAGS is now properly set when using older gcc.
      * All third-party pjproject targets have been removed.  This fixes
        an issue with older libsrtp in some distros.
      * Manually removing the source directory now causes a rebuild.
      * EXTERNALS_CACHE_DIR is now properly checked.
      * Whitespace fixes.
      
      Change-Id: I98fec6847efc5602a9f41cb95096fd660a49fa60
      16c23b57
  2. Oct 19, 2016
  3. Oct 18, 2016
  4. Oct 17, 2016
  5. Oct 16, 2016
    • George Joseph's avatar
      utils.c: Fix ast_set_default_eid for multiple platforms · 6651c66e
      George Joseph authored
      ast_set_default_eid was searching for ethX, emX, enoX, ensX and even
      pciD#U interface names.  While this was a good attempt, it wasn't
      inclusive enough to capture interfaces like enp6s0 or ens6d1, etc.
      
      Rather than relying on interface names, we now simply find the first
      interface returned by the OS that has a hardware address and that
      address isn't all 0x00 or all 0xff.  The code IS different for BSD,
      Solaris and Linux based on what method is available for enumerating
      interfaces.
      
      Tested on:
      FreeBSD9
      CentOS6
      Ubuntu14
      Fedora24
      
      I was unable to test on Solaris at this time but the code for Solaris
      is used elsewhere at Digium.
      
      Change-Id: Iaa6db87ca78a9a375e47d70e043ae08c1448cb72
      6651c66e
  6. Oct 15, 2016
    • Michael Kuron's avatar
      chan_sip: Only send video on outgoing channel if incoming channel supports it · e9315791
      Michael Kuron authored
      Previously, the settings videosupport=always and videosupport=yes behaved
      identically and unconditionally caused a video offer to be sent in the SDP on
      an outgoing call. This was a regression introduced with commit
      5a1d90e1 in Asterisk 1.6.1.
      
      This commit restores correct behavior: videosupport=always causes a video offer
      to be sent unconditionally, while videosupport=yes will only offer video on an
      outbound channel if the incoming channel it is bridged to also supports video.
      That way, the device receiving the outgoing call can display the correct user
      interface elements for audio or video and will not unnecessarily show a blank
      video window on an audio-only call.
      
      ASTERISK-17470 #close
      
      Change-Id: I782f4409d436114dbc97061c3570c0cd24f7c3ae
      e9315791
  7. Oct 14, 2016
  8. 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
  9. 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
Loading