Skip to content
Snippets Groups Projects
  1. Feb 25, 2022
    • Maxim Cournoyer's avatar
      globals.mk: Remove dead code. · 0f0bb5d8
      Maxim Cournoyer authored and Amin Bandali's avatar Amin Bandali committed
      astyle was removed in favor of clang-format in commit
      85510893.
      
      * globals.mk (ASTYLERC, indent): Delete variables.
      (indent): Delete target.
      
      Change-Id: I138f887a5845ff24e12c5c8ece26e30d4cfc7616
      0f0bb5d8
    • Maxim Cournoyer's avatar
      account: Make the default ringtone path portable. · e23a8867
      Maxim Cournoyer authored and Amin Bandali's avatar Amin Bandali committed
      Before this change, the default ringtone path would be for example set
      to "/data/data/cx.ring/files/ringtones/default.opus" on Android;
      migrating the account to GNU/Linux would cause the ringtone to not be
      found.  The change leverages existing code that searches for a base
      file name in a JAMI_DATADIR-prefixed location.
      
      * globals.mk: Set JAMI_DATADIR from the environment if it's defined.
      * src/account.cpp (DEFAULT_RINGTONE_PATH): Universally set to
      "default.opus";
      * src/manager.cpp: Add a definition check for the JAMI_DATADIR macro.
      (Manager::playRingtone): Go through the ringtone path resolution
      scheme on all platforms.  Some platforms will need to define the
      JAMI_DATADIR macro correctly for this to work; for example the
      libjami build on Android should have the JAMI_DATADIR macro set to
      "/data/data/cx.ring/files" for this to work correctly.
      
      Accompanying client-android change:
      https://review.jami.net/c/jami-client-android/+/21148
      
      
      
      Co-authored-by: default avatarAmin Bandali <amin.bandali@savoirfairelinux.com>
      Change-Id: Ia408a8db263af91c2734f61aa38c4ed717605359
      e23a8867
  2. Jan 20, 2022
    • Maxim Cournoyer's avatar
      build: Rename PROGSHAREDIR to JAMI_DATADIR. · 754ae6bf
      Maxim Cournoyer authored and Amin Bandali's avatar Amin Bandali committed
      This name matches a common naming convention in build systems.
      
      * compat/msvc/config.h (PROGSHAREDIR): Rename to...
      (JAMI_DATADIR) ... this.
      * globals.mk (-DJAMI_DATADIR): Likewise.
      * meson.build (conf): Likewise.
      * src/account.cpp: Likewise.
      * src/manager.cpp (Manager::playRingtone): Likewise.
      
      Change-Id: I123251f3e420948bc7359ce0a3ac54bddd12977a
      754ae6bf
  3. Jul 15, 2021
    • Maxim Cournoyer's avatar
      daemon: Rename dring occurrences in code and file names to jamid. · ba3a411c
      Maxim Cournoyer authored and Maxim Cournoyer's avatar Maxim Cournoyer committed
      Automated using the following commands:
      
        $ mv src/{dring,jami}
        $ git grep -l src/dring | xargs sed -i 's,src/dring,src/jami,g'
        $ git grep -l '#include "dring/' | \
          xargs sed -i 's,#include "dring/,#include "jami/,g'
        $ git grep -l 'dring.h' | xargs sed -i 's,dring.h,jami.h,g'
      
      And finally,
      
        $ git grep -l 'dring' | xargs sed -i 's,dring,jami,g'
      
        $ files=$(find -name '*dring*' | sort)
        $ for f in $files; do mkdir -p "$(dirname "$f")"; \
            mv "$f" "$(echo $f | sed 's/dring/jami/g')"; done
      
      To resolve a bad renaming favorably:
      
        $ git grep -l -i AlsaCarjami | \
          xargs sed -i -E 's/([Aa])lsaCarjami/\1lsaCardRingtone/g'
      
      The above renaming command is not perfect, so some hand-tuning was
      required to complete it.
      
      * src/manager.cpp (Manager::ManagerPimpl::retrieveConfigPath):
      Preserve the dring.yml configuration file name, until we add something
      to migrate (rename) it to jami.yml.
      * man/dring.pod: Delete.
      * bin/dbus/jamid.pod: Move to ...
      * man/jamid.pod: here.
      * bin/dbus/meson.build (jamid_targets): Normalize man section to the
      pre-existing 1 and adjust accordingly.
      * src/jami/def.h (dring_EXPORTS): Rename to ...
      (jami_EXPORTS): ... this.
      
      change-Id: I9828be6da9c711ab2f22c4d1b9539fea89d7b6fb
      Unverified
      ba3a411c
  4. Jun 28, 2021
    • Maxim Cournoyer's avatar
      daemon: Use the PROGSHAREDIR macro to refer to the custom datadir. · f0fb8148
      Maxim Cournoyer authored and Adrien Béraud's avatar Adrien Béraud committed
      The sources previously hard-coded the location of the default Jami
      ringtone as "/usr/share/ring/ringtones/default.opus".  It should
      instead be computed from the already existing PROGSHAREDIR macro,
      which is built from Autoconf's configurable datadir.
      
      * globals.mk (-DPROGSHAREDIR): Rename the 'ring' subdirectory to
      'jami'.
      * meson.build (conf): Likewise.
      * ringtones/Makefile.am (dist_jamiringtones_DATA): s/ring/jami/g
      * ringtones/meson.build: Likewise.
      * src/account.cpp (DEFAULT_RINGTONE_PATH): Define in terms of
      PROGSHAREDIR.
      * bin/dbus/Makefile.am (libclient_dbus_la_CXXFLAGS): Remove extraneous
      flags, already propagated via AM_CPPFLAGS.  Honor AM_CXXFLAGS.
      * src/client/Makefile.am (libclient_la_CXXFLAGS): Remove.
      * src/plugin/Makefile.am (libplugin_la_CXXFLAGS): Likewise.
      
      Change-Id: Icaa0a92e896f86b0bb07f82e4079570db08fafbd
      f0fb8148
  5. Jun 22, 2021
    • Maxim Cournoyer's avatar
      daemon: Install dring to libexec and edit templates at install time. · 2afa99fd
      Maxim Cournoyer authored
      Executables are typically installed under bin/, sbin/ or libexec,
      rather than lib/.  The problem was noticed when trying to use Jami
      with a Guix relocatable pack, which only wraps executables found under
      the above locations.  Since dring is a daemon and should not be run
      directly by users under normal circumstances, the convention is to use
      the libexec directory, according to the File Hierchy Standard 3.0.
      
      Also tackled in this change is the substitution of the Autoconf
      variables at installation time rather than configuration time, as per
      the GNU Coding Standards.  The following solution is taken from
      https://github.com/gentoo/eudev/pull/183/commits, which in turn is
      adapted from the Autoconf manual (c.f.: info "(autoconf)Installation
      Directory Variables").
      
      * bin/Makefile.am (ringlibdir): Delete variable.
      * bin/dbus/Makefile.am (do_subst): New variable.
      (cx.ring.Ring.service): Derive from the cx.ring.Ring.service.in
      template.
      [HAVE_WIN32]: (ringlib_PROGRAMS): Rename to ...
      (bin_PROGRAMS): ... this.
      [HAVE_OSX, RING_DBUS]: Likewise.
      * bin/dbus/cx.ring.Ring.service.in (Exec): Adust.
      * globals.mk (ringlibdir): Delete variable.
      * configure.ac [with_dbus] <AC_CONFIG_FILES>: Remove
      bin/dbus/cx.ring.Ring.service.  Also remove the LIBDIR variable, no
      longer used.  Fix indentation.
      
      Thanks to Vladimir Stoiakin for providing feedback on this change.
      
      Change-Id: I845bf2bd590a9457e70ca173027217b8f164d713
      2afa99fd
  6. Mar 28, 2021
    • Maxim Cournoyer's avatar
      configure.ac: Do not set user variables. · bfe7a844
      Maxim Cournoyer authored and Adrien Béraud's avatar Adrien Béraud committed
      The CFLAGS, CXXFLAGS, LDFLAGS and other variables intended to be
      overridden by the user should not directly be set by the package.
      This change uses one of the approaches recommended by the Autoconf and
      Automake manuals, which is to use custom variables to accumulate flags
      in the configure script and add them to the make targets they apply
      to.  This has the benefit of not cluttering the flags used during the
      Autoconf tests, which has proved problematic (see the previous commit
      for a demonstration).
      
      * configure.ac: Replace CFLAGS, CXXFLAGS, CPPFLAGS and LDFLAGS by
      DAEMONCFLAGS, DAEMONCXXFLAGS, DAEMONCPPFLAGS and DAEMONLDFLAGS,
      respectively.
      Use these custom variables as the default values of AM_CFLAGS,
      AM_CXXFLAGS, AM_CPPFLAGS and AM_LDFLAGS, respectively.  Remove an
      extraneous check on jsoncpp.
      * bin/Makefile.am (ringcli_CXXFLAGS): Honor the the AM_CXXFLAGS variable.
      globals.mk: Extend rather than override the AM_CPPFLAGS variable.
      * src/Makefile.am (libring_la_LDFLAGS): Honor AM_LDFLAGS.
      (libring_la_CFLAGS): Honor AM_CFLAGS.
      (libring_la_CXXFLAGS): Honor AM_CXXFLAGS.
      * src/client/Makefile.am (libclient_la_CXXFLAGS): Honor AM_CXXFLAGS.
      * src/im/Makefile.am (libim_la_CXXFLAGS): Remove variable.
      * src/jamidht/Makefile.am (libringacc_la_CXXFLAGS): Likewise.
      * src/media/audio/Makefile.am (libaudio_la_CXXFLAGS): Honor
      AM_CXXFLAGS.
      (libaudio_la_LDFLAGS): Honor the AM_CXXFLAGS variable.
      * src/media/audio/coreaudio/Makefile.am (libcoreaudiolayer_la_CXXFLAGS):
      Likewise.
      * src/media/video/Makefile.am (libvideo_la_CFLAGS): Honor the
      AM_CFLAGS variable.
      (libvideo_la_CXXFLAGS): Honor the AM_CXXFLAGS variable.
      * src/media/video/v4l2/Makefile.am (AM_CXXFLAGS): Extend rather than
      override.
      * src/plugin/Makefile.am (libplugin_la_CXXFLAGS): Honor the
      AM_CXXFLAGS variable.
      * src/security/Makefile.am (libsecurity_la_CXXFLAGS): Likewise.
      * src/sip/Makefile.am (libsiplink_la_CXXFLAGS): Likewise.
      * src/upnp/Makefile.am (libupnpcontrol_la_CXXFLAGS): Remove variable.
      * src/upnp/protocol/Makefile.am (libupnpprotocol_la_CXXFLAGS): Likewise.
      * src/upnp/protocol/natpmp/Makefile.am (libnat_pmp_la_CXXFLAGS): Likewise.
      * src/upnp/protocol/pupnp/Makefile.am (libpupnp_la_CXXFLAGS): Likewise.
      * test/sip/Makefile.am (AM_CXXFLAGS, AM_LDFLAGS): Extend rather than override.
      * test/unitTest/Makefile.am (AM_CXXFLAGS, AM_LDFLAGS): Likewise.
      
      GitLab: #487
      Change-Id: I18be9d812159f8156efb9f7849e7eac6d4c6b3ca
      
      squash! configure.ac: Do not set user variables.
      
      Change-Id: I1146ea15d6fb75fe53d3cbdd782e981c933e82a6
      bfe7a844
  7. Aug 07, 2018
  8. Jul 30, 2018
    • Philippe Gorley's avatar
      configure: remove ilbc and gsm · 2cbbaf79
      Philippe Gorley authored and Adrien Béraud's avatar Adrien Béraud committed
      FFmpeg's RTP muxer does not support GSM, while Ubuntu does not package
      iLBC. Removes the old configure switches.
      
      Removes package detection from contrib. Keeps contrib rules in case GSM
      is later readded.
      
      Change-Id: I705a521e2baf34c757c22a72e04cdf27233b5a7b
      2cbbaf79
  9. Feb 10, 2017
  10. Nov 11, 2016
    • Guillaume Roguez's avatar
      increase pjsip max packet size · 9da60b35
      Guillaume Roguez authored
      Increase PJSIP_MAX_PKT_LEN to 8000 bytes.
      This permits big SIP invite message with many ICE candidates.
      
      Change-Id: I02097f54a2b01087dfdad4474eedbed2a67b0955
      9da60b35
  11. Nov 07, 2016
  12. Nov 10, 2015
    • Guillaume Roguez's avatar
      build: permit user to overload revision number · 7f56822b
      Guillaume Roguez authored
      Let user choose the RING_REVISION and RING_DIRTY_REPO values.
      This also permit packaging to build from non-git sources tree
      with a fancy and valid revision string.
      
      Just set previous environment variable before to run
      the make command.
      
      Change-Id: I24d71f985decc2187f09ab21eb72e588ede7fb7a
      Tuleap: #71
      7f56822b
  13. Sep 03, 2015
  14. Sep 02, 2015
  15. Mar 25, 2015
  16. Mar 20, 2015
  17. Jan 28, 2015
    • Emmanuel Lepage Vallee's avatar
      security: Exported DBus constants in a .h · 7fcb3514
      Emmanuel Lepage Vallee authored and Guillaume Roguez's avatar Guillaume Roguez committed
      This commit also fix various issues with the TLSValidator:
      
       * Remove dead code (-Wunused)
       * Handle exeptions in configurationmanager (runtime assert)
       * Add missing construction initializer (-Wuninitialized)
      
      Refs #64785
      
      Change-Id: I315396b2a3a29d097743ce825cda91235a6e7936
      7fcb3514
  18. Jan 20, 2015
    • Alexandre Lision's avatar
      ring/contrib: remove CCRTP/UCOMMON/ZRTPCPP deps · 2ac3fdc3
      Alexandre Lision authored and Guillaume Roguez's avatar Guillaume Roguez committed
      This patch have the side effect to refactor audio
      and video related parts by moving them into media
      sub-directory and making libav common parts
      undependent of video.
      This patch permits to disable video without
      loosing libav support on audio.
      
      Refs #63906
      
      Change-Id: I3d50713fac7f5c2738cc68b9f38573b5b4536b35
      2ac3fdc3
  19. Jan 14, 2015
  20. Jan 09, 2015
  21. Aug 12, 2014
  22. May 05, 2014
  23. Apr 08, 2014
  24. Nov 12, 2013
  25. Jul 08, 2013
  26. Jun 26, 2013
  27. Jun 19, 2013
  28. Dec 17, 2012
  29. Apr 13, 2012
  30. Feb 03, 2012
  31. Jan 24, 2012
  32. Sep 22, 2011
  33. Sep 14, 2011
    • Rafaël Carré's avatar
      pjproject: update to last stable release (1.10) · 46e97beb
      Rafaël Carré authored
      Remove some stuff we don't need:
          third_party libs
          Visual Studio / Xcode files
          symbian files
      
          pjmedia-audiodev (and update some source files accordingly)
          pjmedia-codec
      
          tests, documentation
      
      define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_NONE
          => so we don't rely on resample library
      
      define PJMEDIA_HAS_SRTP     0
          => so we don't rely on srtp library
      
      We do resampling and srtp ourselves anyway
      46e97beb
  34. Aug 15, 2011
    • Rafaël Carré's avatar
      rename directories · 0d02b874
      Rafaël Carré authored
      sflphone-common -> daemon
      sflphone-client-gnome -> gnome
      sflphone-client-kde -> kde
      sflphone-plugins -> plugins
      0d02b874
  35. Aug 08, 2011
  36. Jun 20, 2011
  37. Dec 15, 2010
Loading