1. 25 Aug, 2015 1 commit
  2. 23 Aug, 2015 1 commit
    • Adrien Béraud's avatar
      contrib: bump opendht · cd493aaa
      Adrien Béraud authored
      This bump should fix the instability issue observed since v2.
      Error messages are now properly parsed so token can be renewed as they should.
      
      Issue: #78264
      Change-Id: I737c30b0286cf8134c05eae4bdc89d850f06cace
      cd493aaa
  3. 21 Aug, 2015 2 commits
    • Guillaume Roguez's avatar
      socket_pair: cleanup and code quality · 2c5bad64
      Guillaume Roguez authored
      - use C-compatible lambda to simplify read/write callbacks
      - coding rules cleanup
      - efficient C++11
      - removed not needed rtcpWriteMutex_ mutex member
      
      Issue: #78983
      Change-Id: I88e1ed6d16cc9cff9b963045867f5a09ac9fea56
      2c5bad64
    • Adrien Béraud's avatar
      contrib: bump opendht · 30bcf3c4
      Adrien Béraud authored
      Issue: #78264
      Change-Id: Ief1a3f21a9ef1ce50efd00af1017b4bc9a88977e
      30bcf3c4
  4. 20 Aug, 2015 3 commits
    • Adrien Béraud's avatar
      ringaccount: fix cancelput after put · 35a910b3
      Adrien Béraud authored
      This avoid the value to remain indefinitely on the DHT
      
      Issue: #78264
      Change-Id: I19a909eddd58a481b75bce61fea8ceb7d0b3c24f
      35a910b3
    • Guillaume Roguez's avatar
      contrib: fix msgpack build (i386 now) · fbcc8a4e
      Guillaume Roguez authored
      Fix PKG_CONFIG installation path for msgpack on i386 platforms
      by forcing the suffix path to be "lib" (and not "lib/i386-linux-gnu")
      
      Issue: #78264
      Change-Id: Ia1f5dd0912e15f88044b4368f388403c8099ad9b
      fbcc8a4e
    • Guillaume Roguez's avatar
      contrib: fix msgpack build · 57b2f10d
      Guillaume Roguez authored
      Add a path to PKG_CONFIG_PATH to help msgpack to be found on ubuntu images.
      
      Issue: #78264
      Change-Id: Ic36712edbfe32f367362d6c983169b39e1da83c6
      57b2f10d
  5. 19 Aug, 2015 19 commits
    • Guillaume Roguez's avatar
      manager: more debug · dadf304f
      Guillaume Roguez authored
      Issue: #79075
      Change-Id: Ib4f905499eb78136ce3f3f4a57ee9b1f046a234f
      dadf304f
    • Guillaume Roguez's avatar
      sipcall: protect reinvite to be called during invite · d0caa3f8
      Guillaume Roguez authored
      Sending a reINVITE request when a previous one is not finished
      cause both requests to be aborted (second one by PJSIP, first as
      all ICE sockets are destroyed by caller).
      
      Note: this is not a definitive solution as only the first reINVITE
      is kept in this patch. A better approch is to cancel the first
      reINVITE but not sure on design implications.
      
      Issue: #79075
      Change-Id: Ice0cbc5dc9f3cc322996d86e65cf6bb1754eadba
      d0caa3f8
    • Guillaume Roguez's avatar
      video_rtp: refactoring conference handling · 1a589ff4
      Guillaume Roguez authored
      - pass by-ref conference object in private API
      - un-pairing enterConference/exitConference
      - fix a nullptr access in enterConference
      
      Issue: #79075
      Change-Id: I06f0b72c9ee39f264937b9a36ae3d2dcbc418dab
      1a589ff4
    • Guillaume Roguez's avatar
      manager: fix a warning · 1363898d
      Guillaume Roguez authored
      Issue: #79075
      Change-Id: Ib10e8801409e79b339f80c95b9c35366551d8d04
      1363898d
    • Guillaume Roguez's avatar
      manager: fix onHold current call in offHoldCall method · 75f54db5
      Guillaume Roguez authored
      Fix logic that decides if current call has to be put on HOLD state
      when we try to off-hold a call (or a conference)
      
      Issue: #79075
      Change-Id: I0c826af1917db9f6e175d77c7286110a5e02ecdd
      75f54db5
    • Guillaume Roguez's avatar
      video_rtp: prevent exit conference at rtp stop · c5400aef
      Guillaume Roguez authored
      An unwanted behavior of rtp stop method was to nullify conference
      pointer, so remove attachement between and prevents video mixing.
      
      Issue: #79075
      Change-Id: Ic08dde0759d4116ffcdb6e90310f59b9a96b3b5f
      c5400aef
    • Guillaume Roguez's avatar
      video_input: some refactoring · da837ea7
      Guillaume Roguez authored
      - use unique_ptr to store MediaDecoder
        (remove noisy "delete", exception safe)
      - simplify VideoInput::process() method
      - attach first, start sink after
      - use lambda than small static function for interruptCb
      - remove commented code
      
      Issue: #79075
      Change-Id: I48bf66f73a39aedccf11ca07dd501e8f17efa37b
      da837ea7
    • Guillaume Roguez's avatar
      manager: rename addStream/removeStream · f79f9f5a
      Guillaume Roguez authored
      Clarify the role of these API by changing its name.
      
      Issue: #79075
      Change-Id: I23cda18083fbc3b97c2be34d8c90ccb8a076f5c9
      f79f9f5a
    • Guillaume Roguez's avatar
      sink: move start/stop decoding signal to sink class · 69f51cdf
      Guillaume Roguez authored
      Move responsibility to signal Start/Stop decoding from all decoders
      to sink class.
      This is simplify the understood of how/when these signals have to be
      trigger. Now this is done by sink::setFrameSize() method.
      Set size to (0,0) stop decoding, any other values start decoding.
      
      Issue: #79075
      Change-Id: I6e18a4d0b9069c28c1c875c94765763de28bbf07
      69f51cdf
    • Edric Milaret's avatar
      ringaccount: remove msg.id from debug · 2a37c8aa
      Edric Milaret authored
      - Caused printf to crash because of format difference
      between 32/64bits
      
      Issue: #78264
      Change-Id: I7573ebe1f931543135b1dc95ff828b9f1be74ab3
      2a37c8aa
    • Guillaume Roguez's avatar
      audio rtp: remove an anoying error logging · 92df9176
      Guillaume Roguez authored
      This error doesn't hurt the logic, and is often a false-negative.
      It also trash logs for no added information.
      
      Issue: #79075
      Change-Id: I0b29a95c266b005a0be28dd80205ff81478c80e8
      92df9176
    • Guillaume Roguez's avatar
      rtp sessions: remove code duplication · b14907d7
      Guillaume Roguez authored
      All rtp_session::start() have mostly the same code, only how
      the socket_pair is created change.
      We also add "override" C++11 keywords that prevents possible
      writing errors.
      
      Issue: #79075
      Change-Id: I7ff281a7d72661b0d44d867aa7925f769f93e71d
      b14907d7
    • Adrien Béraud's avatar
      opendht: bump to v2 · a8013d76
      Adrien Béraud authored
      WARNING: breaks compatibility with previous versions (RING and DHT)
      
      * OpenDHT uses msgpack library for serialization (added to contrib)
      * OpenDHT uses GCM-AES+RSA for encryption (instead of RSA)
      * adapts ringaccount to follow these API changes
      
      Issue: #78264
      Change-Id: I12744990d51e8f9022007ba59472d74aec89caeb
      a8013d76
    • Guillaume Roguez's avatar
      sipvoiplink: clarify SIP events handling over INVITE callbacks · 84fc0020
      Guillaume Roguez authored
      - factorize call object retriving from INVITE structure
      - add PJSIP_SC_BUSY_EVERYWHERE and PJSIP_SC_BUSY_HERE as ringing cause
      (this happens with some softphones)
      - code linearization
      - remove over-engineered argument checks (PJSIP does this!)
      - fix/add interesting debug lines
      
      Issue: #79075
      Change-Id: I7166f832b81ab574e34f26d74b60033d1283a049
      84fc0020
    • Edric Milaret's avatar
      portaudio: fix creating streams to non existent device · 9f2958d3
      Edric Milaret authored
      Issue: #79363
      Change-Id: Ic7df36a51ff15b9c8ea03c288645f04add654efc
      9f2958d3
    • Guillaume Roguez's avatar
      sipcall: factorize pjsip_inv_end_session calls · b4be5352
      Guillaume Roguez authored
      Ending an INVITE session follows a specific scheme on Ring.
      This patch factorize all pjsip_inv_end_session calls to having
      one point to implement INVITE termination.
      By this way we fix also non consistent termination over the code.
      
      Issue: #79075
      Change-Id: Icf6d56caedf75c128ad967ed89d1bacb19696a40
      b4be5352
    • Guillaume Roguez's avatar
      sip_utils: remove sip_printerror API · 40364ed6
      Guillaume Roguez authored
      sip_utils::sip_printerror function has been removed as doesn't give
      interresting information (file/line context not displayed).
      Use sip_utils::sip_strerror in conjunction with RING_XXX() to display
      PJSIP errors.
      
      Issue: #79075
      Change-Id: I7f4124d0716fb4d3aa48dead217d14053151cc4a
      40364ed6
    • Guillaume Roguez's avatar
      logger: lock and process only if something is logged · 690f8c86
      Guillaume Roguez authored
      Issue: #79075
      Change-Id: I003a611ab6f54c0a036dbf0b645789b5cc5bee44
      690f8c86
    • Guillaume Roguez's avatar
      manager: back to string id current call management · a9113fe2
      Guillaume Roguez authored
      This revert is needed to handle Call and Conference object
      into Manager's private member "currentCall_".
      
      The fix did not find or badly handled currentCall if a Conference was
      created.
      
      Issue: #79075
      Change-Id: I109aa4adde242b7c9de00bcd33f147f5f1452da6
      a9113fe2
  6. 17 Aug, 2015 5 commits
    • Guillaume Roguez's avatar
      call factory: fix callMap used key · 951a307b
      Guillaume Roguez authored
      At creation, calls were badly tracked into call map due to wrong
      key used (was the account type string).
      Changed for the LINK_TYPE (it's the same for Ring and SIP call).
      
      This fix a bug when getCall<SIPCall> is used for fetching
      Ring AND SIP calls (was return only SIP, never RING calls).
      
      Issue: #79075
      Change-Id: I50428ce00d16cafdf1d33e39acc59a452d0c312a
      951a307b
    • Guillaume Roguez's avatar
      debug: cleanup or add a bunch of debug strings · eb39e6f2
      Guillaume Roguez authored
      This cleanup permits a better lisibility (and so usability) of
      debug string over the code.
      This is not exhaustive, just for the related issue needs.
      
      Issue: #79075
      Change-Id: I8885f6d46b6edb454a2d15305ba48d7e9bdf6d42
      eb39e6f2
    • Guillaume Roguez's avatar
      logger: rewrite · 10f56705
      Guillaume Roguez authored
      - Console mode modified for a nice look:
        - add timestamp
        - colored header
        - reordering
      - Fix syslog output (openlog on "dring")
      - Multithread safe (mutex protected)
      - Make logger a C++ file and code cleanup
      
      Issue: #79075
      Change-Id: I6c818ec283541ce8e740693ebefbafce3cac5617
      10f56705
    • Guillaume Roguez's avatar
      libav: make av_log optionnal using environment · d7b36194
      Guillaume Roguez authored
      Using AVLOGLEVEL environment variable, user can now
      finely define which av_log level is requiered.
      
      AVLOGLEVEL has to be set using values accepted by av_log_set_level.
      
      Issue: #79075
      Change-Id: I25f4c8842eca159ebac0e13c9af4e29289c07962
      d7b36194
    • Guillaume Roguez's avatar
      call factory: fix constness · e8ce28e7
      Guillaume Roguez authored
      Issue: #79075
      Change-Id: Iffe1715406a00dd8d8f3321927bf7a2c17cd62c6
      e8ce28e7
  7. 13 Aug, 2015 1 commit
  8. 12 Aug, 2015 3 commits
  9. 11 Aug, 2015 2 commits
  10. 10 Aug, 2015 2 commits
    • Guillaume Roguez's avatar
      ringaccount: register a public address at ICE creation · e4cdde22
      Guillaume Roguez authored
      This patch tries to solve a situation where one peer has
      a TURN server registered but the other peer doesn't have
      any NAT traversal systems.
      To solve that we use a recent OpenDHT API that returns
      a list of public IP discovered during DHT transferts.
      The most seen address is used to register a new relflective
      candidate, coupled to an existing and registered host address.
      It's port is stolen, but as this candidate is added after
      ICE initialization, the candidate is not used for negotiation.
      This is mosly a PJSIP hack as we use an implementation details.
      
      Issue: #78582
      Change-Id: Ic16527f04b4e07905c405d8681223a02fee16d55
      e4cdde22
    • Stepan Salenikovich's avatar
      libav: update required version of libavutil in contrib · d578cc4d
      Stepan Salenikovich authored
      Issue: #74817
      Change-Id: I6a07f478e151ca13a6d8d73a4bdb2807ec1f8797
      d578cc4d
  11. 07 Aug, 2015 1 commit