21 Commits

Author SHA1 Message Date
Brian West
34f5994aa2 swigall 2015-06-16 11:23:25 -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
Peter Wu
8e4423f126 Document Dbh.test_reactive, return saner values
In the FreeSWITCH core, the return value of switch_case_db_test_reactive
is ignored, but it is usable in LUA modules (and other bindings via
SWIG). The LUA API example[1] shows how to check the return value, but
that example miserably fails if the database did not exist before.

Changes:

 - Document the expected behavior of the test_reactive function.
 - Assert that test_sql and sql_reactive are both given. If either
   query is not given, the caller is using the wrong API.
 - When SCF_AUTO_SCHEMAS is cleared, use the return value of the
   test_sql execution. Does anybody use this? Why not remove it?
 - Do not unconditionally return SWITCH_FALSE when test_sql fails,
   instead allow it to become SWITCH_TRUE when reactive_sql passes.
 - Remove the unnecessary test_sql check for SCDB_TYPE_CORE_DB
   (this is now enforced through an assert check). (+reindent)
 - Clarify the error message of drop_sql, prepending "Ignoring" to
   the "SQL ERR" message.
 - LUA: Do not print "DBH NOT Connected" if the query fails. This was
   the initial source of confusion.

 [1]: https://confluence.freeswitch.org/display/FREESWITCH/Lua+API+Reference
2014-09-15 15:39:08 +02:00
Seven Du
d8bc5ed7ae swigall 2014-09-06 07:18:38 +08:00
Travis Cross
e79380c394 Catch more swig-generated files with gitattributes 2014-09-04 03:36:44 +00:00
Seven Du
a80f1d3524 swig all 2014-09-04 10:31:23 +08:00
Travis Cross
9a1df3e3e0 Remove the legacy mod_spidermonkey
Without libjs in tree, this can't realistically be built.  Our legacy
is stored in the version control history.
2014-07-18 19:03:12 +00:00
Anthony Minessale
3a00260dc6 FS-6615 test this patch 2014-07-16 19:33:10 +05:00
Travis Cross
aab164b3e6 make swigall 2014-07-16 03:52:09 +00:00
Brian West
4042571003 swigall 2014-07-15 19:09:24 -05:00
Jeff Lenk
9e600ec938 FS-6591 --resolve If you are still using spidermonkey you should migrate to v8 2014-06-13 22:49:01 -05:00
Travis Cross
fb7fa3d66a Update gitignore 2014-04-05 07:57:05 +00:00
Jeff Lenk
7ed144d115 * Deprecate mod_spidermonkey windows part 1 2014-03-26 18:33:37 -05:00
Travis Cross
b0bcc011ea Deprecate mod_spidermonkey
We consider mod_spidermonkey to be completely replaced by mod_v8 (and
more generally by mod_lua) at this point.  We've barely supported
mod_spidermonkey for years.  Everyone should stop using it.

We're keeping this around for awhile in case people are relying on C
extensions to mod_spidermonkey and need time to migrate.  This module
may or may not be part of a v1.4 release depending on whether we find
anyone cares.  It definitely will not be part of the next release
after v1.4.
2014-03-26 18:01:49 +00:00
William King
a3e4b8aad4 FS-6241 applying the patch to the legacy 5.1 mod_lua as well 2014-02-19 15:08:49 -08:00
Ken Rice
6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Marc Olivier Chouinard
98354557f6 Removed Makefile.in from legacy mod_lua and added .gitignore to help not get it back in. 2014-01-15 00:54:00 -05:00
Anthony Minessale
dc9415a8c3 reswig 2014-01-10 01:28:58 +05:00
Anthony Minessale
2643ac2b96 add legacy subdir for mods with 5.1 edition of mod_lua, change languages/mod_lua to legacy/languages/mod_lua in modules.conf to use older lua mod 2014-01-10 01:25:51 +05:00