Skip to content
Snippets Groups Projects
  1. Mar 01, 2017
  2. Feb 28, 2017
  3. Feb 27, 2017
    • Jørgen H's avatar
      res_pjsip: Fix crash when contact has no status · 0595c31d
      Jørgen H authored
      This change fixes an assumption in res_pjsip that a contact will
      always have a status. There is a race condition where this is
      not true and would crash. The status will now be unknown when
      this situation occurs.
      
      ASTERISK-26623 #close
      
      Change-Id: Id52d3ca4d788562d236da49990a319118f8d22b5
      0595c31d
    • George Joseph's avatar
      res_pjsip_outbound_registration: Subscribe to network change events · c07bcca8
      George Joseph authored
      Outbound registration now subscribes to network change events
      published by res_stun_monitor and refreshes all registrations
      when an event happens.
      
      The 'pjsip send (un)register' CLI commands were updated to accept
      '*all' as an argument to operate on all registrations.
      
      The 'PJSIP(Un)Register' AMI commands were also updated to
      accept '*all'.
      
      ASTERISK-26808 #close
      
      Change-Id: Iad58a9e0aa5d340477fca200bf293187a6ca5a25
      c07bcca8
    • George Joseph's avatar
      build: Warn if asterisk is installed in both 32 and 64 bit sys dirs · 3d2c1197
      George Joseph authored
      ... and clean them both up on uninstall.
      
      We've fixed the issue where 'make install' was installing to
      /usr/lib on 64-bit systems that use /usr/lib64.  Now we need
      to clean up the remnants in /usr/lib.
      
      * 'make install' now prints a warning if DESTDIR/ASTLIBDIR
        contains 'lib64' and libasterisk* shared libraries or modules
        are also found in DESTDIR/ASTLIBDIR with 'lib64' transformed
        to 'lib'.
      
      * 'make uninstall' ALWAYS cleans up both DESTDIR/ASTLIBDIR and
        DESTDIR/ASTLIBDIR with 'lib64' transformed to 'lib'.
      
      ASTERISK-26705
      
      Change-Id: I6edddeb3c07a51e7c7ba7cac3c05e4bf3ec3f01f
      3d2c1197
    • Joshua Colp's avatar
      bridge_native_rtp: Handle case where channel joins already suspended. · eac81880
      Joshua Colp authored
      The bridge_native_rtp module did not properly handle the case where
      a smart bridge operation occurs while a channel is suspended. In this
      scenario the module would incorrectly set up local or remote RTP
      bridging despite the media having to flow through Asterisk. The remote
      endpoint would see two media streams and experience wonky audio.
      
      The module has been changed so that it ensures both channels are
      not suspended when performing the native RTP bridging and this
      requirement has been documented in the bridge technology.
      
      ASTERISK-26781
      
      Change-Id: Id4022d73ace837d4a293106445e3ade10dbc7c7c
      eac81880
  4. Feb 24, 2017
  5. Feb 23, 2017
    • George Joseph's avatar
      pjproject_bundled: Update for pjproject 2.6 · 9c05ddbd
      George Joseph authored
       * Removed all 2.5.5 functional patches.
       * Updated usages of pj_release_pool to be "safe".
       * Updated configure options to disable webrtc.
       * Updated config_site.h to disable webrtc in pjmedia.
       * Added Richard Mudgett's recent resolver patches.
      
      Change-Id: Ib400cc4dfca68b3d07ce14d314e829bfddc252c7
      9c05ddbd
    • George Joseph's avatar
      build: Execute ldconfig to build cache. (take two) · bee55aaf
      George Joseph authored
      On some platforms a multiarch approach is used for libraries.
      The build system does not take this into account and still
      places libraries into the lib directory if no --libdir is
      specified to configure. On initial startup this results in
      libasteriskssl.so not being found, as it is not in the multiarch
      lib directory.  To make matters worse, options were being passed
      to ldconfig on both Linux and FreeBSD that actually prevented
      the rebuild of the cache.
      
       * Fedora has a /usr/share/config.site that automatically tells
         autoconf to use /usr/lib64 but CentOS does not. This logic was
         copied to configure.ac and modified so systems like Ubuntu,
         which still use /usr/lib for 64-bit systems, aren't affected.
      
      Now that we have them in the correct directory...
      
      In order for the system loader to find libasteriskssl and
      libasteriskpj, one of 3 things has to happen...
      
        - The linker cache must be rebuilt including the directory
          where the libasterisk* libraries were installed.  Only root
          can rebuild the cache.  This was busted.
        - We have to link the asterisk binary with an rpath pointing
          to the directrory where the libasterisk* libraries were
          installed.  This makes things very complicated and will happen
          over the collective dead bodies of everyone who's had to
          package a distribution with an rpath.
        - Finally, you can start asterisk with LD_LIBRARY_PATH set to the
          directrory where the libasterisk* libraries were installed.
      
      There are no other options. So...
      
       * The invokation of ldconfig has been moved from main/Makefile
         to ASTTOPDIR/Makefile, the options have been removed, and
         DESTDIR/ASTLIBDIR appended.  If you aren't root, you will be
         warned after the "Asterisk Installation Compete" banner that
         you must re-run 'make install' as root, manually run
         'ldconfig DESTDIR/ASTLIBDIR' as root, or run asterisk with
         LD_LIBRARY_PATH.
      
      ASTERISK-26705
      
      Change-Id: I2a64b7c33a7d3e9bde20f47e3d3ab771977af982
      bee55aaf
    • Sean Bright's avatar
      res_config_pgsql: Fix thread safety problems · da0cadd1
      Sean Bright authored
      * A missing AST_LIST_UNLOCK() in find_table()
      
      * The ESCAPE_STRING() macro uses pgsqlConn under the hood and we were
        not consistently locking before calling it.
      
      * There were a handful of other places where pgsqlConn was accessed
        directly without appropriate locking.
      
      Change-Id: Iea63f0728f76985a01e95b9912c3c5c6065836ed
      da0cadd1
    • Joshua Colp's avatar
  6. Feb 22, 2017
  7. Feb 21, 2017
    • Sean Bright's avatar
      pbx_dundi: DUNDi weight parameter not processed correctly · 0654bf63
      Sean Bright authored
      The DUNDi weight field is not always converted from network byte order
      to host byte order. This can result in incorrect weight values and
      incorrect selection of DUNDi destinations.
      
      ASTERISK-18731 #close
      Reported by: Peter Racz
      Patches:
      	dundi_weight.patch (license #6290) patch uploaded by Peter Racz
      
      Change-Id: Iba3e1a700ff539db57211a7bbc26f7b22ea9a1be
      0654bf63
    • Joshua Colp's avatar
      Merge changes from topic 'ASTERISK-26580' into 13 · ef105410
      Joshua Colp authored
      * changes:
        res_config_ldap: Don't try to delete non-existent attributes
        res_config_ldap: Remove extraneous line numbers from log messages
        res_config_ldap: Make memory allocation more consistent
        res_config_ldap: Fix configuration inheritance from _general
      ef105410
    • zuul's avatar
    • Joshua Colp's avatar
    • Sean Bright's avatar
      realtime: Fix ast_load_realtime_multientry handling · d5522de5
      Sean Bright authored
      ast_load_realtime_multientry() returns an ast_config structure whose
      ast_categorys are keyed with the empty strings. Several modules were
      giving semantic meaning to the category names causing problems at
      runtime.
      
      * app_directory: Treated the category name as the mailbox name, and
        would fail to direct calls to the appropriate extension after an
        entry was chosen.
      
      * app_queue: Queues, queue members, and queue rules were all affected
        and needed to be updated.
      
      * pbx_realtime: Pattern matching would never succeed because the
        extension entered by the user was always compared to the empty
        string.
      
      Change-Id: Ie7e44986344b0b76ea8f6ddb5879f5040c6ca8a7
      d5522de5
    • Sean Bright's avatar
      realtime: Centralize some common realtime backend code · 5eb78752
      Sean Bright authored
      All of the realtime backends create artificial ast_categorys to pass
      back into the core as query results. These categories have no filename
      or line number information associated with them and the backends differ
      slightly on how they create them. So create a couple helper macros to
      help make things more consistent.
      
      Also updated the call sites to remove redundant error messages about
      memory allocation failure.
      
      Note that res_config_ldap sets the category filename to the 'table name'
      but that is not read by anything in the core, so I've dropped it.
      
      Change-Id: I3a1fd91e0c807dea1ce3b643b0a6fe5be9002897
      5eb78752
Loading