Richard Fuchs
c1ab601c82
MT#54294 add GPU support
...
Change-Id: I035eff68a4448ad1b2f5b4520943626e1723fce7
(cherry picked from commit 2fa121c0d9 )
2 years ago
Richard Fuchs
e678f4848b
MT#57977 integrate block/silence_media into bfield
...
Change-Id: Ic203e74d1a5ffd10ddfc2b4a3e6b4405be01979a
(cherry picked from commit 1238d2f3c2 )
2 years ago
Richard Fuchs
c306bb5e38
MT#57977 store call_flags into Redis
...
Change-Id: I9c95cccbaacbe6da8363688acb913aa057ccf9b6
(cherry picked from commit 7fe1145b83 )
2 years ago
Richard Fuchs
9d406121d5
MT#57977 convert call flags to uint bit field
...
Change-Id: Iad1fd0b00d847bc478dfeaafe9224a62a85e5b04
(cherry picked from commit 280795ddc9 )
2 years ago
Richard Fuchs
ea1b770e80
MT#57977 store ml_flags into Redis
...
Change-Id: Iddace667db2c61940c58b4332863e871d137ecf1
(cherry picked from commit 0e35f40233 )
2 years ago
Richard Fuchs
137f68336f
MT#57977 use local scope variables
...
to void accidental mixup and reuse
Change-Id: I13040bc724b22936fd52ed308f89e7bb773ac870
(cherry picked from commit 62615d9193 )
2 years ago
Richard Fuchs
505ceba548
MT#57977 convert monologue flags to uint
...
Change-Id: Id30e4dc290dee3cb93deb488817a4938b9369c63
(cherry picked from commit 17e57fbba4 )
2 years ago
Richard Fuchs
8f338b7cfe
MT#57977 support short-packet blocking
...
Change-Id: I132cfc24262b97a29a7887e717d15e0ac38f439b
(cherry picked from commit 81151b3793 )
2 years ago
Richard Fuchs
ec3dfd8a25
MT#55283 retain attributes of unsupp protocols
...
closes #971
closes #1715
Change-Id: Icff09f0d052432a658a773700a837095a335c4f2
(cherry picked from commit a54f638707 )
2 years ago
Richard Fuchs
13ec838917
MT#57977 use symmetric UDP
...
UDP packets sent in response to a UDP request should have the same
source address as the request's destination address.
This can be achieved with sockets bound to a specific address, but in
the case of ANY-bound sockets, we can use the PKTINFO mechanism to do
this.
Extend control_ng_process() to accept an extra socket address
corresponding to the local address to use. Extend the signature of the
callback function (to do the actual sending) accordingly.
Extend socket_sendiov() to be able to set the PKTINFO cmsg when sending
a packet.
Add socket_sendto_from() as a convenience wrapper.
Extend control_udp_incoming() to pass the address from
udp_buf->local_addr back to socket_sendiov().
Change-Id: Idd019fdcfd796098e7807427e6686d4b05de35d1
(cherry picked from commit 8684a1933a )
2 years ago
Richard Fuchs
27a2d7273d
MT#57977 support multiple listen sockets
...
Convert each listener entity into a list.
Support a list of values for each option so that multiple
ports/addresses can be listed.
Keep previous behaviour unchanged: If ANY address is given, open
listeners for IPv4 and IPv6.
Change-Id: Ic54f28d1262f60d5e5c9d824a95e7c33ebc2aba9
(cherry picked from commit ddc3565bfe )
2 years ago
Richard Fuchs
cbb019f558
MT#55283 take ice-lite option from session level
...
as per RFC 8839
We're liberal and also accept it as a media-level attribute.
closes #1721
Change-Id: If0cd853f3661ff9e183fbd9dab3f4ca634823c87
(cherry picked from commit f05a8e4b4d )
2 years ago
Tom Briden
7c59dba446
MT#55283 Allow dtmf injection when also using a delay buffer
...
previously, dtmf_inject wouldn't add the events as the dtmf_payload_type
was set to -1 as part of the delay buffer handling. However, as we
know we want this DTMF, this change updates the function to check for
and use the real_dtmf_payload_type value
Then, in codec_add_dtmf_event, we can check the injected bool and
if set, use the real_dtmf_payload_type again to decide whether to
push the event onto the queue
closes #1722
Change-Id: I34e35f92e014f4aed9e045737df7400155b86602
(cherry picked from commit e40e6c5cd0 )
2 years ago
Richard Fuchs
16e7b9465f
MT#55283 add `allow-asymmetric-codecs` option
...
Change-Id: I6e9a6e04b9e6192b906c872e478784efb3fe5c6a
2 years ago
Richard Fuchs
cbd17da6b3
MT#55283 switch to pcre2
...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050181
https://lists.debian.org/debian-devel/2021/11/msg00176.html
Turns out pcre2 is newer than pcre3. Who knew.
Change-Id: I1631db8e42973f5a485c1ba620fc8e14da7227ec
2 years ago
Richard Fuchs
1475e19e06
MT#55283 use g_free after g_strdup
...
Change-Id: I4e717e64021a9b88a0f2d2b07f34333e7b13452f
2 years ago
Richard Fuchs
ea0d1775f3
MT#55283 update parsing function to bool
...
... and improve resilience with sanity checks.
Change-Id: Ica45fb38e16df2ffdd8792071f6842d3ee824d60
2 years ago
Richard Fuchs
4f6f5fdf4e
MT#55283 update config settings to bool type
...
... for _ARG_NONE settings
Change-Id: I3ccad3eb997d2215ee87cebd1fd8a37cf4563441
2 years ago
Donat Zenichev
d9f12ce27b
TT#136952 fix `cw_printf()` in `cli_list_tag_info()`
...
Use `->subscribers.head` instead of `->subscriptions.head`
for the second logging.
Change-Id: Iaaff61aebbe8bcd421a0159f5490903c0ea9c4ea
2 years ago
Richard Fuchs
cbd217d5b1
MT#55283 fix for NULL selected_sfd
...
Fixes possible NULL dereference as selected_sfd can be NULL.
Fixes #1710
Change-Id: Ie9208d41e32278c52bec8c820435539c82343c28
2 years ago
Richard Fuchs
4cbc35e0f2
MT#55283 fix RTCP/MOS reporting
...
We always need to (re)set the ssrc_map_out SSRC, even for the input
context, as this SSRC is used to look up the receiving SSRC context,
where the appropriate RX stats are stored, including the payload type in
use.
Change-Id: I434c6df4761bf56e36c7267dd3a44b0bb9c9b852
2 years ago
Richard Fuchs
5f345ec54b
MT#55283 pass flags to subscribe answer
...
... when setting up the codec handlers. This is needed to set the
inject-DTMF flag for example.
Change-Id: Iec83cdb2f9671efd9437fbf4511b38d7c847b189
2 years ago
Richard Fuchs
d9131bf9b7
MT#55283 introduce __monologue_free
...
Change-Id: I5273abebba5b73b281c6f02b34d2bd39d5b40d1d
2 years ago
Richard Fuchs
19a0b93850
MT#55283 rename rtp_payload_type_fmt_eq
...
... to _cmp as it better matches its return value.
Also annotate these functions with nonnull.
Change-Id: Iebc725e011bab60ecf089407f16efce0accaf133
2 years ago
Richard Fuchs
2364464fc7
MT#55283 split up codec_offer/answer
...
... and annotate with nonnull
Change-Id: I89e5ff39b2f94e4c4efd9bcdab153e1feac2eb2b
2 years ago
Richard Fuchs
6038711bdf
MT#55283 update var to bool
...
Change-Id: Ifc9917d9160777d672475fbe674af0cec26aebd9
2 years ago
Richard Fuchs
5c5ad6d830
MT#55283 use fancy "named args" syntax
...
... for codec_handlers_update
Change-Id: Ie53aab9c5c1ab9a3d8e79325757a068c2e446540
2 years ago
Richard Fuchs
8893281e3d
MT#55283 switch to anonymous unions
...
Change-Id: If80137ba4955013bb2b919c5bec9172a9776374e
2 years ago
Richard Fuchs
f2f825dccc
MT#55283 enable PKTINFO for UDP listeners
...
These may be bound to ANY so we want to know which local address each
packet was sent to.
Change-Id: I91e40e0b8000e44859255286e13b8f4c5d63b59f
2 years ago
Richard Fuchs
61ce4ca5db
MT#55283 annotate codec_store functions
...
Change-Id: If0690f5ddba23c6e1c4e7a2dd72bd25d8557e114
2 years ago
Richard Fuchs
c42887a2cd
MT#55283 use fancy "named args" syntax
...
... for codec_store functions
Change-Id: I593291daa97a5364000e455262018903cd958a4f
2 years ago
Richard Fuchs
9b6cc05bd0
MT#55283 annotate some signalling functions
...
These are always called with non-NULL arguments.
Change-Id: I0d7c7d58cc111a19da2116641550b689bac829ff
2 years ago
Richard Fuchs
9081d39066
MT#55283 move codec_handler_lookup
...
... into header file so it can be used from a unit test etc
Change-Id: If9e1feea9925611f1dab369b293991a1dfc458bc
2 years ago
Richard Fuchs
baf339fb60
MT#55283 update to C11
...
Change-Id: I966a3698a66eda0ab5485eed2841b4a2044efd73
2 years ago
Richard Fuchs
3a2e0485bd
MT#55283 add missing static
...
Change-Id: I8c0f12057054efd305076cbadeba727c65622d58
2 years ago
Richard Fuchs
267f965098
MT#55283 unify constructor signatures
...
All functions that create listener objects take a read-only endpoint, so
make them as const.
Remove the extra TOS argument to make all signatures the same.
Change-Id: I722c7665b192476d90dbf0ece200d0bfd34cb9eb
2 years ago
Alex Hermann
d4d93332a4
MT#55283 Don't log an error on success when sending DTMF event
...
closes #1701
Change-Id: I1bc894bf7cc1b716ec847045dcf1bf4a676e81f7
3 years ago
Richard Fuchs
40d3765f93
MT#55283 fix CLI description
...
CLI ports are TCP, not UDP.
Also remove port reservation as this is also UDP-specific.
Change-Id: I51d18896dc8ccc2f7c0cd1f8547a596889d01ad7
3 years ago
Richard Fuchs
6e05fe3ac6
MT#55283 check for NULL flags
...
Can be NULL for legacy protocols
Change-Id: I19ad39840060d7927b89f6ef7300f6df807915db
Warned-by: Coverity
3 years ago
Richard Fuchs
e82c4ada1a
MT#56374 delay thread creation until after forking
...
Forking to background kills already created threads, so forking must
happen first and thread creation after.
closes #1695
Change-Id: I743b890b83903d9e0b3248b032844e7e357d2307
3 years ago
Richard Fuchs
d9e682b7db
MT#56374 add convenience macros for string creation
...
... and use them in a few places where it makes sense
Change-Id: I849f2841990808de6f697c92e2760645286dacca
3 years ago
Richard Fuchs
1de9aee92d
MT#55283 limit cname length
...
Thread comm names are limited in length. Make sure not to try to set
names that are too long.
Change-Id: I5e41e1d0d4b65af41fc0b356ad54df86df6f0b82
3 years ago
Richard Fuchs
196249ee00
MT#56374 refactor asan pthread cleanup hack
...
... in terms of macros that can be reused.
Change-Id: I394dece8ec22ce4eff4deefe5ddd6315bb35a6fb
3 years ago
Richard Fuchs
e58d36fb84
MT#56374 update glib dependency to >= 2.40
...
and remove related version test macros.
Change-Id: I4eca21f4bf146ad8d13e775a5cd512ab1a190999
3 years ago
Richard Fuchs
82b2829162
MT#55283 also strip a=tls-id from media
...
Fixes an oversight from c55c9f12
Change-Id: I4d245f39973b4680421d50c97c4cae91273d1e05
3 years ago
Richard Fuchs
94ba3e0fa8
MT#55283 catch possible NULL pointer
...
Creating the codec handler can possibly fail. Catch that case.
Closes #1693
Change-Id: Iebd8d1c6aa3542cd9e1351756148c48ebada38ec
3 years ago
Richard Fuchs
118a7ed472
MT#56374 move thread_create to lib
...
It actually uses a shared config setting from the lib (stack size) so
the function itself also belongs in the lib.
Change an argument type to bool.
Change-Id: I8be68008fcfc058cb29069102eb00497b66897a5
3 years ago
Richard Fuchs
3e81cfa351
MT#55283 further compiler warning fixes
...
for #1690
Follow up to 37d7762f
Change-Id: Id58204db5a733b3d821cbef855fac72451484b41
3 years ago
Richard Fuchs
bf4c66ea27
MT#55283 silence warning
...
Fix-up for 37d7762f
Change-Id: I0560770c43b9f9469e08924b13e46d42ad28b321
3 years ago
Stefan Mititelu
9630574662
MT#55283 Add total stats interface log line
...
closes #1692
Change-Id: If062522377bb75cdeb11f8cfb48bf3b83f9eb73e
3 years ago