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
Mike Jerris
e86d359443
Merge pull request #57 in FS/freeswitch from ~LEKENSTEYN/freeswitch:fixes to master
...
* commit '8e4423f126b9476123c6fa8c41c5f8ebfe1d0cb5':
Document Dbh.test_reactive, return saner values
2014-11-06 11:48:12 -06:00
Anthony Minessale
1bb0b8e16d
fix leak in lua when script does not execute properly in xml_binding handler
2014-09-23 03:57:04 +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
59cd3c77d8
FS-6796 #resolve hack mod_lua to read correct binary string
2014-09-06 19:38:40 +08:00
Seven Du
d8bc5ed7ae
swigall
2014-09-06 07:18:38 +08:00
Seven Du
1a4e6e3093
FS-6796 #comment avoid use c++ string since it causing troubles
2014-09-06 07:18:38 +08:00
Seven Du
a80f1d3524
swig all
2014-09-04 10:31:23 +08:00
Seven Du
1f26712330
swig hack
2014-09-04 10:13:45 +08:00
Seven Du
31f78d8cac
add ability to read from a stream
...
do not use this unless you understand what you are doing and you want to take the risk,
you are warnned
2014-09-04 09:45:16 +08:00
Travis Cross
75836b603f
Suppress diff output for swig-generated files
2014-08-30 03:22:59 +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
Michael Jerris
9f7399c272
FS-6293: fix lua to build using automake, so it works right with srcdir, and avoids the linking to .a is not portable warning
2014-03-18 13:28:52 -04:00
Michael Jerris
048ce8d1f3
FS-6293: srcdir builds, most of the built in mods work now
2014-03-14 23:13:34 -04:00
Anthony Minessale
99765fbd9a
FS-6241 --resolve
2014-02-20 01:25:12 +05:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Jeff Lenk
6dca277ed1
fix compiler error with last commit
2014-02-04 15:36:13 -06:00
Michael Jerris
1f2b632aee
FS-5999: set visibility on lua symbols that are supposed to be exported
2014-02-04 16:09:08 -05:00
Peter Olsson
5a820fdc78
Disabled some compiler warnings on Windows build (for Visual Studio 2012), also disabled code analysis one some projects. This should make the Windows build more clean in the future.
2014-01-22 22:47:11 +01:00
Anthony Minessale
b63bacf43f
FS-6061 swigall
2013-12-23 22:43:48 +05:00
Jeff Lenk
cec4b78d53
fix windows build for lua 5.2 VS2010
2013-11-13 19:42:52 -06:00
Jeff Lenk
7fb68faa55
fix windows build for lua 5.2
2013-11-13 18:06:12 -06:00
Anthony Minessale
81a48a9e4e
missed a few files in new lua commit
2013-11-13 21:06:04 +05:00
Anthony Minessale
2771498707
change to lua 5.2
2013-11-13 07:55:12 +05:00
Anthony Minessale
b86770f34c
FS-5935 --resolve this was broken from the initial check in FS-5524
2013-11-01 16:34:14 -05:00
William King
40c1053221
Fixing printf arg mismatch
2013-10-28 17:01:13 -07:00
Anthony Minessale
c94dd25e4e
swigall
2013-10-15 15:31:28 -05:00
Anthony Minessale
5f2dca72b3
swigall
2013-07-24 18:49:27 -05:00
Anthony Minessale
ac700966e9
swigall
2013-07-24 18:42:50 -05:00
Ken Rice
eb329ad5ae
FS-5524 --resolve
2013-07-10 11:49:59 -05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Anthony Minessale
0ca2c2b0e7
print message before destroying obj
2013-03-22 10:28:15 -05:00
Anthony Minessale
6f81477ca5
swigall
2013-02-19 14:22:01 -06:00
Anthony Minessale
25a992bc27
reswig
2013-01-29 09:34:27 -06:00
Anthony Minessale
117609d2b3
FS-5027 try this one
2013-01-23 14:32:04 -06:00
Anthony Minessale
120a0e3385
make it back-compat as possible instead
2013-01-22 10:26:51 -06:00
Anthony Minessale
6b6198e96f
FS-5027
2013-01-22 09:55:15 -06:00
Jeff Lenk
dc2c11f13f
FS-4768 initial add of vs2012 build support
2012-12-29 14:57:15 -06:00
Anthony Minessale
081e261956
FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate
2012-11-29 08:58:44 -06:00
Anthony Minessale
428cd029de
FS-4868 --resolve This patch also adds freeswitch.ready() which will return false once shutdown has started
2012-11-26 15:18:58 -06:00
William King
48a0924b54
merge failure on my part. this should have been included.
2012-11-07 18:04:13 -08:00
William King
2cea7f0ff6
Enable mod_lua to use native pgsql dbh support
2012-11-07 17:47:46 -08:00
Jeff Lenk
6b6c83a718
FS-2746 --resolve large xmlrpc update thanks garmt
2012-10-13 11:37:25 -05:00
Travis Cross
ee8c9e869b
Fix clang warnings in mod_lua
2012-06-24 09:13:21 +00:00