Commit Graph

15792 Commits

Author SHA1 Message Date
302e85908b build: fix JAMI_REVISION, JAMI_DIRTY_REPO
Change-Id: I879224318b47c151db91a12c0260dea25e33553d
2022-11-02 10:09:08 -04:00
412c301f98 call: add media transport information
https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/510#510

Change-Id: Ie09ebd95ba161559c5c08b7e0618d6e87ecca1ee
2022-11-02 09:30:59 -04:00
a834804c4d audio: enable WebRTC noise suppression by default
Noise suppression results in higher quality audio with negligible additional latency.

Change-Id: I1aad3963bed045ed10631e897dda54b6cccd8632
2022-11-01 16:11:52 -04:00
54ffd0f438 conference: use ifdef ENABLE_VIDEO when using mixer
Change-Id: I6fd5f5fa5c7f6f23555b40540a2eda37bd78165c
2022-11-01 11:33:08 -04:00
d1d63e3517 utf8_utils: use string_view
Change-Id: Ib939740608d112626ccce0228726e758b07d22a3
2022-11-01 11:33:08 -04:00
fe058538fb conversation: do not show error for non critical errors
If an error occurs during the execution of git_remote_fetch, there
is no need to signal any error to the client as it's not a critical
issue (no malformed conversation, mode is recognized, no unauthorized
method) and the sync will be retried later.

Change-Id: I2d875445e51aa6cd78eb2e7dbfe5efb8b2831860
2022-10-31 12:18:16 -04:00
27846c4ef7 misc: fix various warnings
Change-Id: I6d0d909224cecb82883f805f60100e7c2e8d01f6
2022-10-31 12:16:52 -04:00
d54a84ec0b Replace DRing for libjami
It's not possible to replace the DRing namespace for jami because of conflicts
with namespaces and classes defined under the jami namespace.  Thus, use libjami
as the namespace.

Script to reproduce:

 rg -l DRing | sort | uniq | awk '$0 !~ /NEWS/' | xargs sed -i -e 's|DRing|libjami|g'
 rg -l DRING_ | sort | uniq | xargs sed -i -e 's|DRING_|LIBJAMI_|g'
 sed -i -e 's|dring|jami|g' src/jami/CMakeLists.txt
 sed -i -e 's|dring|jami|g' src/jami/def.h

Change-Id: I80e8c8b58a7586527a016bbef850bab07869c473
2022-10-29 16:49:27 -04:00
94ec7eea0c sip: fixed non-TLS incoming & outgoing SMS messages
Authentication realm kept as wildcard * to accept all challenges

Gitlab: #680

Change-Id: Ie75243466f683d939e27a94f5a9a16652e4a38de
2022-10-28 15:34:54 -04:00
5f5e10dbf4 multiplexed_socket: add ChannelSocketTest
The usage of ChannelSocketTest helps avoiding unnecessary overhead when
running unit tests (especially on creating a huge quantity of nodes and
sockets).

ChannelSocketTest implements a simplier form of ChannelSocket that
directly communicates to a peer rather than through a socket.

Change-Id: Id1c68aaa92f8f8cf8002c417f670254b0b851cfb
2022-10-28 10:53:16 -04:00
db3e62e415 conversation: fix logUntil
logUntil should retrieve the commits with the commit passed.
Add a LogOptions parameter to avoid too much parameters.

Change-Id: I77a0150b135b14fe44577747d2b1a86cb2cf2509
2022-10-27 15:52:26 -04:00
610e969780 sipaccount: check nullptr
Change-Id: I8c899f31e29bc7a50989afc69518accbf2935428
2022-10-27 15:52:26 -04:00
d5eaf363c8 nodejs: allow to receive log messages
Change-Id: I738d5dd3ef7ad4787a950e172172c31949b77a74
2022-10-26 16:19:51 -04:00
f854663614 tests/sip/Makefile: Tests have to be compiled against static version
Change-Id: I995b422ca3d078b02cf560056edeeacc35628a70
2022-10-26 11:22:00 -04:00
5220475941 preferences: remove useless preferences
Change-Id: I55fae603c65350adfec658cf73768a9535d614d3
2022-10-26 11:02:37 -04:00
525c12878f sip: fix incoming TLS calls - default disable secure dialog
Change-Id: I834f27f66836be3ece3feac7ead662802d89da2d
Gitlab: https://git.jami.net/savoirfairelinux/jami-client-android/-/issues/1111
2022-10-26 11:02:37 -04:00
f8fc2657ad pjproject: bump contrib to fix CVE (not affecting us)
Change-Id: Ie51f23d4c0547adc8542bb046d769f03a91d27c4
GitLab: #784
2022-10-26 11:02:12 -04:00
df0616d432 misc: fix compilation warnings
Change-Id: Ie035755eaa58621985b80612f25c2918891b00bc
2022-10-25 17:06:02 -04:00
45121c84b1 Revert "sip: fix incoming TLS calls - default disable secure dialog"
This reverts commit 7bce5bb765.

