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
Artur Kraev
c97c0e8a78
Fix for case-sensitive filesystems
2014-11-06 12:36:02 +03:00
Artur Kraev
14bf6c1604
Fixed code formatting.
...
Return ListDelegate
2014-11-06 12:29:10 +03:00
Artur Kraev
889b678e58
mod_managed: Added GetPtr to Util class for internal pointers extraction (very useful when using native api)
2014-11-03 00:43:59 +03:00
Artur Kraev
33cb950500
mod_managed: Added pure CreateStateHandlerDelegate in ManagedSession for native api usage
2014-11-03 00:42:00 +03:00
Artur Kraev
10ebebaae0
mod_managed: added console log level
2014-11-03 00:34:04 +03:00
Artur Kraev
4037e782a5
mod_managed: support per-module references directory
2014-11-03 00:32:30 +03:00
Artur Kraev
f3d089a998
mod_managed: not crash when cannot remove shadow directory (this sometimes happens when restarting from FS console)
2014-11-03 00:24:49 +03:00
Artur Kraev
7c0cf506d8
mod_managed: managedlist command must return value to api stream instead of log
2014-11-03 00:17:57 +03:00
Anthony Minessale
6b42e5a231
FS-6849 #comment change to 'import freeswitch' to only load it
2014-10-16 11:36:59 -05:00
Anthony Minessale
3cd0400d38
FS-6849 #resolve #comment scripts need to have 'from freeswitch import *' at the top. I added it explicitly to compensate.
2014-10-16 10:58:55 -05:00
Travis Cross
0cc7bc8db6
Add missing CURLOPT_NOSIGNAL options
...
To work correctly in a multi-threaded environment, curl needs to be
used with CURLOPT_NOSIGNAL set to 1. If it's left at zero, the
default, then curl will use signals to deal with timeouts which will
often result in a crash.
ref: http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading
ref: http://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html
ref: http://stackoverflow.com/questions/9191668/error-longjmp-causes-uninitialized-stack-frame
ref: https://bugzilla.redhat.com/show_bug.cgi?id=539809
ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570436
2014-09-23 00:04:21 +00: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
Brian West
66302cac89
FS-6811 #resolve
2014-09-09 17:59:29 -05:00
Jeff Lenk
f230eb2a98
vs2010 reswig again
2014-09-08 10:32:35 -05:00
Jeff Lenk
f63ad553f7
vs2010 reswig
2014-09-08 10:18:23 -05: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
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
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
Moises Silva
d6574e8c0f
dos2unix a bunch of files
...
For some reason these files would get marked as modified
just after a fresh clone on Linux
2014-07-22 15:04:28 -04:00
William King
d208484a1c
Fixing linefeed for mod_managed
2014-07-21 14:00:55 -07:00
Jeff Lenk
ae670ad924
FS-6615 reswig vs2010
2014-07-16 15:24:03 -05: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
Brian West
a99df48984
FS-4861 improve logging when using c++ wrapper
2014-07-09 09:09:45 -05:00
Brian West
4a51650b16
reswig
2014-07-03 08:09:18 -05:00
Jeff Lenk
9807a92a70
vs2010 reswig
2014-07-02 12:46:26 -05:00
Jeff Lenk
dc2f5cc491
vs2010 reswig
2014-06-13 22:41:37 -05:00
Brian West
950de7fc5c
reswig
2014-06-13 07:49:34 -05:00
Jeff Lenk
56ef59e9ad
vs2010 reswig and fix mod_rss for recent stereo changes
2014-06-12 22:48:21 -05:00
Anthony Minessale
928a989de1
first pass of stereo support
2014-06-12 22:06:33 +05:00
Anthony Minessale
37a194d956
FS-6555: move -w to the right place so it silences the warnings in generated code instead of using gnu makeisms that didn't actually fix the problem
2014-06-04 20:43:38 +05:00
Travis Cross
79a888de2c
Revert addition of PERL_GCC_PEDANTIC to CFLAGS
...
Brian and I decided to handle this by just stripping -ansi -pedantic
from the mod_perl build instead.
Revert "Since we can't tell if the system perl was built with
pedantic, we have a problem because we default debug enabled which
uses AX_CFLAGS_WARN_ALL_ANSI, For the GNU CC compiler it will be
-Wall (and -ansi -pedantic) The result is added to the shellvar being
CFLAGS by default. Which then gets included for building mod_perl,
Either way I think this is the correct corse of action to overcome
these new builds of mod_perl."
This reverts commit cb94340e268466d19f41961f3b435897994ec1fa.
2014-05-30 15:40:46 +00:00
Travis Cross
750e2bae36
Build mod_perl without pedantic flags even when debugging
...
This means we don't have to set PERL_GCC_PEDANTIC which removes
assertions that are helpful for debugging.
2014-05-30 15:37:14 +00:00
Brian West
cb94340e26
Since we can't tell if the system perl was built with pedantic, we have a problem because we default debug enabled which uses AX_CFLAGS_WARN_ALL_ANSI, For the GNU CC compiler it will be -Wall (and -ansi -pedantic) The result is added to the shellvar being CFLAGS by default. Which then gets included for building mod_perl, Either way I think this is the correct corse of action to overcome these new builds of mod_perl.
2014-05-29 21:13:07 -05:00
Travis Cross
1fe6fb6d46
Use CPPFLAGS for mod_java includes
2014-05-24 09:14:21 +00:00
James Le Cuirot
23fe7f5c9f
Add libyaml pkg-config LIBS to LIBADD not LDFLAGS
...
Per the automake manual these should go in LIBADD.
http://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html
FS-353
Signed-off-by: Travis Cross <tc@traviscross.com>
2014-04-11 22:53:14 +00:00
Anthony Minessale
4178688b4a
add switch_hashtable_insert_destructor so you can insert a pointer into a hash with a custom destructor and use it in spandsp to fix a leak on reloadxml with the tone_descriptor tables and fix a bunch of random tiny leaks etc
2014-04-09 23:26:47 +05:00
Anthony Minessale
369bb55d15
remove unnecessary pool create
2014-04-09 03:18:21 +05:00
William King
658d938754
Unused return value
2014-04-06 23:49:05 -07:00