2699 Commits

Author SHA1 Message Date
Seven Du
5243fbd3c5 [core, mod_av] move switch_packetizer to core 2021-10-23 22:00:06 +03:00
Seven Du
2448d32c0f [core] add jpg data_url support with stb_image 2021-10-23 22:00:03 +03:00
Seven Du
2a87e7b98c [core] add stb_image_write supported image write 2021-10-23 22:00:03 +03:00
Seven Du
58d5442dc5 [core] add stb_image to read more supported picture formats 2021-10-23 22:00:03 +03:00
Seven Du
96562bcc48 [core] add switch_img_read_png_from_memory 2021-10-23 22:00:00 +03:00
Anthony Minessale
b18ea498df [core] add new prompt functionality to ask for pin over dialogbox 2021-10-23 22:00:00 +03:00
Anthony Minessale
ffbe8500ec [core] add new function to theorize the dimensions of an image if it were to be resizedto fit inside another image 2021-10-23 21:59:59 +03:00
Anthony Minessale
efff71f2f0 [core] add switch_thread_pool_wait 2021-10-23 21:59:59 +03:00
Anthony Minessale
2c7f97a606 [mod_verto] allow vars from dp to pass to verto dialog 2021-10-23 21:59:59 +03:00
Chris Rienzo
d1d777df6c [core] add SCSC_SHUTDOWN_CAUSE 2021-10-23 21:59:56 +03:00
Michael Jerris
53b459a687 [core] add support for resolving (and ignoring) mdns style .local addresses in ice candidates 2021-10-23 21:59:54 +03:00
Liyang
b1714199ce FS-11855: [Core] Offer all negotiated codecs in 200 OK when receiving re-INVITE without SDP 2021-10-23 21:59:48 +03:00
Andrey Volk
b8be418fb8 [Core, mod_commands] Implement memory allocation statistics by adding the "memory" API command. 2021-10-20 17:53:18 +03:00
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 Rienzo
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
figaro2015
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