1127 Commits

Author SHA1 Message Date
Norm Brandinger
0877bd5770
[Core] switch_rtp: fix switch_rtp_set_max_missed_packets logging
Warning message about missed packets is misleading.
Message indicates greater (>) however, the conditional is greater than or equals (>=).
The message prints the value of rtp_sesstion->missed_count twice instead of printing the value of rtp_session->max_missed_packets.
2021-04-16 17:24:51 +03:00
Dragos Oancea
7fc5d9a7c3 [core] RTP: handle flush for incoming stream with DTX or packet loss. 2021-04-15 16:37:08 +03:00
Andrey Volk
0cab42bfb6 [Core] Hangup call instead of crashing system on SSL_CTX_new failure. Improve logging. 2021-03-22 18:52:04 +03:00
Dragos Oancea
2e65ca908d [core] rtp: fix #ifdef DEBUG_TS_ROLLOVER (#357) 2021-03-22 18:50:12 +03:00
Alexander Traud
48c4db71c2 [core] Allow other (D)TLS Curves/Groups beside P-256
Five years ago, commit 8e1b2ea enabled ECDHE for the DTLS server by hard-coding P-256. Released before that, OpenSSL 1.0.2, allows auto selection of the curve (P-256, P-384, and P-512). OpenSSL 1.1.x has this enabled on default, which adds groups/curves like X25519 and X448 automatically. This change here allows DTLS clients with a demand for Security Level 4 (192 bit) and 5 (256 bit) connecting to the DTLS server.
2021-03-19 01:00:56 +03:00
Andrey Volk
23321373ed [Core] Fix double close of a socket in switch_rtp 2021-03-16 22:15:33 +03:00
Seven Du
409b21b3e6 [core] debug socket sendto 2020-12-16 22:59:43 +08:00
Andrey Volk
1c0e7070bc [Core] Fix leak of BIO_METHOD *dtls_bio_filter_methods in switch_rtp_add_dtls() 2020-07-09 21:51:06 +04:00
Andrew Cassidy
3130a51182 [Core] Add AEAD_AES_128_GCM and AEAD_AES_256_GCM ciphers support. 2020-06-22 16:26:22 +04:00
Andrey Volk
b630dfa79e [Core] switch_rtp: reduce end call due to SRTP failure log level from error to warning. 2020-05-07 02:54:54 +04:00
Andrey Volk
7b46e37318 [Core] switch_rtp: reduce dtls handshake failure level from error to warning. 2020-05-07 02:49:35 +04:00
surendrasignalwire
12f56e293d [Core] Fix one way audio after executing the uuid_recv_dtmf with dtmf string ending with w or W. 2020-05-07 02:08:49 +04:00
Dragos Oancea
65fa90894e [core] scan-build: Value stored to 'xcheck_jitter' is never read 2020-03-06 19:38:16 +04:00
LarryHemenway
6190fa6242
[Core] switch_rtp: update username to allow size specified in STUN RFC 5389 2020-03-04 02:37:14 +04:00
Visytel
b997c4fc8b
[core] Turn DTMF logging on or off using sensitive_dtmf var 2020-02-12 23:44:35 +04:00
Andrey Volk
d6094643bb [Core] Fix RTP unit-test by adding switch_rtp_get_core_session(). 2020-01-09 13:06:08 +04:00
Mike Jerris
c65cb486d6 [core] change No audio stun for a long time error to warning 2019-12-31 02:32:47 +04:00
Anthony Minessale
47c5c8f3e8 [Core] Fix short-circuit in write timestamp calc 2019-12-17 00:37:07 +04:00
Christopher Rienzo
538021a6b9 Merge pull request #1781 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11919-log to master
* commit '6cfceb6e62b4461cedd712b7486c29bf6cd12fe6':
  FS-11919: change back loglevel to DEBUG1
2019-08-01 08:24:35 -05:00
Dragos Oancea
6cfceb6e62 FS-11919: change back loglevel to DEBUG1 2019-08-01 13:21:28 +00:00
Mike Jerris
3c06e3c788 Merge pull request #1773 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11743 to master
* commit '7060d962625970804b9a3d9db4c0f89caf2b67a3':
  FS-11743: don't reset VBW on receiving PLI/FIR
2019-07-25 18:35:30 -05:00
Mike Jerris
304865f580 Merge pull request #1772 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11965 to master
* commit '4349da32142a66caac8ce38d6a710d056ff56cbb':
  FS-11965: fix build.
2019-07-25 18:34:53 -05:00
Dragos Oancea
7060d96262 FS-11743: don't reset VBW on receiving PLI/FIR 2019-07-25 23:30:16 +00:00
Dragos Oancea
4349da3214 FS-11965: fix build. 2019-07-25 23:21:47 +00:00
Mike Jerris
4abe5905e0 Merge pull request #1771 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11965 to master
* commit '9e006869e47bf60706da14c54f81c38ccaf790ca':
  FS-11965: RTC: prevent overflow on percent_fraction (patch by Sergey Khripchenko <shripchenko@intermedia.net>)
  FS-11965: NACK log debug when we get a request
  FS-11965: RTCP: fix on rtcp_report_block->fraction - "if X packets were expected and X was lost, we want 0xff to be reported, not 0" (patch by Piotr Gregor <piotr@dataandsignal.com>)
