s3rj1k
07283ac104
[GHA] Add tests.
2024-10-11 20:16:39 +02:00
Seven Du
ef3bd2d8c3
[core] fix base64 decoded size when encoded string contains padding =
2024-10-09 22:53:00 +08:00
Andrey Volk
c7e793c345
[Core] Add new switch_rand() a compliant random number generator API. Add a unit-test.
...
* [Core] Add new switch_rand() a compliant random number generator API. Add a unit-test.
* Fall back to rand() on unsupported platforms compile time.
2024-06-06 21:14:36 +03:00
Andrey Volk
5b1c2688da
[Core, mod_sofia] Add switch_uint31_t type. Fix CSeq bigger than 2^31-1.
2024-05-09 22:20:14 +03:00
Andrey Volk
647035c323
[mod_opus] Fix status returned by switch_opus_decode(). Should be SWITCH_STATUS_FALSE instead of SWITCH_STATUS_NOOP. Add a unit-test.
2024-02-06 00:36:35 +03:00
Dragos Oancea
8b7a8c4aea
[core] SDP: replace SIP lingo in SDP offer/answer.
2024-01-26 21:01:32 +03:00
Andrey Volk
d08424384b
[Core] Coverity: 1024552 Logically dead code
2023-10-05 18:03:32 +03:00
Andrey Volk
9347c96712
[Core] check_ice: sanitize second field of the candidates. Add new switch_is_uint_in_range() API.
2023-08-13 15:49:58 +03:00
Andrey Volk
6b67970bbb
[Core] Add new switch_channel_get_variable_strdup() and switch_channel_get_variable_buf() APIs that avoid allocating channel variables in a session's memory pool.
2023-07-28 22:29:22 +03:00
Jakub Karolczyk
930341ba86
[core,mod_av,unit-tests] Make transition to core packetizer
2023-07-10 12:58:19 +00:00
Andrey Volk
b2e78c90e7
[Build-System] Fix MD5 on Windows. Add a unit-test.
2023-01-18 02:55:34 +03:00
Andrey Volk
f71a56022a
[Core] switch_mprintf: Increase the size of loop variables in the printf() implementation. Add unit-tests disabled by default.
2022-12-09 23:11:25 +03:00
Dragos Oancea
8e59603d98
[core][mod_sofia] remove ZRTP (deemed obsolete).
...
[unit-tests][build-system][docs] remove references to ZRTP.
2022-10-28 20:19:42 +03:00
Andrey Volk
23eeb4ae75
[Unit-tests] Improve stability of some tests.
2022-08-28 13:24:43 +03:00
Andrey Volk
d38ed7d379
[Unit-tests] Fix unused function in switch_rtp_pcap
2022-06-29 21:42:37 +03:00
Dragos Oancea
beffab1d68
[core] RTP: a media timeout fix + add pcap based-unit tests.
2022-06-29 18:20:27 +03:00
Andrey Volk
fbf2da44d9
[Core] Fix use of private headers.
2021-11-10 21:46:29 +03:00
Andrey Volk
0fdd5b6727
[Core] Fix switch_event_base_add_header leaking memory when headers are with indexes. Add a unit-test.
...
* [Unit-tests] Add a test provoking switch_event_add_header to memory leak.
* [Core] Fix switch_event_base_add_header leaking memory when headers are with indexes.
2021-11-03 17:01:05 +03:00
Sebastian Kemper
a2ce46c6fd
[core] fix "--disable-libyuv"
...
Recent changes made it impossible to compile freeswitch without libyuv
support.
src/switch_core_video.c: In function 'switch_img_read_from_file':
src/switch_core_video.c:3139:4: error: implicit declaration of function 'RAWToI420' [-Werror=implicit-function-declaration]
RAWToI420(data, width * 3,
^
src/switch_core_video.c:3148:4: error: implicit declaration of function 'ABGRToARGB' [-Werror=implicit-function-declaration]
ABGRToARGB(data, width * 4, img->planes[SWITCH_PLANE_PACKED], img->stride[SWITCH_PLANE_PACKED], width, height);
^
Fix this my adding/moving the checks for "SWITCH_HAVE_YUV".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-01 19:35:53 +03:00
Seven Du
408480bae0
[Unit-tests] Fix mac build
...
* [core] fix build err on Mac
* [mod_av] fix build on macOS
2021-10-24 15:36:52 +03:00
Andrey Volk
bf62bd8a7f
[Unit-test] Use unique port numbers when running mod_sofia tests.
2021-10-23 22:01:16 +03:00
Andrey Volk
24ff01518f
[Unit-tests] Fix build of various unit-tests.
2021-10-23 22:01:08 +03:00
dhruvecosmob
715f9e4d28
[Unit-tests] Add a unit-test for the compact form and full form of the Identity header.
2021-10-23 22:00:57 +03:00
Andrey Volk
fcaaf20c7d
[Core] switch_ivr: Restrict the misuse of uuid_hold API. Add switch_hold unit-test.
2021-10-23 22:00:52 +03:00
Chris Rienzo
a26d0c39b0
[core] Add switch_log_meta_printf() and switch_log_meta_vprintf() to allow JSON metadata to tag along with the log message.
2021-10-23 22:00:40 +03:00
Chris Rienzo
451900b353
[Unit-tests] Report test failure details as they happen. Fix issue where fst_xcheck definition did not allow its use inside conditional statements.
2021-10-23 22:00:40 +03:00
Chris Rienzo
594963a3ca
[core] Add switch_ivr_record_file_event() and handle execute_on_record_start/execute_on_record_stop
2021-10-23 22:00:39 +03:00
Chris Rienzo
60faf1a1b1
[core] Update switch_ivr_record_session_event() to check event vars for RECORD_STEREO, etc
2021-10-23 22:00:39 +03:00
Seven Du
90db5a9032
[mod_loopback] Add video support to null endpoint
...
* [mod_loopback] add video support to null channel
* [core test] add video session support
* [core] add video channel test case
2021-10-23 22:00:38 +03:00
Chris Rienzo
60c4b62254
[core] Add SMBF_PAUSE media bug flag to pause an individual media bug.
...
* [core] Add SMBF_PAUSE media bug flag to pause an individual media bug.
[core] Add switch_ivr_record_session_pause() to pause a session recording.
[mod_dptools] Add record_session_pause and record_session_resume dialplan APPs.
[mod_commands] Add pause/resume sub-commands to uuid_record API.
2021-10-23 22:00:38 +03:00
Chris Rienzo
6b6b721c10
[core] allow external ID to be same as the session UUID
2021-10-23 22:00:26 +03:00
Chris Rienzo
c2e240d6dc
[core] Add switch_core_session_set_external_id() which lets you define an additional identifier that you can use in switch_core_session_locate().
2021-10-23 22:00:26 +03:00
Andrey Volk
6da4f147de
[Unit-Tests] Fix switch_core_video test to use temporary path for generated files and clean them up. Ignore test runtime dirs.
2021-10-23 22:00:25 +03:00
Mike Jerris
3dbf6ebee3
.gitignore
2021-10-23 22:00:15 +03:00
Michael Jerris
959e154623
.gitignore
2021-10-23 22:00:07 +03:00
Michael Jerris
22e35ffa7b
[test] add missing file for test
2021-10-23 22:00:07 +03:00
Seven Du
5243fbd3c5
[core, mod_av] move switch_packetizer to core
2021-10-23 22:00:06 +03:00
Seven Du
48e3a37587
[core] fix leak in unit test
2021-10-23 22:00:04 +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
6761e8767e
[core] and core video alpha patch test code
2021-10-23 22:00:01 +03:00
Seven Du
623fecd599
[Core] Add partial Asr support
2021-10-23 21:59:49 +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
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
Andrey Volk
e42ebbb33f
[Core] scan-build: Fix false-positive use-after-free in switch_xml_free_attr(). Add unit test.
2021-10-19 20:15:58 +03:00
Andrey Volk
95fb8c7773
[Core] Fix crash on removing xml attributes. Add unit test.
2021-10-19 20:15:57 +03:00
Dragos Oancea
79980f0767
[unit-tests] add SEND_RTCP_MESSAGE event/rtcp unit-test.
2021-10-04 08:54:09 +00: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