Commit Graph

35277 Commits

Author SHA1 Message Date
Andrey Volk 78da062bd9 [Build-System] Windows: Fix APR build dependency in unimrcp and pthread dependency in libshout. 2021-11-09 22:32:06 +03:00
Ken f2a7891f14 [mod_dptools] Implement disable_system_app_commands global variable to make system and bgsystem dialplan apps disabled at run time.
adds a check on startup for global variable disable_system_app_commands. if the
global variable is set to true, the system and bgsystem dialplan apps will not
have their app_interface loaded via SWITCH_ADD_APP() leaving them effectively
disabled at run time.
2021-11-05 17:46:07 +03:00
Andrey Volk 038cd82948
Merge pull request #1430 from signalwire/libksconfigure
[Build-System] Add better error reporting to configure when libks or signalwire-client are missing and mod_verto or mod_signalwire enabled.
2021-11-03 23:19:48 +03:00
Andrey Volk 2663872953 [Build-System] Add better error reporting to configure when libks or signalwire-client are missing and mod_verto or mod_signalwire enabled. 2021-11-03 22:48:44 +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
Andrey Volk 3c6ffc146f
Merge pull request #1419 from micmac1/disable-libyuv
[core] fix "--disable-libyuv"
2021-11-01 21:35:06 +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
Andrey Volk f96f83ee3b
Merge pull request #1417 from rts-cn/fix-lua-json
[mod_lua] fix json encoding of lua number string
2021-11-01 19:00:35 +03:00
Andrey Volk 28eb8819e9
Merge pull request #1418 from micmac1/opusfile-type_error
[mod_opusfile] fix type errors
2021-11-01 18:58:31 +03:00
Sebastian Kemper 3128afeae7 [mod_opusfile] fix type errors
Since the last round of changes it fails to compile:

mod_opusfile.c: In function 'decode_stream_cb':
mod_opusfile.c:933:143: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'switch_thread_id_t' {aka 'struct __pthread *'} [-Werror=format=]
  933 |                 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[OGG/OPUS Stream Decode] decode_stream_cb(): switch_thread_self(): %lx\n",  switch_thread_self());
      |                                                                                                                                             ~~^      ~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                               |      |
      |                                                                                                                                               |      switch_thread_id_t {aka struct __pthread *}
      |                                                                                                                                               long unsigned int

