Commit Graph

13960 Commits

Author SHA1 Message Date
0819bce58c conference: fix preview and peer display after conference
Change-Id: Ie82f2adaa1976fc33bd1c6d016d7981ab3476893
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
2019-10-02 16:52:03 -04:00
3b2f30e9f0 opendht: bump to latest master
Change-Id: Iaa3e9a88638b32b3f0b56f10256c67d81f0a5c19
2019-10-01 11:49:16 -04:00
2b3653aa58 contrib: fix restinio build with cmake < 3.8.0
Fix debian 9 + ubuntu 16.04 pipelines

Change-Id: I103cf010f53195ef9f951979b98c8c716396040b
2019-09-30 15:01:17 -04:00
d2102f3275 account manager: provide default device name
Change-Id: I41f7f35a7325685321c7896988960a55675e5ad2
2019-09-27 14:16:26 -04:00
9435ae42f4 account_manager: follow API changes
+ Also add timeout to cancel connections just in case

Change-Id: I389bd62c3567158b4d73c0db2e2967fc9d3e71d1
2019-09-27 11:03:17 -04:00
13947a4702 ice_transport: don't fail on UDP for epending status
PJ_EPENDING can be ignored for UDP. In fact, because it's a UDP
packet we don't care.

Change-Id: I84636730853bae2d43f39b16e638c6b7f57e276b
Gitlab: #165
2019-09-26 15:35:05 -04:00
57e675b7ac conference: fix join between 2 conferences
Participants were detached from conf1 and attached to conf2 one by one, the last participant was detached but not removed from conference object because manager didn't consider the call as conference anymore because there was only 1 participant left.

Instead we detach and remove all participants from conf1 before add them to conf2.

Change-Id: Iac8c4d52d775397b94029fbdf90abf86103bfca5
Gitlab: #164
2019-09-26 10:11:08 -04:00
aaf1df87d8 jamiaccount: prefer lookupUri to lookupName
Users should be able to search from other name servers

Change-Id: I0c0d2adc637869f12b3e1e11a68a13d37031fac1
Gitlab: #163
2019-09-25 16:15:43 -04:00
50d24db7a5 account manager: move findCertificate to base class
Change-Id: I6f37b16f1ba897b337a30b4cac0e02904efc0556
2019-09-24 17:47:34 -04:00
a587d70755 account manager: update name server from remote config
Change-Id: Ie50963b1be9b6608adbf4ac7c29ae034c63b788e
2019-09-24 17:41:53 -04:00
c52620bc07 dht: ignore dhtPort_ for now because it doesn't work on macos
Change-Id: I41e4da64ea18a7ef7332a2010b86a02efab8ea0c
2019-09-24 17:34:10 -04:00
6939c59a8a p2p: do not crash during TURN allocation failures
Change-Id: Icb0fca978b51b0b2520b14add3a89f3dbbcda842
2019-09-24 17:10:11 -04:00
c33f1ff775 lan: improve pjsip behavior in a LAN
1. Resolving the TURN server but receiving connection timeout are
breaking the ICE init for now. This should not be the case. This
patch only removes the candidate from the candidate's list if a
conection timeout to the TURN occurs.
2. pj_getaddrinfo is very slow. Moreover, it's unecessary because
we succeed to get correct hosts candidates. So, just disable this.

