1. 04 Aug, 2019 1 commit
  2. 02 Aug, 2019 1 commit
    • Eden Abitbol's avatar
      upnp: support libupnp and libnatnatpmp simultaneously · 60515d89
      Eden Abitbol authored
      Update libupnp to version 1.8.4.
      
      For windows, the IPV6 preprocessor must be undefined. Or else
      libupnp won't initialize. Added visual studio 2017 support
      via one patch for windows that also combines previous windows
      patches.
      
      UPnPController: Class that the jami classes use to control the
      opening and closing of ports. Every  service has it's own upnp
      controller. The controller does it's actions by using the upnp
      context class. Also refactored the functions used to add
      mappings. Instead of using two different functions with
      different types of parameters, we now use one function with
      parameters that have default values. The logic stays the same
      but the function call is more clear.
      
      UPnPContext: Class that holds a (linked) list of discovered IGDs
      and their corresponding protocols (which discovered them).
      Whenever the controller wants to add or remove a mapping, the
      context picks a valid IGD in it's list and uses the correct
      protocol to complete the required action. This class also has
      the ability to swap protocols for an IGD that was discovered
      by more then one protocol.
      
      UPnPProtocol: Virtual base class that defines the functions
      needed by the context to use the corresponding protocol.
      
      PUPnP: UPnPProtocol derived class that represents a upnp client
      that uses the portable upnp library (libupnp). Every time the
      client discovers a new IGD it uses a callback to add it to the
      context's main IGD linked list. It also has an internal list of
      IGDs that it discovered. Added features to this class include:
      	- IGD event subscription.
      	- Use UpnpInit2 function instead of deprecated UpnpInit
      	  function. It's also supposed to support IPv6.
      
      NatPmp: UPnPProtocol derived class that represents a upnp client
      that uses the NAT-PMP library (libnatpmp). Unlike libupnp,
      libnatpmp only supports discovering one IGD. Also uses callbacks
      to add the IGD it finds to the context's main IGD class.
      
      Also inclided debug warning prints whenever a controller opens
      and closes the ports. That way we can keep track of whenever
      the application opens and closes ports on the internet
      gateway device.
      
      Gitlab: #96
      
      Change-Id: I199271edac2c6d93dc60c24e2e2aefe36de7950c
      60515d89
  3. 02 Apr, 2019 1 commit
    • Adrien Béraud's avatar
      sources: rename to jami · 2130f067
      Adrien Béraud authored
      * rename namespace from ring to jami
      * rename logs methods from RING_* to JAMI_*
      * rename RING_VIDEO to ENABLE_VIDEO
      
      Change-Id: Ic98498652d7059fafe58a96220d565bcdfa53658
      2130f067
  4. 02 Jan, 2019 1 commit
  5. 26 Jul, 2018 1 commit
  6. 24 May, 2018 1 commit
  7. 23 Jan, 2018 1 commit
  8. 23 Mar, 2017 1 commit
    • Guillaume Roguez's avatar
      upnp: fix early crash by std::terminate · c4fc51a2
      Guillaume Roguez authored
      In NAP-PMP implementation, a std::thread member of
      UPnPContext class is placed before member used by the thread.
      This thread is run during the class initialization (ctor).
      So the thread can start and access to these members when
      they are not initialized.
      
      The consequence is a std::terminate() call causing the stop
      of daemon.
      
      Fix that by moving the thread member after *ALL* used members.
      Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
      Change-Id: Ibb7334e653a9c80c566ffc3944c93a6ef64e0a8b
      c4fc51a2
  9. 05 Jan, 2017 1 commit
  10. 15 Oct, 2016 1 commit
    • Adrien Béraud's avatar
      android: enable vp8, cleanup · e03b970d
      Adrien Béraud authored
      Fix and enable VPX on Android.
      Since the Android build moved to clang and libc++,
      it's no longer necessary to redefine some common
      standard C++ methods.
      
      Change-Id: I3488633782ded31bc260c5a234802ebd6f251377
      e03b970d
  11. 10 Aug, 2016 1 commit
  12. 26 Jul, 2016 1 commit
  13. 25 Jul, 2016 1 commit
    • Adrien Béraud's avatar
      NAT-PMP: add initial support · 3165a70c
      Adrien Béraud authored
      * add optional dependency to libnatpmp
      * can run with or without UPnP
      * transparently replaces UPnP when available
      
      Change-Id: I1bbded421833cdc2506b42106e30cc8b3dde4c2d
      Tuleap: #805
      3165a70c
  14. 22 Jul, 2016 1 commit
    • Stepan Salenikovich's avatar
      add connectivityChanged API · 20f40205
      Stepan Salenikovich authored
      This allows the clients to notify the daemon when the conenctivity
      (ie: network status) has changed. The daemon will then try to detect
      the new IGD (UPnP) and re-connect all enabled accounts.
      
      Change-Id: I5c8fc57f75e48d86eda5d195b0586c61a26134ad
      Tuleap: #841
      20f40205
  15. 13 Jul, 2016 1 commit
    • Guillaume Roguez's avatar
      Revert "NAT-PMP: add initial support" · 1afa10bc
      Guillaume Roguez authored
      This reverts commit 150035a8.
      
      reasons of the revert:
      - doesn't link on Mac
      - doesn't build on IOS
      - build and link on linux, but the shared library is not found in rpath
      
      Change-Id: Ie2eb1fe587adea1b607fde727abe6c641762495b
      Notes: libnatpmp is not used on Android
      1afa10bc
  16. 11 Jul, 2016 1 commit
    • Adrien Béraud's avatar
      NAT-PMP: add initial support · 150035a8
      Adrien Béraud authored
      * add optional dependency to libnatpmp
      * can run with or without UPnP
      * transparently replaces UPnP when available
      
      Change-Id: I8477f3d91d8185f7872a3e00600daa7755ac0eee
      Tuleap: #805
      150035a8
  17. 09 Mar, 2016 1 commit
  18. 21 Sep, 2015 1 commit
    • Guillaume Roguez's avatar
      update Copyright header · 5236ab05
      Guillaume Roguez authored
      - remove OpenSSL exception
      - fix Savoir-faire Linux naming
      - fix common Author: representation
      
      Issue: #80663
      Change-Id: I6c3b2ca1ed48ed474a0ecd5a30fe793526e11b00
      5236ab05
  19. 05 Aug, 2015 1 commit
    • Adrien Béraud's avatar
      upnp: handle late IGD findings · 4a3835ad
      Adrien Béraud authored
      This commit bumps OpenDHT to make use of the related
      connectivityChanged() method of the dht.
      
      
      Issue: #78262
      Change-Id: I64ea7b745cfc0653a09e8f6fb2d23b2d3fc6db4e
      4a3835ad
  20. 15 May, 2015 1 commit
  21. 20 Mar, 2015 1 commit
  22. 10 Mar, 2015 1 commit
  23. 02 Mar, 2015 2 commits
  24. 12 Feb, 2015 1 commit
    • Stepan Salenikovich's avatar
      upnp: migrate to libupnp · 59d38c8c
      Stepan Salenikovich authored
      Removes libminiupnpc as a dependency.
      Adds libupnp into the contrib system.
      Accounts with upnp enabled asynchronously wait to
      find an IGD (or timeout) before completing
      registration.
      
      Refs #65376
      Refs #65382
      
      Change-Id: I44376e49c078a0e33a8bb92ee2ca8e4df09f6fec
      59d38c8c