Commit Graph
2636 Commits
Author SHA1 Message Date
Andrey Volk c58b659f3f [Core] Add new switch_channel_set_variable_strip_quotes API, cleanup mod_sofia. 2021-10-19 20:45:07 +03:00
Andrey Volk 58abf91d1d [Core] Add new switch_core_hash_insert_dup_auto_free() API 2021-10-19 20:39:36 +03:00
Andrey Volk bd7b76bacf [Core] Add new switch_core_hash_insert_pointer(switch_hash_t *hash, const void *data) API to be able to insert data into a hash with an auto-generated key based on the data pointer. Cleanup switch_loadable_module_process() to not generate hash keys for stored events itself. Add unit-test. 2021-10-19 20:35:12 +03:00
Andrey Volk 77c8557aa7 [mod_managed] Fix Windows build 2021-10-19 20:34:45 +03:00
Andrey Volk c35a3bb4db [Core] scan-build: fix false-positive memory leak in switch_xml_set_attr_d and switch_xml_set_attr_d_buf 2021-10-19 20:30:18 +03:00
Andrey Volk 1b048a8a97 [Core, mod_hash] Add two APIs switch_core_hash_insert_alloc_destructor and switch_core_hash_insert_dup_destructor. Code cleanup in mod_hash. Add unit-tests. 2021-10-19 20:26:50 +03: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
suchi.sahoo 25823013f8 [Core] Add switch_safe_atol() and switch_safe_atoll() functions. Add a unit-test. 2021-08-13 20:05:29 +03:00
Chris Rienzo 311e932df5 [core, mod_commands] Execute command under shell when using spawn in switch_system(). 2021-07-16 17:34:53 +03:00
Andrey Volk 9aee9b8e24 [Core, mod_commands] Add posix_spawn replacement for the system call. Add unit-tests. 2021-07-16 17:34:42 +03:00
Chris RienzoandAndrey Volk deecaae870 STIR/SHAKEN (#1160)
* [core] Add SWITCH_CAUSEs for STIR/SHAKEN.
[mod_sofia] Add sofia_verify_identity dialplan APP as a STIR/SHAKEN verification service.  Set sip_hangup_on_verify_identity_fail=true to end calls that fail verification, otherwise check sip_verstat and sip_verstat_detailed channel variables for verification result.

* [mod_sofia] Fix stir shaken implementation issues on fail.

* fix build

* Fix given comments

* stir_shaken_passport_get_grant return does not require to be freed.

* reworked things

* [core] add switch_rfc822_datetime_to_epoch()

* [mod_sofia] fix test return code

* [mod_sofia] Add Date header when signing Identity

* [mod_sofia] Check Date - WIP doesn't work

* [mod_sofia] STIR/SHAKEN check SIP Date header

* Try to give time for sofia to clean up calls

Co-authored-by: Andrey Volk <andywolk@gmail.com>
2021-04-27 13:54:32 -06:00
Andrey Volk fd27504a7d [Core] Add switch_digest(), switch_digest_string() APIs. Add unit-tests. 2021-04-12 01:03:15 +03:00
figaro2015andChris Rienzo ec1a0215fe [Core, mod_conference] Fixed oscillation in conference AGC processing. Especially during volume reduction processing (#1064)
* Fixed oscillation in conference AGC processing. Especially during volume reduction processing

* Re-scaled granular volume to +/- 50 dB level change. 10 = double loudness, -10 = half loudness, 0 = no change

Co-authored-by: Chris Rienzo <chris@signalwire.com>
2021-04-02 22:18:16 +03:00
Chris Rienzo e3a6ec86f8 [core] Update switch_ivr_enterprise_originate() to accept optional switch_dial_handle_list_t instead of dialstring. 2021-03-23 20:23:28 +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
Chris Rienzo 9e49a4176b [test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will be set when the channel has actually parked. 2021-03-17 19:46:18 +03:00
Andrey Volk c8e7a57b4c [Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse() 2021-03-17 18:54:36 +03:00
Andrey Volk 5ed17dd19c [Core] Scheduler: Fix race between switch_scheduler_add_task() and task_thread_loop(). Add new switch_scheduler_add_task_ex() method. 2021-03-17 01:01:01 +03:00
surendrasignalwire dbc894d959 [Core] Reuse caller profile 2021-03-17 00:52:36 +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
Andrey Volk 2dfda2f409 [Core] Fix reference counter lock order when protect/unprotect interface. 2021-03-16 20:34:47 +03:00
Dragos Oancea b774c5e23f [core] eavesdrop: reduce lock contention, fix error condition + enable eavesdrop stereo 2021-03-16 20:26:56 +03:00
s3rj1k 91f12b5920 [Unit-tests] Fix previously defined AM_* in tests. 2021-02-23 20:59:26 +03:00
Chris Rienzo caca7a66d6 [core] fix documentation error for switch_core_media_bug_read() 2021-01-15 14:27:33 +00:00
Andrey Volk 3a6d1210d7 Merge pull request #996 from seven1240/event-merge
[core] add event::merge
2020-12-17 21:28:32 +04:00
Andrey Volk 913551315b [Core] switch_core_port_allocator: Replace getaddrinfo() (may get stuck) with switch_sockaddr_new() and fix IPv6. 2020-12-17 21:15:14 +04:00
Seven Du 6cf606f2a0 [core] add event::merge 2020-12-16 23:05:16 +08:00
Rosen Penev aa71d87528 [build] fix compilation under musl 1.2
musl 1.2 defaults to 64-bit time_t, causing a compile failure under 32-bit platforms.
2020-12-16 18:17:24 +04:00
Andrey Volk 6c24133ea7 Merge pull request #802 from signalwire/recording_follow_transfer
[Core] Fix hangup race in recording_follow_transfer.
2020-10-05 20:32:29 +04:00
Mike Jerris 28c170fda1 [Unit-Tests] Tweak test framework, fail loading unit test when out of memory. 2020-09-22 22:56:54 +04:00
Ciprian 5ce4855a1e [core] Enable MSRP over IPv6
* [core] Enable MSRP over IPv6
* [core] SWITCH_SO_IPV6_V6ONLY socket option
2020-09-15 13:42:22 +04:00
Ciprian 60073ad431 [core] DTLS PEM validation/creation tweaks and fix leaks in fixed pem path. 2020-09-10 21:56:25 +04:00
Norm Brandinger 8beac6c39b [Documentation] Fix parameter definitions in switch_core_media_bug_add() 2020-08-18 19:52:19 +04:00
Andrey Volk 2b8fa12baa [Core] Fix hangup race in recording_follow_transfer. 2020-08-17 21:07:11 +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
Chris Rienzo bd46061a10 [test] Disable logs when loading and shutting down FS core 2020-05-18 21:20:06 +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
Chris Rienzo bc9515468e [test] Fix out of bound buffer read in switch_test 2020-05-07 02:58:30 +04:00
Anthony Minessale cc10e8e044 [Core] Update switch_image.h after recent libvpx update to v1.8.1. 2020-03-06 21:14:36 +04:00
Andrey Volk 8dd27183f8 [Core] Fix possible leak of the subclass variable in CUSTOM_HASH'es switch_event_reserve_subclass_detailed(). 2020-02-16 00:29:38 +04:00
lazedo db95f1e9dd [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
Dragos Oancea c1b66f650f [core] add audio channels limit when opening files, configurable through switch.conf.xml (param "max-audio-channels"), add unit-test. 2020-01-27 23:35:19 +00:00
Andrey Volk c39a2b11ce [Core] Fix regression in switch_utils after implementing unit-tests parallel. 2020-01-23 18:08:08 +00:00
Andrey Volk 893a3cdc1f [Unit-test] Run tests in parallel 2020-01-23 02:29:57 +04:00
Andrey Volk 751d5ff55b [Unit-tests] Place module tests into their module's Makefile.am, fix tests, add missing Makefile.am to mod_png, implement recursive make check. 2020-01-18 09:58:42 +00:00
Andrey Volk d6094643bb [Core] Fix RTP unit-test by adding switch_rtp_get_core_session(). 2020-01-09 13:06:08 +04:00
Andrey Volk 44ba7eb753 [Unit-tests] Do not initiate sqldb by default unless requested. 2020-01-07 21:17:52 +04:00