Change-Id: Ic17628032c66ab1eeab43036bc340c81808aea5c
2019-09-24 17:09:44 -04:00
0552492e01 peer discovery: add id in log
Change-Id: I9409c24fa51ba2dc000861f78a70e3843e50b810
2019-09-24 16:55:01 -04:00
6c91fa7b60 account manager: cleanup
Change-Id: Iaa5ab5b30421e60dcffeba7d1a37fe80b4689beb
2019-09-24 16:54:58 -04:00
bd13892ea8 account manager: update peer check, publish device announcement
Change-Id: Ia468c2f26ad20d445073fc49b6fffb29ad8c3292
2019-09-24 16:54:43 -04:00
668b07ca0f pupnp: show xml document location url
Change-Id: I3d8838edae5d830bc8dadb083aaaf3d83760015c
2019-09-24 16:27:17 -04:00
5892fa5ad7 contrib: bump opendht
Change-Id: I5b0ae1e73c91444365ef0b638f8ae867cebb95a6
2019-09-24 14:54:07 -04:00
5bfc9a5e45 migration: do not overwrite settings during migration
Change-Id: I9c0fbf2afe1fff0d3c5816203824dd7d004d85c6
2019-09-23 15:37:48 -04:00
9e6a68f809 jamiaccount: fix archive loading
Change-Id: I1e9502e54f78a839cd8e690afe74adcb7f4aac3b
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
2019-09-23 10:54:12 -04:00
3039b0626b server_account_manager: set name server uri instead of account
Change-Id: Ib86ac365eca1491390013af75ec6b928a289222e
2019-09-20 15:25:05 -04:00
205aa46e0c accountarchive: load in strict mode
Avoids accidental loading of invalid/encrypted archive

Change-Id: Ibeb425207998b0dfc49f7c3bf523619e412532f3
2019-09-20 12:43:47 -04:00
18dec97ade fileutils: isFile should return false if path is empty
Change-Id: I8350d662a295b6d478ec28e0c42e647a2565cf6e
2019-09-20 12:43:44 -04:00
997474b37e account manager: log reason of certificate validation failure
Change-Id: I32ebd28fca7c3f6cafcf1ab6e1523c5eb9d5510e
2019-09-20 12:43:40 -04:00
14deb3d34b commondata.cpp: add support for vs2019(v142)
- #include <stdexcept> is added to this file to avoid complie error
  with "std::runtime_error" function for visual studio 2019 build

Change-Id: Ib4eb409c396f32e30f708ddbf338463fcb41d2fc
2019-09-20 10:14:35 -04:00
46db1e9b02 conference: fix color inversion during conferences
Change-Id: I1c3cee4e69507fc686ea0006618ce87ef4f3ce00
2019-09-20 09:54:33 -04:00
ac963b5c16 upnp: fix intermittent xml download error
Depending on the platform, libupnp sometimes fails to download
the xml document provided by devices that answer the search
request. re-enabling blocking the blocking tcp connections at
compile time for libupnp seems to fix this issue.

The function used by the libupnp api to download the xml documents
is purely synchronous. To prevent the function from blocking
the upnp thread in case it hangs in the api, we used the disable
blocking tcp connection flag. Now that std::future is used to
circumvent this problem, we can re-enable the blocking tcp
connection.

Change-Id: I6efa02521e25171fcbca8c58a2c93987f5414f29
2019-09-20 09:42:03 -04:00
97ca3a7028 contrib/fmt: don't build tests
Change-Id: I5543c986330af56dcb28829fe25d170fc6e5211a
2019-09-19 16:53:32 -04:00
1a28e1c0e5 jamiaccount: fix loading id and dht with JAMS
Change-Id: I0174da20ca3b60814c26168bdaa7d2b24d51cf3e
2019-09-19 16:53:32 -04:00
9826f7f205 jamiaccount: capture accountId to avoid bad_weak_ptr
Change-Id: I9321ffb6e409750609a7e7744bfe0f7437d5ffd3
2019-09-19 15:47:19 -04:00
2e2728d950 server account manager: use proper callback when missing credentials
Change-Id: I3e13282b1004b50d8a842f1b5ed35fa01c7560a2
2019-09-19 15:47:19 -04:00
3e9a45345d archive_account_manager: fix import from backup
+ The export was incorrect, insert only add new values, but if the
value is not present, it's not updated. We should use the []
operator.
+ The import should use ns uri, not username for nameServer_

