Anthony Minessale
970064294c
FS-7500: refactoring
2015-05-28 12:46:50 -05:00
Jeff Lenk
278b42eb11
FS-7488 remove windows duplicate files
2015-05-20 13:19:12 -05:00
Jeff Lenk
acdb1ca582
FS-7488 windows fix build error
2015-05-17 13:45:52 -05:00
Michael Jerris
b90aa23cbd
FS-7488: [mod_managed] fix build error
2015-04-28 11:59:15 -05: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
Vineet Chaudhary
299b313b78
FS-7269 : Add error logs in exec_user_method() when exception occurs.
...
In exec_user_method() report ERROR LOG to console in cases exceptions occurs,
like if any of class/method/userMethod->arg is null or for any reason which
sets status to SWITCH_STATUS_FALSE because that prevents loading mod_java and
users don't have clue why it is failing to load.
With this patch error logs can tell why method failed to execute.
2015-02-12 18:41:12 +05:30
Vineet Chaudhary
adccf499ad
FS-7256 : Unable to load mod_java.
...
FS not able to load mod_java because in load_config switch_status_t status
is not initialised and in some conditions status is not gets set ever
resulting returning garbage value, resulting failuar to load mod_java.so.
With this patch status is set to SWITCH_STATUS_SUCCESS so in case everything
is loaded it can load mod_java else status is set to SWITCH_STATUS_FALSE(which
is already covered).
2015-02-10 12:43:26 +05:30
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