291 Commits

Author SHA1 Message Date
Andrey Volk
c3dff0ff95 [libesl] Coverity 1512636 Unused value 2025-02-04 02:18:47 +03:00
Andrey Volk
17cd751827 [libesl] Coverity 1589045 Check of thread-shared field evades lock acquisition 2025-02-04 02:18:47 +03:00
Andrey Volk
98a3749c10 [libesl] Coverity 1546296 Check of thread-shared field evades lock acquisition 2025-02-04 02:18:47 +03:00
Andrey Volk
8cfde8ad3c [libesl] Coverity 1294491 Identical code for different branches 2025-02-04 02:18:47 +03:00
Andrey Volk
f5509a59e8 [libesl] Coverity 1024721 Unchecked return value from library 2025-02-04 02:18:47 +03:00
Andrey Volk
e48b83fbbf [libesl] Coverity 1024719,1024720 Unchecked return value from library 2025-02-04 02:18:47 +03:00
Andrey Volk
62ef2d4822 [libesl] Coverity 1024459 Missing unlock 2025-02-04 02:18:47 +03:00
Andrey Volk
47d87e37b6 [libesl] Coverity 1024285 Dereference before null check 2025-02-04 02:18:47 +03:00
Andrey Volk
5854585d2d [libesl] Coverity 1395572 Logically dead code 2025-02-04 02:18:47 +03:00
Andrey Volk
d895fdff60 [esl] 1227669 Resource leak 2025-01-31 18:09:18 +03:00
Andrey Volk
e53e8a17c1 [esl] Fix dead nested assignment in esl_recv_event() 2022-08-09 23:19:01 +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
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
Andrey Volk
3556119fde [libesl] Fix leak of esl_event_header_t in esl_event_base_add_header(). Code cleanup. 2021-02-17 22:56:10 +03:00
Andrey Volk
0275ea1eb4 [Build-System] Use $(DefaultPlatformToolset) so it's easier to build using newer Microsoft Visual Studio versions. 2020-05-25 14:18:25 +04:00
lazedo
db95f1e9dd [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
Andrey Volk
f7ec94c9c4 [esl] Add SHUTDOWN_REQUESTED event. 2019-12-31 03:12:04 +04:00
Andrey Volk
f0da2f2cd4 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for libs/esl 2019-07-18 21:27:04 +04:00
Andrey Volk
5daa48953d FS-11896: [core] Fix typo in esl_buffer 2019-07-18 00:26:58 +04:00
Anthony Minessale
1dd4191601 FS-11896: [core] stop media bugs from being possible to add to channels with no media ready, stop transfer recordings upstream to not try to transfer recordings to channels without media ready 2019-07-18 00:26:45 +04:00
Chris Rienzo
ca8fa0e1ff FS-11785 [esl] dead assignments in esl_event_serialize
null attribute in esl_buffer_read
	       null attribute in esl_event_base_add_header
	       null attribute in esl_recv_event
2019-07-17 20:22:11 +04:00
Andrey Volk
a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Andrey Volk
671da28796 FS-11263: [Build-System] Move FreeSWITCH build system to Visual Studio 2017 on Windows. 2018-07-24 07:21:55 +00:00
Andrey Volk
e7ff903629 FS-11150: [Build-System] Fix broken ESL in .Net project. 2018-07-24 07:21:52 +00:00
Anthony Minessale
bb7013817b FS-11138: [freeswitch-core] Leak in ESL client #resolve 2018-07-24 07:21:51 +00:00
Muteesa Fred
9fc898daac FI-393 [fs_cli banner] this commit changes the text on the fs_cli banner 2018-06-14 19:38:05 +00:00
Mike Jerris
417b1d2a9a FS-10036: fix include 2017-03-15 13:33:03 -05:00
Mike Jerris
e4e4fd2f9f FS-10036: add back in patch from FS-4285. Still need to address this upstream 2017-03-08 20:50:34 -06:00
Mike Jerris
20bcb2edef FS-10036: update cJSON code to pre 1.4.0 release of cJSON. this includes backports of all our fixes, and our build macros for windows and visibility. It also makes it easy to drop in a new version, and to in the future be able to switch to a system version of cJSON easily (after all these updates are in, probably around v2.0 timeframe. Note this new version adds a lot of extra error checking, fixes some buffer overruns, and improves parser and printer performance 2017-02-27 18:53:23 -06:00
Anthony Minessale
9dba32410f FS-10015: [freeswitch-core] Add variable to allow firing of text events #resolve 2017-02-06 16:37:59 -06:00
Anthony Minessale
c409499cd9 FS-9576 #resolve [Add Realtime Text] 2016-09-27 16:40:43 -05:00
Anthony Minessale
26bed941b3 FS-8160 Additional vulnerability in json parsing malformed utf encoded chars discovered by Brian Martin - Tenable Security Response CVE-2015-7392 2015-11-19 13:45:04 -06:00
Michael Jerris
cf892528a1 FS-8160: properly handle malformed json when parsing json with \u at the end of a json string 2015-09-14 17:56:55 -04:00
Mike Jerris
46c0d05216 FS-7966: fix more msvc 2015 build warnings. 2015-09-02 13:07:17 -04:00
Michael Jerris
164c6111a1 FS-7966: remove some older versions of msvc build system as these will no longer work soon, please use 2015 instead 2015-08-31 10:19:10 -05:00
Mike Jerris
288c62576f FS-7966: fix more warnings in msvc 2015 build 2015-08-28 17:42:55 -04:00
Mike Jerris
5de2f7d7bd FS-7966: multiple fixes for msvc 2015 build, silence multiple warnings 2015-08-27 18:49:13 -06:00
Michael Giagnocavo
5e456fe9a6 FS-7966. First pass at moving to Visual Studio 2015.
The new C compiler breaks a lot of things. snprintf and timespec now exist, and redefining causes an error.
Many more things are warnings, so warnings-as-errors will fail - remove it from some projects for now.
V8: don't pass VS version to build batch file.
mod_sofia: Config has too-long if/elseif chain. Break this up to avoid "parser stack overflow; program too complex".
Add mod_conference.h to project and dir to includes.
2015-08-21 18:28:32 -04:00
Jeff Lenk
345e50d25a FS-7644 2015-06-11 15:29:28 -05:00
Michael Jerris
2cc0348422 FS-7635: remove msvc 2005 2008 and 2010 non working build systems. There are now multiple more recent (3 different ones) and some free versions of the compiler that can be used. 2015-06-10 16:33:14 -04:00
Anthony Minessale
d961aad2c2 FS-7604 #resolve 2015-06-02 13:17:04 -05:00
Jeff Lenk
a607c20a94 windows fix for a0e9ddf58943171a9031159919e99ef20147a11e 2014-06-08 16:06:32 -05:00
Travis Cross
a0e9ddf589 Convert esl_true and esl_false to functions
Prior to this commit, an expression such as:

  esl_true("true") ? 42 : 0

...would return 1 rather than 42.
2014-06-04 12:00:31 +00:00
Jeff Lenk
e6ac87f5f1 fixes for VS2010 code analysis - hope these are OK else-ware 2014-05-20 22:54:32 -05:00
Natanael Copa
317f4b1442 Fix building with musl libc
POSIX says poll.h and signal.h should not be prefixed with sys/ (ie
poll.h instead of sys/poll.h)

limits.h also defines a TZNAME_MAX so we change name of the define for
spandsp.
2014-05-02 11:20:36 -04:00
Travis Cross
2b1ae831d1 Remove some dead assignments in ESL 2014-05-02 03:57:07 +00:00
Michael Jerris
a1a397420e fix leaked body in error case 2014-04-30 16:10:08 -04:00
Michael Jerris
ba6b9c5a11 ESL-91: --resolve bigger buffer for args 2014-04-21 13:33:47 -04:00
Travis Cross
f754057c2a Avoid crash on event without content-type
If we received an event without a content-type header we were
dereferencing a null pointer leading to a seg fault.

Reported-by: Ico <ico@voip-io.org>

ESL-90 --resolve
2014-04-09 01:20:07 +00:00
Travis Cross
c6acddf928 Fix typo in comment 2014-04-08 23:17:12 +00:00