Change-Id: I7d271f48ba4fb6392333fd19e0e0f364bf267b48
2019-09-19 15:45:58 -04:00
b007fd7269 opendht: bump to latest master
+ Fix DHTLOGLEVEL
+ Fix proxy on android

Change-Id: Icfe40c583333598b4528a4a05be8680242563b21
2019-09-19 15:22:03 -04:00
c429b8d12e jamiaccount: update archiveHasPassword_ when changing password
Change-Id: I1ce80a3ed5404b5d2778bbd219bda9d94c1bdb12
2019-09-19 14:49:18 -04:00
3b1c54fa71 jamiaccount: set archivePath_ and archiveHasPassword_
Change-Id: I86175668235a4c2c263dd677534e40663c62a54e
Gitlab: #156
2019-09-19 14:06:46 -04:00
90e4825863 jamiaccount: flush directory when removing accounts
Change-Id: I589acbff481bdd2f8ecef2d6a7c664564d46e876
2019-09-18 23:17:52 -04:00
9dcd307949 jamiaccount: add managerUsername_ to config.yml
Change-Id: I41dfb1eba08891db33232c799d4c25a5ca210d4a
2019-09-18 16:53:37 -04:00
5d2096cd50 jamiaccount: add manageruri parameter into the account detail list
Change-Id: I021f019874346e81058210602d303aeeed068e78
2019-09-18 12:12:15 -04:00
71d7219058 contrib(win32): bump opendht
Change-Id: Id8963b75f8df5046e0faec91aa32109d9bdd9dba
2019-09-18 10:39:00 -04:00
4b0c6492da jamiaccount: avoid deadlock in case of auth failure
configurationMutex_ is already locked and not recursive, so we
can't relock this mutex nor call removeAccount here. Use the
generic error to detect if the account is correctly added or not.

Change-Id: I3af3800835702dc17e084ca36b147b81c03f8762
Gitlab: #155
2019-09-18 09:38:25 -04:00
ddf7baef1e jamidht: fix namedir & login to server account
Change-Id: I32e1a1cee8b8b1c7a814b4538dab7109850d328e
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
2019-09-17 10:38:32 -04:00
ae2d4efa98 accounts: invoke OnChangeCallbacks using thread pool
Change-Id: I58ed7b0650e90d8ec524f1851282b21d8b3f1ce3
2019-09-13 12:05:21 -04:00
d19ced760c manager: restart audio stream
Change-Id: I541e2aa1a419559c87c9f390601873bba12a0dc1
2019-09-12 17:29:37 -04:00
ab1ee8d763 archive_account_manager: protect dhtContext in search lambda
Change-Id: I2ab6818918fee8560b73967f3b224eebb92114e2
Gitlab: #147
2019-09-12 14:06:53 -04:00
e1a33525c3 accountcreation: use correct identity
Change-Id: I1aec6bf96d5417c8b21612b1a1dc8d895c9cbed8
2019-09-10 17:36:33 -04:00
d7d83c6f0a manager: cleanup, use seeded RNG from dht
Change-Id: Ie5a16ba02023c89c78eef8d06fa13b4be56e558a
2019-09-10 17:36:22 -04:00
4c899b1e15 jamiaccount: add manager configuration property
Change-Id: I32136e7381b2f3f73f206a83d573822c6b291291
2019-09-10 17:35:56 -04:00
75b134cf17 jamiaccount: split account management
Change-Id: I669bfcc6f0e3f7bd60c56f0046f8701ad14541ce
2019-09-10 17:35:34 -04:00
25a6bd3fa8 namedirectory: don't create temporary items during lookup
Change-Id: Icc3c9fd79c01641d8280eff0ffccf8dfe889d1a7
2019-09-10 17:35:21 -04:00
9f249126dd opendht: build with http-fork for retro-compatibility
Change-Id: I03ba51473a5d35efcfe3b7be4f9f64f23e57455f
2019-09-10 15:42:44 -04:00