Commit Graph

32 Commits

Author SHA1 Message Date
Dragos Oancea beffab1d68 [core] RTP: a media timeout fix + add pcap based-unit tests. 2022-06-29 18:20:27 +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 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 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
Seven Du 5243fbd3c5 [core, mod_av] move switch_packetizer to core 2021-10-23 22:00:06 +03:00
Andrey Volk 3065cb9168 [mod_sofia] Fix memory leaks caused by improper profile destroy. Add a unit-test. 2021-03-17 00:58:29 +03:00
Dragos Oancea 5aabb54f68 [core] eavesdrop: init L16 codec at right ptime in certain conditions.
[core] eavesdrop: avoid eavesdropping on itself and return error.

[core] eavesdrop: adjust buffer operations for ptime mismatch and for when ptimes are the same.

[core] eavesdrop: add buffering based on LCM (Least Common Multiple) when ptime mismatch,
and have audio write thread enabled when ptime eavesdropee < ptime eavesdropper.

[unit-tests] add unit-tests for eavesdrop.
2021-03-17 00:47:27 +03:00
s3rj1k 91f12b5920
[Unit-tests] Fix previously defined AM_* in tests. 2021-02-23 20:59:26 +03:00
willie zhang 62970aa998
[Core] fix asr resample out data len 2020-12-23 21:45:26 +04:00
Chris Rienzo 8e0c0df5b6 [core] Fix switch_vad_process() to properly use result of fvad_process(). Fixes #18 2020-03-05 21:16:33 +04:00
Seven Du 917d850b04 [core] remember if a tag is parsed from CDATA 2019-12-31 03:03:04 +04:00
Andrey Volk 4eca43bc62 FS-12048: [Core] Fix leak in SQLite (switch_cache_db_execute_sql2str) when queries return a NULL containing field which may result in high memory consumption. 2019-12-31 00:01:23 +04:00
Dragos Oancea be37eea412 [unit-tests] add basic RTP unit-test 2019-12-20 00:04:06 +04:00
Dragos Oancea b124b607d7 [Core] Add PRE_CLOSED flag on file handle, add unit test. 2019-12-05 21:55:46 +04:00
Dragos Oancea d57cd80428 FS-11967: add unit test for switch_core_codec_copy() 2019-08-01 15:41:43 +00:00
Andrey Volk 9c8de649b3 FS-11947: [Build-System] Do not install test binaries when doing make install. 2019-07-23 19:34:21 +04:00
Anthony Minessale 9cb6b201a6 FS-11921: [core] add switch_img_data_url_png 2019-07-18 00:50:48 +04:00
Chris Rienzo c796723dd7 FS-11728 [core] add switch_ivr_play_and_collect_input(). This function plays a prompt while looking for DTMF or speech and returns whatever was heard. 2019-07-17 19:58:45 +04:00
Seven Du 8e43604dbd FS-11425 add vpx test code 2019-07-17 01:01:21 +04:00
Konstantin Molchanov 69f3dfe779 FS-11892 [switch_console] fix stream write_function 2019-06-18 12:47:39 +03:00
Andrey Volk 97f42d429f FS-11505: [core] System call with output capture on Linux and Windows without fork. Add switch_core test. 2018-12-20 10:19:27 -05:00
Seven Du 18940d13f1 FS-11455 add switch_utils test 2018-12-20 10:19:20 -05:00
Seven Du 879a4dc7ec FS-11487 #resolve convert to Makefile.am
fix regression from 53533118cd7eedf7d25a9c6227558736fa5d0b2f
2018-12-20 10:18:54 -05:00
William King 7724270d89 FS-8233 convert unit tests frameworks to non-recursive makefiles 2015-10-08 13:01:04 -07:00
Michael Jerris 81ba61930f fix automake warnings on tests/unit/Makefile.am 2015-07-20 11:58:40 -04:00
William King 7ee97d6591 FS-7820 fix build system typo. Don't assign the same variable twice. 2015-07-14 12:34:05 -07:00
William King d5904f4a96 FS-7820 adding a unit test for switch_hash.c with benchmarking example
and docs
2015-07-10 15:09:24 -07:00
William King 8cb75a6000 FS-7820 rename test file to better track the core functionality it will test 2015-07-10 15:08:58 -07:00
William King 818d1b24bf FS-7820 Fix build if you don't have libtap installed 2015-07-10 12:22:32 -07:00
William King f7f5c7587f FS-7820
C level unit testing and micro benchmarking framework, including one
example unit test.
2015-07-10 12:04:04 -07:00