Reason for revert: Break config

Change-Id: I7e21df8f0fc80ceea3088f891992b1ae19693e33
2022-10-25 16:37:23 -04:00
7bce5bb765 sip: fix incoming TLS calls - default disable secure dialog
Gitlab: https://git.jami.net/savoirfairelinux/jami-client-android/-/issues/1111
Change-Id: I3d0f5abcd4b1ca4d64fcc908c0823ad6961c872c
2022-10-25 15:48:37 -04:00
81da3f7678 conference: fix sinks creation test
The sinks only should be created when there is a video device
available. If no video device is available, no sinks should be
created.

Change-Id: Iec35288bf9966eb664470b2f8c1e5738f6909893
2022-10-25 08:55:42 -03:00
0f6b74b194 conversation: add support for message edition
For now, only be able to edit messages from our-self and with the
text/plain type

Change-Id: I20c6ed7dad3892f0fa655812242b9ca6e77e69b3
GitLab: #316
2022-10-24 14:29:19 -04:00
613aede46c ios: add type for cloneConversation
If iOS is in deep sleep mode, it will only wake up the daemon if
a new activity needs to be shown (call, message or contact).
If the peer accepts a trust request, it will clone and join the
conversation (so a new message will be shown). So, cloning
a conversation should notify the iOS device that the daemon MUST
be started.

GitLab: #776
Change-Id: I639a5f928fec2970909a29b9f3c33c165ac201c8
2022-10-24 14:27:49 -04:00
443901c789 upnp/protocol/natmpmp: Fix closing of invalid handle
If initialization of natpmpHdl_ has failed, then closing it will result in closing
a random file descriptor, typically standard input.

Change-Id: Ifb1335a83b1900d4cf31c820bba090cb30b68d7a
2022-10-24 12:56:51 -04:00
b28a5cb85d convmodule: avoid incorrect states
In some cases the file "contacts" was badly synced. Also, if for any
reason "contacts" is not correctly formed, we may be able to fix it.

This patch handles two cases of failures:

1. If the contact details doesn't contain any conversationId BUT
a 1:1 conversation is found with this contact, we update the
conversationId in the details.

2. If, for some reason, multiple 1:1 conversations are detected
with the same contact, we only keep the one in the details, as
it should be the correct one.

This should fix the fact that for some conversation, calls are not
written in the history (cause getOneToOneConversation() returns
nothing).

Change-Id: I5dd9fc51999540d8a4230f8fdce828a461da752a
2022-10-21 12:07:05 -04:00
f894f2587f misc: fix compilation warnings
Change-Id: Ic01845c26653338719b76410878aece456ac93cc
2022-10-20 19:50:00 -04:00
abe357f513 doc: removing obsolete agent build instructions
Guile is no longer in contrib so this documentation is obsolete.

Change-Id: I884cf03b5d1fa677f6cf8036bd5b0dffec4dda88
2022-10-20 13:38:07 -04:00
7dd5138bca misc: fix compilation warnings
Change-Id: I36869baf37ccd52d7204b6cd9f5a6c4e0c4a3a17
2022-10-20 11:52:51 -04:00
b680c1cb86 unittest: add test to check broken participant
Change-Id: I2e8e7c6ff7da0cb71db135184522e92f25aca0f3
GitLab: #779
2022-10-20 11:52:45 -04:00
483b2b97ae ut_conversation: fix build
Change-Id: I7362b02cc1fd557cf454ccc29d60ff88a53f4afc
2022-10-20 09:26:55 -04:00
c0afc3ab8d plugins: avoid getting system language every time
GitLab: #780

