2672 Commits

Author SHA1 Message Date
Anthony Minessale
4c8e7d86e3 [core, mod_verto] check for camera change and trigger new constraints 2021-10-23 22:00:58 +03:00
Dragos Oancea
ce9905cdf4 [core] don't hangup call on SRTP errors (new default behaviour) 2021-10-23 22:00:55 +03:00
Chris Rienzo
8e17dca00d [core] Save position of XML opening tag '>' and XML closing tag '<' in switch_xml_parse_str(). 2021-10-23 22:00:55 +03:00
Andrey Volk
8a2ad233d6 [Core] Do not generate SDP media Descriptions with RTP/SAVP transport protocol when no crypto attribute. 2021-10-23 22:00:54 +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
2c3dcbde71 [core, mod_console, mod_graylog2] Add sequence to logs to preserve order when timestamp is not precise enough. 2021-10-23 22:00:34 +03:00
Anthony Minessale
d3ca238b05 [core] some mods for file playback to get proper bitrate and timing 2021-10-23 22:00:31 +03:00
Anthony Minessale
d2ccb93f3e [mod_sofia] don't auto unhold via media format for non-sip 2021-10-23 22:00:31 +03:00
Anthony Minessale
badd59d609 [core, mod_verto] remove CF_VIDEO_ONLY and pay attention to the streams instead and add CF_NO_RECOVER flag for verto 2021-10-23 22:00:28 +03:00
Anthony Minessale
2bdefa3532 [core] add a flag to tell when video media bugs that touch the write stream are active 2021-10-23 22:00:28 +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
Anthony Minessale
fb2250df8e [mod_verto] indicate video fps and size of current layer to client 2021-10-23 22:00:20 +03:00
Anthony Minessale
2d5df53009 [mod_verto] new changes for verto video features 2021-10-23 22:00:18 +03:00
Anthony Minessale
dc4bef79ec [core]speed up call setup 2021-10-23 22:00:18 +03:00
Anthony Minessale
f74e2a962c [core] add switch_filecmp 2021-10-23 22:00:10 +03:00
Anthony Minessale
761d5310fd [core] make auto mean cpu * 3 / 2 2021-10-23 22:00:10 +03:00
Anthony Minessale
bb02989f42 [core] use the more efficient mult-byte tolower/toupper in the helper func 2021-10-23 22:00:09 +03:00
Andrey Volk
07884e20a2 [Build-System] Fix switch_packetizer headers and add it to the build. 2021-10-23 22:00:08 +03:00
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