Commit Graph

276 Commits

Author SHA1 Message Date
Andrey Volk c47c16b1dd Fix dead nested assignments in various modules 2022-08-09 23:20:52 +03:00
Seven Du fe296e4fa3 [mod_lua] fix json encoding of lua number string 2021-11-01 16:16:01 +08:00
Andrey Volk 0e96038d21 [mod_lua] scan-build: Called C++ object pointer is null (Dbh_test_reactive) 2021-10-19 20:24:09 +03:00
Andrey Volk 877102d4b9 swigall 2021-03-23 17:33:46 +00: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
Andrey Volk 4dd86960ba [mod_lua] Fix leaks. 2020-01-21 13:27:06 +00:00
Andrey Volk 751d5ff55b [Unit-tests] Place module tests into their module's Makefile.am, fix tests, add missing Makefile.am to mod_png, implement recursive make check. 2020-01-18 09:58:42 +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
Chris Rienzo 67578abc79 FS-11785 [mod_lua] reswig with patches for scan-build 2019-07-17 21:46:59 +04:00
Chris Rienzo ffd3778dff FS-11785 [mod_lua] we want diffs of mod_lua_wrap.cpp 2019-07-17 20:22:59 +04:00
Mike Jerris adabceca25 FS-11676: [mod_lua] fix build error in test 2019-07-17 19:46:21 +04:00
Seven Du 813771f737 FS-11676 add JSON support to mod_lua 2019-07-17 19:46:09 +04:00
Sergey Safarov abde630fea FS-11345: Fixed Werror=stringop-truncation for mod_opus
Fixed Werror=format-truncation on sofia-sip/libsofia-sip-ua/tport

Fixed Werror=format-truncation on mod/endpoints/mod_verto

Fixed unused-but-set-variable in mod_lua

Fixed Werror=format-truncation on libs/sofia-sip/libsofia-sip-ua/tport

Fixed Wunused-variable Wmaybe-uninitialized on mod_soundtouch

Fixed Wliteral-suffix for libs/unimrcp
2018-12-12 21:18:19 +00:00
Mike Jerris 798e5ea095 swigall 2018-08-22 19:54:37 +00:00
Seven Du ae4e48fa15 FS-11265 #resolve add detectSpeech and playAndDetectSpeech 2018-08-13 18:59:53 +00: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
Brian West 70f21b8287 reswig 2018-07-24 07:21:54 +00:00
Andrey Volk 50d38ba36c FS-10980: [mod_lua] Update lua version to 5.3.4 and move it to pre-compiled binaries on Windows. 2018-07-24 07:21:46 +00:00
Ethan Atkins 4876cb76a7 FS-11037: [mod_lua] reduce logging levels 2018-07-24 07:21:40 +00:00
Mike Jerris fb4ea595b3 FS-10427: move mod_lua to use swig3.0 so we can reswig on debian9 2017-06-27 12:18:21 -05:00
Sebastian Kemper 56f766f357 FS-10384 [mod_lua] Fix Makefile target
When running "make swigclean" in mod_lua directory and trying to compile
mod_lua afterward, the build fails because the target mod_lua_wrap.cpp
doesn't exist. The target is wrongly called lua_wrap instead.

making all mod_lua
make[7]: Entering directory '/path/to/freeswitch-1.6.17/src/mod/languages/mod_lua'
  CXX mod_lua_la-mod_lua.lo
  CXX mod_lua_la-freeswitch_lua.lo
make[7]: *** No rule to make target 'mod_lua_wrap.cpp', needed by 'mod_lua_la-mod_lua_wrap.lo'. Stop.

Fix this by renaming lua_wrap to mod_lua_wrap.cpp.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-06-10 12:48:28 +02:00
Mike Jerris 2de96120e4 FS-10373: remove last bits of old in tree lua references from build system 2017-06-07 10:15:07 -05:00
Andrey Volk cbe8c8b521 FS-10362 [mod_lua] Update lua to 5.2.4 for windows build. 2017-06-03 02:08:21 +03:00
Sergey Safarov df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Anthony Minessale 6fe1deda45 swigall 2017-01-09 16:57:52 -06:00
Mike Jerris f2792c9ea5 swigall 2017-01-06 17:13:39 -06:00
Brian West 48fab6f6db FS-9851: [freeswitch-core] Add abstimeout to CoreSession:getDigits in switch_cpp #resolve 2016-12-14 14:06:20 -06:00
Alexey Melnichuk 672b5d8309 FS-9821 [mod_lua] Fix. memory/resource leak in mod_lua 2016-12-07 21:56:22 +03:00
Aron Podrigal d3201c6335 FS-9741: lua expose db err str in freeeswitch.dbh
Added 2 methods to lua freeswitch.Dbh
`last_error()` Returns the error string from the last query or nil.
`clear_error()` clears the error string.
2016-11-21 21:11:03 +00:00
Anthony Minessale 9b8a5edd3d FS-9638 2016-11-10 12:09:00 -06:00
Mark Lipscombe 4e9977507d FS-8537: Passing nil to various lua functions causes segfault
Various functions exposed via lua do not check their parameters for null
causing freeswitch to segfault.

This change adds checking for null parameters and returns an error
instead of segfaulting.
2015-11-15 10:43:09 +11:00
Mike Jerris 49f5cede85 FS-7966: silence mod_lua build warnings in generated code 2015-09-02 15:55:01 -04:00
Michael Jerris dc80dbc8f3 FS-7966: don't manually edit generated source 2015-09-02 14:48:42 -05:00
Mike Jerris 46c0d05216 FS-7966: fix more msvc 2015 build warnings. 2015-09-02 13:07:17 -04:00
Mike Jerris d698492aaf Merge pull request #457 in FS/freeswitch from ~LEKENSTEYN/freeswitch:bugfix/FS-8099-lua-dialplan to master
* commit '7749a9f51d57266f42adc0cf25d8f885ebad382d':
  Restore LUA dialplan ACTIONS functionality
2015-08-31 17:06:48 -05: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
Peter Wu 7749a9f51d Restore LUA dialplan ACTIONS functionality
Since using SWIG 2.0 to generate the code, two new items have been
pushed on the stack. Use relative stack indices to avoid breakage.

FS-8099 #resolve
2015-08-30 22:34:49 +02: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
Chris Rienzo a0b53d06f5 FS-7912 add session UUID to lua error logs, if known. 2015-07-29 14:43:34 -04:00
Anthony Minessale e34b195988 FS-7689 #resolve 2015-06-19 13:23:04 -05:00
Michael Giagnocavo f116387443 FS-7644. Change 2013.vcxproj references to 2013 2015-06-18 04:17:53 -06:00
Brian West 4e88d9eea1 update languages to use swig2.0 and reswig 2015-06-16 12:44:37 -05:00
Brian West 34f5994aa2 swigall 2015-06-16 11:23:25 -05: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 452a4c1b05 swigall 2015-04-27 12:35:38 -05:00
Anthony Minessale 3058709a92 swigall 2015-04-25 14:15:26 -05:00
Brian West 861961bd4d FS-7180: when using system lua, properly link against reanmed library versions on debian for mod_lua 2015-01-20 13:18:12 -06:00
Michael Jerris 749ced5f60 FS-7180: add --enable-sytem-lua configure arg to allow building mod_lua against system lua and allow mod_lua to build against lua 5.1 or 5.2 2015-01-20 13:03:06 -05:00
Michael Jerris 07d09b7869 FS-7180: add --enable-sytem-lua configure arg to allow building mod_lua against system lua and allow mod_lua to build against lua 5.1 or 5.2 2015-01-20 11:48:00 -05:00