Change-Id: I50e5dff097c4573f24f9ba6c25fa38e2857479ae
2022-10-19 18:09:20 -03:00
8e0c09256a misc: fix compilation warnings
Change-Id: Ifa30deb2740f80c6c6d222c5984a118e71037c2e
2022-10-19 14:27:02 -04:00
9b2bb28f27 conference: correctly remove peer if crashed
Change-Id: I2c64b42dd7ad290dede7d7633eacc6bc20ed95ea
GitLab: #779
2022-10-19 13:58:14 -04:00
9d846f66ae conversation: link file before announcing commit
A sent file was linked after the commit was announced
to the client and to other devices, which was causing various
race conditions.

We add a new onCommit callback allowing to take action after a commit
is made and before it's announced to clients and other devices,
and we use this callback to link the file.

Change-Id: If5c64271b08a71749e5bf84426c5a6ecb9806ea6
2022-10-18 15:49:36 -04:00
34f1077e2f x246: fix for iOS and cleanup
Change-Id: Ib26c2977182e61dc25eb2beb9670bc5268757fad
2022-10-18 13:05:31 -04:00
c48e278951 pupnp: use std::string_view
Change-Id: I932f58c87bd8324bf79d7a88310bf6365b63b2f3
2022-10-18 10:39:36 -04:00
190892f425 fix: do not accept new unmuted media
If a new stream is requested, and the client-qt does not specifically
states that it should be not mute, then accept muted media.

GitLab: #770

Change-Id: I1d9d6bdddfb40216d1750d4246e63745773033a6
2022-10-18 09:01:28 -04:00
e186d925c4 fmt: fix minimum version detection
FMT_COMPILE is needed

Change-Id: Ic7f7948d2816dc0017f9b780046e4ce9f31b4c9c
2022-10-17 15:51:22 -04:00
6aa8ee35e9 misc: bump onnx
Change-Id: If37b12f2d5588c087aaef639568cd9cd2015f136
2022-10-17 13:37:30 -04:00
59cb825df5 jamiaccount: avoid deadlock when sending a SIP message
shutdownSIPConnection must not be called in pjsip callback (can be
called in shutdownSIPConnection)

GitLab: #775
Change-Id: I4d05d38e863c0f2b1f4e72d2fc827d17ca4bad8b
2022-10-17 10:56:59 -04:00
632643de48 misc: fix warnings by using libfmt
Change-Id: I7c22af5885e6e0386f4723d68bfee727faf8d068
2022-10-15 12:28:58 -04:00
87f1fd467b contrib: update libfmt
Change-Id: Iada47d9ac1fadb7717a171eb4e4e4d332fa83096
2022-10-15 12:28:52 -04:00
8abb7a04dc nodejs: fix libjami linking and ConversationPreferencesUpdated binding
Change-Id: I3a444c818210fbdb3c5873fea63fc75af5101b44
2022-10-12 16:02:00 -04:00
d570b2b38f conference: add recording to participant infos
So that everybody in the conference can know who is recording

Change-Id: Ibc2d670560c086e2fd1925cab6bb5ea12f563a73
GitLab: #699
2022-10-11 13:45:12 -04:00
bf886711b5 upnp: Fix possible race conditions
Although not harmful, the race conditions could make Jami hang for many seconds
when closing the library.

Change-Id: I88186adbcde309671de6502a22e52ab440f61f4b
2022-10-07 23:04:06 -04:00
03f2da3674 misc: use to_int
Change-Id: I5493a8fd395edb0219b15d83717f1d1f371d571c
2022-10-07 14:14:12 -04:00
dc15893107 string utils: add to_int
Change-Id: I8c3ef6c6aee6b326bf917d3bcb8fc53857072cc3
2022-10-07 14:14:09 -04:00
426c064f5e jamiaccount: send proxy to client through volatile details
Change-Id: Ia1d00fcb5f043f06f8ad93c391083b2c38e35aea
2022-10-07 13:28:28 -04:00
224152f7a4 libguile-jami: Expect user to call jami:init and jami:fini
Exit hooks are only called when in a REPL.  Thus, provide the user with bindings
for initialization and finalization of the daemon.  The syntax `with-jami' can be
used to ensure that finalization happens if initialization succeed.

Change-Id: I2f84a76844866a1de06300cde26618c8576045e5
2022-10-07 12:20:59 -04:00
6fb7210fbf pupnp: bump
Change-Id: Ieaa87654df3eebf6f2b0e74e45e69df80f6cfab0
2022-10-07 11:26:28 -04:00