1. 15 Apr, 2016 2 commits
  2. 14 Apr, 2016 2 commits
    • Alexandre Lision's avatar
      account: add import/export API · ae5d1ada
      Alexandre Lision authored
      - do not read dhtPort when deserializing a Ring account, use a new
      one at runtime
      - cache directory is created when generating dhParams
      - use key stretching for archive encryption
      - bump OpenDHT to add key stretching support
      
      This commit comes with a necessary bump of OpenDHT
      
      Tuleap: #335
      Change-Id: Iee67569d378baaa33e9acd7cd9557422ab8e0471
      ae5d1ada
    • Edric Milaret's avatar
      sip: fix pkt receive · 25cdcd8b
      Edric Milaret authored
      - Sending profile highlighted a flaw in the processing of packet
        * The receive packet function from pjsip can't handle a packet
          larger than PJSIP_MAX_PKT_LEN (4000) but we were not enforcing
          that correctly
        * The received callback was appending packet to the last one instead
          of appending it to the received packet vector
      
      Change-Id: I603cf19cb2951708edd5cca44d71b77bb83114d6
      Tuleap: #538
      25cdcd8b
  3. 13 Apr, 2016 1 commit
    • Adrien Béraud's avatar
      message engine · 41e304a4
      Adrien Béraud authored
      Tuleap: #359
      Change-Id: I823ac0b9b84558d3a88d85561b506d20bd5fc8d1
      41e304a4
  4. 12 Apr, 2016 2 commits
  5. 11 Apr, 2016 4 commits
    • Guillaume Roguez's avatar
      manager: try to find a valid IP2IP account when IP is called · 43e2239f
      Guillaume Roguez authored
      This patch fixes broken Manager::newOutgoingCall() when an IP
      url is given.
      Now, if the given prefered account is not a valid IP2IP like account,
      ie doesn't have an empty hostname, we try to find one in all SIPAccount.
      If nothing is found the method returns nullptr.
      
      Change-Id: I60eaf99a13c8f25df8decd87286d857f75391231
      Tuleap: #448
      43e2239f
    • Guillaume Roguez's avatar
      manager: fix gnutls log · 4e8a8aee
      Guillaume Roguez authored
      This patch uses recently added logging RING_Xyyyy() macro
      to not append an extra LF char at message end.
      Also put log level at start for easier readability.
      
      Change-Id: Ic771dc2fd7625f20bbc950f8c68782b9858522a4
      Tuleap: #547
      4e8a8aee
    • Guillaume Roguez's avatar
      logger: add macro set without linefeed at end · 7696e1d2
      Guillaume Roguez authored
      This patch adds logging macros:
      
      RING_XERR
      RING_XWARN
      RING_XINFO
      RING_XDBG
      
      Acting like thus w/o 'X' but w/o a linefeed at end of message.
      
      Change-Id: Ia4505e25354bbe2d6ddd96992e4f2f906025aa86
      Tuleap: #547
      7696e1d2
    • Patrick Keroulas's avatar
      dringctrl: improve the mini client · 7bcb447b
      Patrick Keroulas authored
      Make import robust.
      Support Python2.7 in addition to Python3.
      Fix call interface.
      Add an auto answer option.
      Handle keyboard interrupt.
      
      Change-Id: I56160928ef8fa2e3de893c6b64ad716836bbc13f
      Tuleap: #541
      7bcb447b
  6. 08 Apr, 2016 5 commits
  7. 06 Apr, 2016 3 commits
  8. 04 Apr, 2016 2 commits
    • Adrien Béraud's avatar
      rename namespace InstantMessaging to im · 3677f3ad
      Adrien Béraud authored
      Make the namespace shorter and lower-case to better
      respect coding conventions and reduce the pain when using it.
      
      Tuleap: #501
      Change-Id: I5fdfb3893605523aba1bcc3436b2e9716f402e6c
      3677f3ad
    • Adrien Béraud's avatar
      dring: remove IP2IP accounts · e3c54bf0
      Adrien Béraud authored
      The API and internals forced a single, activated IP2IP account.
      This design prevented to disable the IP2IP account or to have multiple
      IP2IP accounts (eg. on different ports, IPv4 and IPv6 etc.)
      
      This patch completly removes the "IP2IP" account concept from the daemon.
      An SIP account is now considered "IP2IP" if it has no hostname.
      
      Change-Id: I483dbbb9e5546f7c54fbf2d2910a93200ef3b82c
      Tuleap: #448
      Signed-off-by: Guillaume Roguez's avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
      e3c54bf0
  9. 01 Apr, 2016 1 commit
  10. 27 Mar, 2016 1 commit
    • aviau's avatar
      fixed typos · 3b767168
      aviau authored
      Fixes spelling-error-in-binary lintian warning
      
      Tuleap: #350
      Change-Id: I014ebe76e71f9bae247d4d0726fd3e6cbe6459f2
      3b767168
  11. 24 Mar, 2016 1 commit
    • Guillaume Roguez's avatar
      security: use anon+certificate authentification · 65e35da8
      Guillaume Roguez authored
      The TLS handshaking using certificate authentification leaks
      them: they are exchanged before cryptographic parameters,
      so the are in plaintext. This is an issue in TLS protocol itself.
      
      So this patch implements a new method to make a crypted channel
      first, then uses it to exchange certificates and permit trusted
      authentification based on certificates.
      
      This implementation is backware compatible.
      This is implies that old daemon can continue to work with patched one,
      but in such case certificates are leaked!
      
      Change-Id: Id5906df37b29bb938abdcdf25b875052527437e8
      Tuleap: #494
      65e35da8
  12. 23 Mar, 2016 1 commit
  13. 22 Mar, 2016 4 commits
    • Edric Milaret's avatar
      win32: fix redefine symbol · 67d1d2c7
      Edric Milaret authored
      PJ_SIP defines WIN32_LEAN_AND_MEAN since 3876.
      If we not force it to 1, this causes lot of redefinition
      warning at build.
      
      Change-Id: If72f0260bf15ce002cd922b875a0e816c6eb3ea2
      Tuleap: #487
      67d1d2c7
    • Guillaume Roguez's avatar
      ringaccount: modify DhParams loading method · 4d5d783a
      Guillaume Roguez authored
      - changed logging strings
      - factoring clock computation
      
      Change-Id: Idae00b3e0bb5f929c8ad23cedb0ca3095f10d05b
      Tuleap: #452
      4d5d783a
    • Edric Milaret's avatar
      fix compilation without upnp · a7b0e236
      Edric Milaret authored
      Broken by 4a3835ad
      
      Change-Id: Ifa624480d854fe7ad7acb6adc35a443b354e14d8
      Tuleap: #492
      a7b0e236
    • Edric Milaret's avatar
      fix win64 build · 841326cf
      Edric Milaret authored
      - Regression caused by #3876
      - Preventing any call because of access violation or assert
      
      Change-Id: I5f71378f1d673e37684b812fac464daeeb250c49
      Tuleap: #487
      841326cf
  14. 21 Mar, 2016 1 commit
  15. 18 Mar, 2016 1 commit
  16. 17 Mar, 2016 1 commit
  17. 16 Mar, 2016 4 commits
    • Adrien Béraud's avatar
      crypto: save dh params · fbdc7b24
      Adrien Béraud authored
      Diffie-Hellman parameters can take a few seconds to compute,
      during this time a CPU core will be fully used. This leads
      to high power consumption on startup, which can be problematic
      for mobile devices.
      
      This patch introduces saving DH params to the persistent cache
      to avoid regenerating them too often.
      The file modification time is used to know the age of the
      parameters. DH params can be reused for up to 3 days.
      
      * Intoduce writeTime to know a file modification time
      * Introduce to_wstring to convert filenames to the Windows format
      * Introduce a DhParams structure to handle serialization
      
      Tuleap: #452
      Change-Id: Iaea9cf24d922fc6cfc542f8fa7b0c208ebc141d2
      fbdc7b24
    • Guillaume Roguez's avatar
      tls: always accept send request from application · b3c8e1b3
      Guillaume Roguez authored
      Even if the session is closed (shutdown) accept messages
      as they will be cancel anyway when the thread stops.
      This permits a good behavior of application level, like pjsip.
      
      Change-Id: I324e00d0b607a24e5cbf82c9466f65fa8f6ae4cb
      Tuleap: #466
      b3c8e1b3
    • Guillaume Roguez's avatar
      sips: fix non-read messages at shutdown · e7161574
      Guillaume Roguez authored
      Force received messages to be handled by application
      before handling disconnected state event.
      This fixed some later call failure event as SIP bye message
      is read after the transport shutdown (causing failure).
      
      Change-Id: I269c364927ad301cc6e067b582174e488bebd519
      Tuleap: #466
      e7161574
    • Edric Milaret's avatar
      audio: fix audio layer index handling · 6c926601
      Edric Milaret authored
      - Real index is lost which explain why portaudio try to use
      a mic as a speaker
      - Better check of pointer to avoid crash (no sound, only mic...)
      
      Change-Id: Id882bc67d26d306cbb0ea58cf8abac985b8ad8ff
      Tuleap: #32
      Tuleap: #439
      6c926601
  18. 15 Mar, 2016 1 commit
  19. 10 Mar, 2016 2 commits
  20. 09 Mar, 2016 1 commit
    • Guillaume Roguez's avatar
      sip: re-write re-registration and mem-leak fix · 0055efde
      Guillaume Roguez authored
      This re-write simplify the code by:
      - using lambda for C-scoped callback and to remove static method usage.
      - remove unused arguments.
      - remove the need of allocation, that could lead to memory-leak.
      - make sure to be C++11 standard compliant (see uniform_int_distribution).
      - use constexpr than const for true constants
      - put constantes at top of file for visibility.
      
      Also fixes a memory-leak by non-delete new-allocated std::pair
      during re-registration.
      
      Change-Id: Ib01cbecc025de7773342f071a17fe914264a1e6e
      Tuleap: #458
      0055efde