2019-07-25 18:17:11 -05:00
Dragos Oancea
9e006869e4 FS-11965: RTC: prevent overflow on percent_fraction
(patch by Sergey Khripchenko <shripchenko@intermedia.net>)
2019-07-25 23:10:53 +00:00
Dragos Oancea
2e450cd3dc FS-11965: NACK log debug when we get a request 2019-07-25 23:10:53 +00:00
Dragos Oancea
40982338a0 FS-11965: RTCP: fix on rtcp_report_block->fraction - "if X packets were expected and X was lost, we want 0xff to be reported, not 0"
(patch by Piotr Gregor <piotr@dataandsignal.com>)
2019-07-25 23:09:27 +00:00
Artem Karukov
500b4c23b0 FS-11715: sanitize negative value for pkt_lost 2019-07-25 22:38:57 +00:00
Mike Jerris
3d53f7861e Merge pull request #1765 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11957 to master
* commit '6a036e661c6d78c7f98388ff445a7df93fd286e3':
  FS-11957: destroy NACK table on SWITCH_RTP_FLAG_KILL_JB too
2019-07-25 12:53:51 -05:00
Dragos Oancea
6a036e661c FS-11957: destroy NACK table on SWITCH_RTP_FLAG_KILL_JB too 2019-07-25 16:01:59 +00:00
Dragos Oancea
1f4dbe50e6 FS-11955: JB: add stats for received packets that have been NACKed previously (video) 2019-07-25 14:28:38 +00:00
Dragos Oancea
49e6449bc5 FS-11809: scan-build: dead assignments 2019-07-24 13:47:02 +00:00
Dragos Oancea
385769344b FS-11549: RTCP: fix report block stats
(thanks Sergey Hripchenko)
2019-07-19 01:50:23 +04:00
Dragos Oancea
939b949da4 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_rtp.c 2019-07-18 20:55:16 +04:00
Brian West
b23d887586 FS-11654: [core] add media_timeout, media_hold_timeout and video vs audio variants 2019-07-18 00:54:37 +04:00
Mike Jerris
7906a2054a FS-11919: [core] add api compatibility for switch_rtp_new 2019-07-17 16:43:34 -04:00
Liyang
a13196c1c7 FS-11841 [core] The ts of received rtp packages for DTMF is same. so add SFF_RFC2833 flag check when write rtp package. 2019-07-18 00:29:32 +04:00
Mike Jerris
9050a08952 FS-11642: [core] add audio and video versions of the variables set for the rtp_retain_crypto_keys feature 2019-07-17 23:32:55 +04:00
Anthony Minessale
f4d8631c09 FS-11446: [freeswitch-core] Improve video JB scaling and fix misreported rtp stats #resolve 2019-07-16 20:54:22 +04:00
Anthony Minessale
878565e4b3 FS-11446: [freeswitch-core] Improve video JB scaling and fix misreported rtp stats #resolve 2019-07-16 20:54:17 +04:00
Dragos Oancea
279b7994ef FS-11743: video RTCP counter (fix conflicts) 2019-06-06 17:38:04 +00:00
Dragos Oancea
32de076b18 FS-11751: process_rtcp_packet() bounds check 2019-06-06 16:59:08 +00:00
Dragos Oancea
99bd3b3c6e FS-11675: RTCP NACK at start of call too 2019-06-06 16:50:45 +00:00
Dragos Oancea
133b42b1e9 FS-11635: decrement RTCP counters on duplicate received NACKed packet which is dropped anyway
(affects cum_lost calculation)
2019-06-06 16:50:06 +00:00
Dragos Oancea
bd90f82e6f FS-11635: RTCP: fix SSRC in FIR, cum_lost due to dup NACKs
(thanks Artem Karukov for finding these)

FS-11635: include received Nacked to the expected packet count.
2019-06-06 16:47:29 +00:00
Dragos Oancea
8185aadb5e FS-11631: [core] RTCP: set RTP timestamp for video in SR (sender info block)
FS-11631: [core] fix introduced by minor change of behavior, rtcp & ice (FS-11549) -keep rtcp disabled during ICE
2019-06-06 16:42:28 +00:00
Dragos Oancea
f5a736f037 FS-11549: don't send the reception report block when we need to send fast feedback (do like Chrome does it, don't confuse peer's stats).
FS-11549: don't send RTCP RR unless we're receiver only.
2019-06-06 16:41:43 +00:00
Dragos Oancea
d6169a3845 FS-11561: [core] RTCP: attempt to avoid race cond on calculating DLSR (stats->last_recv_lsr_local) 2019-06-06 16:38:58 +00:00
Piotr Gregor
9682d2c2c9 FS-11730 Add support for DTLSv1.2 and make default
Needed in Chrome version >= 74 as Chrome dropped support for v1.0:
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/discuss-webrtc/yr6gbAgWsKo/9X5vQb8kGAAJ

Using old v1.0 DTLS if 1.2 is not available or legacy DTLS
wanted explicitly. To request old DTLS set variable

	<action application="set" data="legacyDTLS=1"/>

Note: requires openssl 1.0.2 or later for DTLS v1.2 support
2019-06-06 12:05:11 -04:00