710 Commits

Author SHA1 Message Date
Michael Jerris
450b88757e [core] add support for resolving (and ignoring) mdns style .local addresses in ice candidates 2021-10-23 01:20:25 +03:00
Mike Jerris
64dff4fd98 FS-11856: [Core] Offer all negotiated codecs in 200 OK when receiving re-INVITE without SDP 2021-10-23 01:20:21 +03:00
Liyang
39edc8eae3 FS-11855: [Core] Offer all negotiated codecs in 200 OK when receiving re-INVITE without SDP 2021-10-23 01:20:20 +03:00
Dragos Oancea
acbe88d18d [core] polish SEND_RTCP_MESSAGE 2021-10-04 08:54:05 +00:00
Ryan Mitchell
607f5db140 [core] add SEND_RTCP_MESSAGE:
toggle send rtcp events off fire_rtcp_events.
eval most common path first when checking flags.
2021-10-01 13:46:34 +00:00
Noah Mehl
d24280c700 [core] Add SEND_RTCP_MESSAGE
We utilize: https://github.com/sipcapture/hepipe.js to monitor RTCP for our calls. As such, it's super helpful to get the sent RTCP data along with the received RTCP data. The new: SEND_RTCP_MESSAGE basically mirrors the existing RECV_RTCP_MESSAGE.
2021-10-01 13:46:34 +00:00
Dragos Oancea
5aacf41f14 [core] add core media getter (it gets the RTP session, handy for unit-testing). 2021-09-27 16:42:30 +03:00
Dragos Oancea
a562db760c
[mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.
* [mod_opus] add cfg setting to overwrite the fmtp stereo param coming from remote. Eg: incoming SDP has stereo=1 but we want a mono call so we answer with stereo=0.
sprop-stereo will be set to 0 too.

* [core] opus: use switch_core_max_audio_channels() with remote fmtp stereo=1 to allow disabling of stereo.
2021-05-14 18:36:30 +03:00
Andrey Volk
c61d89a47f [Core] Add new switch_core_session_try_reset() API to fix a deadlock for the case when two threads want to set session codecs. 2021-03-22 18:47:46 +03:00
Chris Rienzo
c63f9524ee [core] Remove unused buffers and mutexes in switch_core_session. Remove destruction of resamplers that will already be destroyed by switch_core_session_reset(). 2021-03-22 18:46:03 +03:00
Andrey Volk
1fee1fc6ad [Core] Fix SDP parsing causing segfault. 2021-03-17 00:14:48 +03:00
Andrey Volk
4fe8aecbfb [Core] Make switch_core_media_set_codec() and switch_core_media_set_video_codec() thread-safe so there is no race when a session's codec is initiated by different threads simultaneously. 2021-03-16 23:15:54 +03:00
surendrasignalwire
b220a05010 [Core] Fixed issue while setting mode on reinvite or outbound direction 2021-03-16 23:13:49 +03:00
surendrasignalwire
cffc29927b [Core] Fix crash while writing text_frame in conference 2021-03-16 22:12:33 +03:00
Andrey Volk
a931220af6 [Core] Fix wrong switch_assert expressions in switch_core_session_write_frame() 2021-03-16 20:33:18 +03:00
Andrey Volk
09d4ec6433 [Core] Fix multiple missing session unlocks in switch_core_media.c 2021-03-16 20:30:39 +03:00
surendrasignalwire
e8fa2d37b2 [Core] execute_on_audio_change on codec change 2021-03-16 20:11:56 +03:00
ajay-sabat
73d6da1342
[Core] switch_core_media: Correct srtp_remote_audio_crypto_key variable 2020-11-12 01:29:48 +04:00
Alexander Traud
ac8ef6ba1e
[core] Fix ICE candidate priorities
Seven years ago, commit cb076e6 used xor as pow. The compiler Clang 10
errors about this copy-paste-error from RFC 5245 section 4.1.2.1. Now,
Clang compiles successfully.
2020-09-27 13:04:31 +02:00
Ciprian
60073ad431
[core] DTLS PEM validation/creation tweaks and fix leaks in fixed pem path. 2020-09-10 21:56:25 +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
Anthony Minessale
6b35e576fc [core] Transfer with rtp_pass_codecs_on_stream_change one way audio 2020-05-08 01:40:21 +04:00
Anthony Minessale
eaca798979 [core] add orig session check 2020-05-08 01:28:10 +04:00
Andrey Volk
1956911e4b [Core] Fix locking and a memory leak in switch_core_session_write_video_frame() and switch_core_session_write_text_frame(). 2020-05-07 03:15:43 +04:00
Dragos Oancea
165ca28fa1 [core] scan-build: Value stored to 'status' is never read - switch_core_session_write_frame() 2020-03-06 19:36:04 +04:00
Dragos Oancea
60cf5a0a3c [core] scan-build: Value stored to 'ip' is never read - switch_core_media_recover_session() 2020-03-06 19:33:46 +04:00
Dragos Oancea
87ab38d281 [core] scan-build: Value stored to 'pass_fmtp' is never read - switch_core_media_gen_local_sdp() 2020-03-06 19:32:28 +04:00
Dragos Oancea
e6c52efe64 [core] scan-build: Value stored to 'timer_name' is never read - switch_core_media_activate_rtp() 2020-03-06 19:29:52 +04:00
Dragos Oancea
c7eee4ba76 [core] scan-build: Value stored to 'ptime' is never read 2020-03-06 19:28:09 +04:00
Seven Du
6decc21669 [core] fix sdp parsing on invalid sdp 2020-02-26 00:17:55 +04:00
Andrey Volk
f9cafeb7a8 [Core] Fix crash when parsing some uncommon SDP attributes 2020-02-25 01:40:52 +04:00
Dragos Oancea
b28eb5ea92 FS-11836: scan-build: Argument with 'nonnull' attribute passed null
FS-11836: scan-build: Dead assignments
2019-12-30 23:55:18 +04:00
Seven Du
254fda292a [core] fix shutdown crash when core running with MINIMAL flag 2019-11-21 22:05:43 +04:00
Liyang
5f1ee43cd0 FS-11971: [core] fix 488 when receive invite with SRTP/RTP 2019-08-01 02:15:56 +04:00
Dragos Oancea
309135640b FS-11964: add new chan var "rtp_video_nack_disable" 2019-07-25 21:57:37 +00:00
Mike Jerris
d16575d288 FS-11962: [core] Fix memory leak in switch_core_session_write_video_frame 2019-07-25 14:41:39 -06:00
Dragos Oancea
863189fed6 FS-11958: [core] add switch_core_media functions that deal with bw and bitrate 2019-07-25 17:08:58 +00:00
Liyang
60c7235603 FS-11953: [core] set the correct cng pt after receive reinvite to avoid garbled audio 2019-07-24 22:38:08 +04:00
Mike Jerris
b81cbcba3c FS-11929: [core] improve detection of when video is ready. 2019-07-18 00:55:56 +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
Brian West
d355a57264 FS-10634 [mod_spandsp]: txfax failing with 488 Not Acceptable Here race 2019-07-18 00:32:53 +04:00
Shashi Kumar
7c79dd95a3 FS-11837: [Core] Add feature to allow execution of an app on audio change, execute_on_audio_change variable. 2019-07-17 23:34:16 +04:00
Seven Du
0bf7bb0635 FS-11721 don't automatically send unicode linefeed on MSRP 2019-07-17 23:25:51 +04:00
Anthony Minessale
a0ac544fa1 FS-11713: [core] fix a calls b with video, b answers with audio and then turns on video (A will have to unpause video too) 2019-07-17 20:07:49 +04:00
Anthony Minessale
b8a8765991 FS-11713: [core] fix video upgrade from b to a 2019-07-17 20:07:30 +04:00
Sergey Khripchenko
c546154d67 FS-11436 more granularly calculate 'samples' and modify requested 'fsp' accordingly
+ review all places where it used and reflect that 'fps' is (float)
2019-07-16 20:26:32 +04:00
Sergey Khripchenko
be7c5331f6 FS-11436 RTP timestamp field incorrectly calculated based on fps 2019-07-16 20:26:24 +04:00
Andrey Volk
a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Mike Jerris
10a52ebe48 Merge pull request #1711 in FS/freeswitch from ~SEBASTIAN/freeswitch:bugfix/FS-11783-address-gcc8-warnings to master
* commit '3ca75eb8efa4e50ebe083a269b75fcb1762daa91':
  FS-11783: [mod_say_ja] quiet overflow warning
  FS-11783: [core] quiet gcc truncation warning
2019-06-24 09:29:12 -05:00