Address this by applying the same casts that are also used in
src/mod/formats/mod_sndfile/test/test_sndfile.c already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-01 09:51:26 +01:00
Seven Du fe296e4fa3 [mod_lua] fix json encoding of lua number string 2021-11-01 16:16:01 +08:00
shaunjstokes 9f26a15220
[mod_pgsql] Add support for postgresql 14 2021-10-26 19:25:14 +03:00
Andrey Volk 3decbb830c
Merge pull request #1403 from dragos-oancea/_big_endian_rtcp
[core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN
2021-10-26 19:20:57 +03:00
Andrey Volk 1e805413ad
Merge pull request #1404 from dragos-oancea/test_aws_remove_check
[mod_http_cache][unit-tests] remove timestamp unit-test
2021-10-26 19:18:52 +03:00
Dragos Oancea cfb4c3ca80 [mod_http_cache][unit-tests] remove timestamp unit-test 2021-10-26 14:27:14 +00:00
Dragos Oancea 68039d344d [core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN 2021-10-26 08:42:58 +00:00
Andrey Volk 4555731ee3 version bump 2021-10-24 21:49:18 +03:00
Seven Du f9994c00f9
[mod_verto] Fix leak in http_run. 2021-10-24 15:39:56 +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
s3rj1k 712f05578b [Build-System] Enable applications/mod_test build by default. 2021-10-23 23:31:22 +03:00
Andrey Volk fb0cad4c56 swigall 2021-10-23 19:14:38 +00:00
Andrey Volk bf62bd8a7f [Unit-test] Use unique port numbers when running mod_sofia tests. 2021-10-23 22:01:16 +03:00
Chris Rienzo 256ac7c2dd [mod_spandsp] Fix t.38 fax initialization not to add it to the timer thread until after configuration has completed. 2021-10-23 22:01:15 +03:00
Brian West 8478a523a9 [mod_valet_parking] Do not crash when exit key is not defined 2021-10-23 22:01:15 +03:00
Dragos Oancea b3e53bdb6c [core] fix log format string. 2021-10-23 22:01:14 +03:00
Seven Du 7b86eff6d2 [mod_av] fix some leaks in error cases 2021-10-23 22:01:13 +03:00
Andrey Volk a5365eb080 [mod_sofia] Fix build on older sofia-sip when NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT tag is undefined. 2021-10-23 22:01:12 +03:00
Andrey Volk a6178e88fb [mod_sofia] Fix use of NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT when sip_call_tls_orq_connect_timeout channel variable is undefined. 2021-10-23 22:01:12 +03:00
Chris Rienzo cada5c37dc [core] Fix regression in play_and_collect_input and play_and_detect_speech - read_frame_callback and user_data from input args was not preserved. 2021-10-23 22:01:11 +03:00
Chris Rienzo a617d5857c [mod_conference] fix crash when using conference heartbeat 2021-10-23 22:01:10 +03:00
Dragos Oancea fe34509bc5 [mod_conference] scan-build: Value stored to 'status' is never read - conference_loop_input() 2021-10-23 22:01:09 +03:00
Andrey Volk 24ff01518f [Unit-tests] Fix build of various unit-tests. 2021-10-23 22:01:08 +03:00
Chris Rienzo f31c73a11d [core] Add type checking for SWITCH_CHANNEL_SESSION_LOG and SWITCH_CHANNEL_UUID_LOG macros. 2021-10-23 22:01:08 +03:00
Len 3c85fd34d7 [mod_valet_parking] Fix typo in valet_parking_orbit_dialplan channel variable. 2021-10-23 22:01:08 +03:00
Dhruv Gupta 35c2af75ce [Unit-tests] Fix-up usage of sipp in the register_403 unit-test of mod_sofia 2021-10-23 22:01:07 +03:00
Andrey Volk b7f908e890 [mod_sofia] Destroy nua handles to avoid memory pool swell when system is unavailable (busy, paused or reached internal limits) 2021-10-23 22:01:07 +03:00
Andrey Volk 7ed2a99eb5 [mod_sofia] Implement maximum receiving requests per second max-recv-requests-per-second profile parameter. (Warning: Behaviour change. New default is 1000 requests per second) 2021-10-23 22:01:06 +03:00
Anthony Minessale a3c6e70f56 [mod_verto] print json debug compact 2021-10-23 22:01:06 +03:00
Anthony Minessale 756d62137a [mod_verto] add some more log lines 2021-10-23 22:01:06 +03:00
Anthony Minessale 6c4bc433b4 [mod_verto] add exptime to ping and pong and log any hangups as a result of auth expiring 2021-10-23 22:01:05 +03:00
Anthony Minessale d5f9155f90 [mod_verto] more perms checks 2021-10-23 22:01:05 +03:00
Anthony Minessale 8c9d0ecd9e [mod_verto] add a way to broadcast an event to one session 2021-10-23 22:01:05 +03:00
Michael Jerris 0fcdeffb0d [mod_verto] allow re-auth via verto.login 2021-10-23 22:01:04 +03:00
Michael Jerris 65ad502caf [mod_verto] add verto_skip_set_user var to skip set_user in mod_verto 2021-10-23 22:01:04 +03:00
Anthony Minessale 79110fc719 [mod_verto] auth-expires 2021-10-23 22:01:03 +03:00
Michael Jerris 6a893d4990 [mod_verto] put vars frorm user lookup into user_vars and protect user_vars 2021-10-23 22:01:03 +03:00
Anthony Minessale 3eddfc66a1 [mod_verto] pass in audio flags 2021-10-23 22:01:03 +03:00
Anthony Minessale 39b3caacb5 [core, mod_commands, mod_verto] small tweaks to cache stuff to allow clear from verto and allow no domain to imply the default domain 2021-10-23 22:01:02 +03:00
Anthony Minessale f540bbbbe3 [mod_verto] check permissions on the more specific event channel for guest users to allow them to subscribe to global events but still get send/don't send permission control on specific conferences 2021-10-23 22:01:02 +03:00
Anthony Minessale 7ad249974e [core] don't double set caller-id 2021-10-23 22:01:01 +03:00