Brian West
4e734db296
we need to do these in subdirectories because a number of the modules build a different ESL.so
2014-03-21 15:45:40 -05:00
Brian West
91d308dfac
fully automake esl perlmod
2014-03-21 15:34:52 -05:00
Brian West
8b76b88f6d
add #!
2014-03-21 15:33:38 -05:00
Brian West
c8c3fbe749
don't install test programs
2014-03-21 15:33:18 -05:00
Brian West
77eca8d044
fix typo
2014-03-21 15:08:32 -05:00
Brian West
5014b80d53
1/2 of automake for esl perl, at least we have configure detecting things now
2014-03-21 14:59:01 -05:00
Brian West
94051688c2
reswig
2014-03-21 14:57:13 -05:00
Ken Rice
7f383ccc19
clean up esl module makefile by MikeJ
2014-03-21 12:59:55 -05:00
Michael Jerris
3ec53f0b67
ESL-86: esl automake of at least the core parts
2014-03-20 10:38:47 -04:00
Brian West
c4c0f38aab
FS-6294 FS-6308 NetBSD support should work test and report back please.
2014-03-19 14:34:07 -05:00
Michael Jerris
d4b3faadc8
remove file listed twice
2014-03-18 14:07:04 -04:00
Brian West
e9a2d17f1f
FS-6368 --resolve include signal.h in ivrd.c
2014-03-17 20:24:28 -05:00
Brian West
6ed4ad7e20
Pass down into esl the LDFLAGS, fixes finding libncurses on NetBSD too.
2014-03-05 06:21:53 -06:00
William King
138224d816
FS-6303 --resolve
2014-03-04 12:30:14 -08:00
Marc Olivier Chouinard
3d53825d1d
FS-6016 --resolve
2014-02-24 21:00:33 -05:00
Brian West
d97b163fd3
ESL-77 your test script works along with single_command.rb now
2014-02-24 04:12:55 -06:00
Marc Olivier Chouinard
289d0de371
some circonstance, esl connection closing would hang. This should fix it
2014-02-23 20:52:14 -05:00
Travis Cross
cdc358c505
Add comment to distant #endif
...
FS-353
2014-02-23 22:33:28 +00:00
James Le Cuirot
d996974faa
Fix building without libedit
...
Signed-off-by: Travis Cross <tc@traviscross.com>
FS-353
2014-02-23 22:33:20 +00:00
Brian West
c2798d7d11
moving phpmod in esl to use swig2.0 which fixes the few issues when you reswig
2014-02-23 10:08:02 -06:00
Brian West
ae1016107d
FS-5723 java makefile problem
2014-02-22 18:33:56 -06:00
William King
5fb660933d
ESL-82 --resolve
...
Previously any esl_connect_timeout() failures would not return to the calling application the reason for the failure.
This commit now allows for calling applications to know why the connection attempt fails, but it is now the calling
applications responsiblity to call esl_disconnect() on the esl handle after the failure. Failing to call disconnect after
a failed connection attempt would result in memory being leaked.
2014-02-21 14:14:05 -08:00
Michael Jerris
b40dd8a374
freebsd fix, use detected cxx compiler when building esl
2014-02-19 16:10:48 -05:00
Jeff Lenk
9842e9efd8
ESL-81 --resolve add specific SWIG code for windows
2014-02-15 18:36:49 -06:00
Seven Du
11dee76381
add user_data in esl_listen so the main function can pass a private user_data to callback
2014-02-16 08:14:44 +08:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Brian West
3c55a90076
ESL-66
2014-02-07 13:10:25 -06:00
Moises Silva
f5f4df3483
Fix ESL infinite loop on handle_recv() when errno is already set
...
system calls do not clear errno, just set it in case of failure, so we
gotta make sure the recv() syscall really failed by checking the return value
2014-02-01 01:40:29 +05:00
Anthony Minessale
b5821c1594
tweak event queue size on event socket and speed up fs_cli a little to keep up on busy logging env
2014-01-23 21:26:56 +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
3ff0aaa0be
FS-5653 --resolve
2014-01-07 00:38:48 +05:00
Michael Jerris
88545a7fe1
.gitignore
2013-12-23 17:27:20 -05:00
Steve Underwood
ac2bf8a405
Fixed a file permission in the ESL library
2013-12-08 01:39:00 +08:00
Jeff Lenk
bb53175526
FS-6010 --resolve
2013-11-29 22:16:49 -06:00
Anthony Minessale
ca8f121977
fix regression from recent refactor that causes infinite loop on unexpected disconnect
2013-11-22 04:53:34 +05:00
Anthony Minessale
634d936a02
kill socket in esl_disconnect to prevent blocking
2013-11-20 23:50:15 +05:00
Jeff Lenk
4ee3b70496
fix windows esl compile
2013-11-13 17:59:52 -06:00
Anthony Minessale
9d2400b7ab
doh
2013-11-14 01:48:48 +05:00
Anthony Minessale
c429de4139
fix build err
2013-11-14 01:38:00 +05:00
Anthony Minessale
c469e7ada2
cleanup ESL a little
2013-11-14 00:43:25 +05:00
Anthony Minessale
931d3fb86a
remove condition for mem leak
2013-11-12 12:33:32 -06:00
Ken Rice
d8da4ae764
--resolve ESL-72 fix const char* vs char* issue in swig
2013-09-20 14:58:44 -05:00
Anthony Minessale
a036125bc4
update cc header
2013-09-18 05:20:56 +05:00
Michael Jerris
58e7db0c6d
FS-5763: --resolve add configure check for lzma and newer readhat/sl tinfo stuff
2013-09-07 12:21:33 -07:00
Anthony Minessale
73646cbaa8
FS-5737 reapply
2013-08-29 22:21:10 +05:00
Anthony Minessale
2e2e4caa45
FS-5737 revert
2013-08-29 22:20:00 +05:00
Anthony Minessale
0d26dbb318
FS-5737 --resolve
2013-08-29 21:03:01 +05:00
Anthony Minessale
76ba6a2342
FS-5737 --resolve
2013-08-28 23:26:07 +05:00
Raymond Chandler
863e6cfa3f
FS-2731 significantly reworked version of Emmanuel's patch to allow subscribing and notifying for the as-feature-event events. we still need a module to handle the FS events for this automatically... coming soon to a repository near you
2013-08-23 15:54:49 -04:00
Anthony Minessale
2e74cf79fc
FS-5617 --resolve
2013-07-19 13:29:05 -05:00
Anthony Minessale
c14d9c436e
FS-5575 --resolve
2013-07-12 14:43:18 -05:00
Anthony Minessale
30d5ecf9f7
FS-5445 --resolve this was actually just missing one word from the code as seen in the similar code in the core, the same mistake was made there where the compiler is not smart enough to see the mutually exclusive logical paths this code is specific to spontaneously creating an array in a single set like set foo[12]=val which would be totally broken if that line were commented
2013-07-10 10:26:08 -05:00
Jeff Lenk
5fc2bc9993
FS-5588 --resolve windows compiler fixes
2013-07-09 07:53:56 -05:00
Ken Rice
22baa51acc
FS-2816 --resolve
2013-07-06 22:04:06 -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
4240526ce3
add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device
2013-06-05 11:20:11 -05:00
Travis Cross
d7b139f3b4
Avoid dereferencing potential null value
2013-05-28 03:55:48 +00:00
Travis Cross
3217442d0e
Remove assignment without effect
2013-05-28 03:46:53 +00:00
Travis Cross
e887cecb5e
Avoid dereferencing potential null value
2013-05-28 03:41:44 +00:00
Travis Cross
2dea51ad58
Handle potential malloc failure better
2013-05-28 03:40:58 +00:00
Travis Cross
ef13a63447
Fix unlikely memory leak in ESL
2013-05-28 03:01:49 +00:00
Travis Cross
a5397e5980
Remove assignment without effect in fs_cli
2013-05-27 21:07:56 +00:00
Travis Cross
f00b77597f
Avoid dangling reference at end of fs_cli
...
Not that it really matters since we're returning to the OS momentarily
at that point anyway.
2013-05-27 21:07:52 +00:00
Travis Cross
8c37db140e
Handle a failure of strerror_r
...
This fixes the build on gcc-4.7.3. The build was breaking with:
error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]
2013-05-25 19:05:34 +00:00
Travis Cross
6d5018007b
Add missing text editor local variable blocks
2013-05-25 19:05:34 +00:00
Stefan Knoblich
cb9090dc93
esl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR
...
ivrd doesn't use sigaction + SA_RESTART for SIGCHILD. An exiting
child process will interrupt accept() in the parent to handle
the signal, which makes accept() return -1 (errno = EINTR) after
the sighandler function returns.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-05-23 02:07:55 +02:00
Stefan Knoblich
ca1d407921
ivrd: fflush() stdout before entering esl_listen()
...
Fixes repeatedly printing the 'Starting forking listener' message,
if stdout has been redirected into a logfile (for example).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-05-23 02:05:25 +02:00
William King
b4209ca93b
Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used.
2013-05-18 20:42:03 -07:00
William King
e2ea6e58c8
Minor code cleanup. calling va_start without calling va_end doesn't leak does it? Either way, it's fixed now.
2013-05-18 20:15:55 -07:00
Jeff Lenk
b4826c1a7f
another esl managed tweak
2013-05-04 12:43:19 -05:00
Jeff Lenk
abbe992e1c
tweak windows esl managed - removing mixed mode and any from the solution - this should remove some of the ambiguity around building
2013-05-04 12:15:04 -05:00
Jeff Lenk
08e28d46b4
FS-5167 fix 2010 dependency
2013-04-15 11:46:23 -05:00
Jeff Lenk
06dcfdab8e
FS-5167 fs_cli update dependency
2013-04-10 10:23:46 -05:00
Jeff Lenk
6fa2c5d5e4
FS-5167
2013-04-10 07:54:24 -05:00
Jeff Lenk
092a794e41
FS-5167 add version stuff to vs2010
2013-04-09 18:12:47 -05:00
Jeff Lenk
5f3160ef0f
FS-5167
2013-04-08 21:17:02 -05:00
Anthony Minessale
5ee719d1d9
FS-5271 --resolve
2013-04-08 12:53:58 -05:00
Jeff Lenk
16a7014284
add more missing vs2012 project filters
2013-02-27 22:34:16 -06:00
Anthony Minessale
bd25514307
add FS_CLI_COLOR=false env and -n/--no-color command line flag to turn off colored banner
2013-02-20 13:51:53 -06:00
Ken Rice
9c975033a7
FS-4844 --resolve
2013-02-07 13:16:19 -06:00
Jeff Lenk
70a9560306
add windows vs2012 esl project and solution
2013-02-04 18:31:28 -06:00
Jeff Lenk
dc2c11f13f
FS-4768 initial add of vs2012 build support
2012-12-29 14:57:15 -06:00
Jeff Lenk
c7e8dce247
FS-4828 --resolve
2012-11-17 21:38:07 -06:00
Ken Rice
3c249b012e
FS-4003 --resolve add IPv6 support to ESL client library, thanks to Steven Ayre
2012-11-01 22:39:16 +00:00
Anthony Minessale
50cd5c28f5
add originated_legs and originate_causes to A leg when present in an originate to detail the B leg data
2012-10-18 13:23:05 -04:00
Jeff Lenk
77eabbbdf7
FS-4694 --resolve
2012-10-17 09:17:16 -05:00
Anthony Minessale
c51aebf621
FS-4694 --resolve
2012-10-16 19:03:29 -04:00
Anthony Minessale
5b0115676c
add void to declarations
2012-09-27 09:19:51 -05:00
Robert Jongbloed
cf0f483aab
Assuming, just because it is MSVC, that the standard integers are not defined, is not correct. Need to test for define _STDINT as well as later versions of MSVC (>= VS2010) do have stdint.h
2012-09-27 10:16:14 +10:00
Stefan Knoblich
8075b01569
Fix error in switch_core_screen_size() and screen_size() fallback code.
...
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-09-26 17:21:05 +02:00
Michael Jerris
ee50ed23ab
FS-4645: --resolve fix build error in fs_cli
2012-09-25 14:19:00 -04:00
Anthony Minessale
03c981bf72
add smaller banner for teeny tiny terminals
2012-09-24 14:59:09 -05:00
Michael Jerris
4ff9b2f102
revert fb2ffbafe2
2012-09-24 15:38:06 -04:00
Travis Cross
fb2ffbafe2
Add configure flags to moderate the ClueCon nags
...
The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.
However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.
If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
2012-09-23 07:49:26 +00:00
Jeff Lenk
6b8e177c58
fix strange code analysis error
2012-09-14 14:55:52 -05:00
Jeff Lenk
2e9b4c23de
FS-4618 --resolve
2012-09-14 07:38:03 -05:00
Anthony Minessale
5a956890af
update json lib in core and ESL and re-apply old patches
2012-09-13 12:54:31 -05:00
Jeff Lenk
d8fc88ea75
FS-4605 --resolve
2012-09-10 19:34:04 -05:00
Jeff Lenk
e4e044e310
FS-4566 --resolve Show fs_cli banner in color(windows)
2012-09-02 21:57:20 -05:00
Anthony Minessale
7d38669801
fix wrong len in ESL sendMSG method
2012-08-28 12:04:50 -05:00
Jeff Lenk
0807b39c8d
FS-4543 --resolve thanks Peter
2012-08-17 19:31:47 -05:00
Anthony Minessale
f454b79b9b
fix color coding to be OS appropriate
2012-08-16 13:04:33 -05:00
Jeff Lenk
2dda038ba0
FS-4416 -- resolve
2012-07-15 21:52:02 -05:00
Stefan Knoblich
6ff084492b
esl-php: Create installation directories if they do not exist (+ other minor clean ups).
...
Fixes:
cp ESL.so /var/tmp/por.../image/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626
cp: cannot create regular file `/var/tmp/por.../image/usr/lib64/php5.3/lib/extensions/no-debug-zts-20090626': No such file or directory
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-14 14:01:18 +02:00
Anthony Minessale
2aebe2456f
first pass on some new stuff
2012-07-11 15:15:50 -05:00
Michael S Collins
eb7e640b59
Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch
2012-07-11 11:10:33 -07:00
Michael S Collins
fbfa31d2d1
Add dump_events.pl script
2012-07-11 11:10:24 -07:00
Anthony Minessale
6c406aa0d9
add wait handler to forking code in ivrd
2012-07-10 13:32:35 -05:00
Anthony Minessale
27155bcb71
come to ClueCon its in one month
2012-07-10 12:05:26 -05:00
Anthony Minessale
163fffb3e8
fix issue with threaded ivrd, forking is back by default but threaded can be chosen with -t; in both modes the fd number is not passed as the first arg to the program but in threaded mode the stdin will no longer be mapped to the socket you will have to get the first command line arg instead of fileno stdin
2012-05-03 13:13:48 -05:00
Ken Rice
7a147e4762
Update a ton of copyright statements to make sure the dates are proper
2012-04-25 17:14:55 -05:00
Anthony Minessale
a40f304990
ESL-45 --resolve
2012-04-10 16:11:36 -05:00
Mitch Capper
6f87ac55d6
fs_cli: add batch mode
...
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-04-08 16:54:40 +00:00
Anthony Minessale
c41a16d4da
shutdown socket before closing to avoid blocking
2012-04-05 14:28:01 -05:00
Anthony Minessale
b80a3a3439
set session loglevel as well in fs_cli when doing 'console loglevel info' also now implies '/log info' locally
2012-04-02 11:58:00 -05:00
Ken Rice
c1f3ff998f
opps missed an include
2012-03-27 14:24:58 -05:00
Ken Rice
a1ed759b1c
try to make compiler -Werror hush
2012-03-27 14:11:41 -05:00
Ken Rice
57fac728c6
make compiler stop complaining
2012-03-27 13:58:27 -05:00
Anthony Minessale
d308694201
after f7f9a43a40
missing a bunch of code changes
2012-03-26 16:41:49 -05:00
Jeff Lenk
d827cfecb4
corrected managedEsl sample
2012-03-04 17:48:30 -06:00
Jeff Lenk
da36d1f57f
FS-3953 --resolve
2012-02-28 08:38:45 -06:00
Anthony Minessale
23645b6af2
comment assert for windows
2012-02-27 16:49:12 -06:00
Travis Cross
b9b77bd615
fs_cli: make enhanced fs_cli features work on all TERMs
...
FS-3815 --resolve
This is a workaround for the fact that libedit counts terminal control
characters when calculating the length of the prompt. By not using
absolute positioning, we avoid the issue.
Thanks to Ivan Isaev for the workaround and testing.
2012-01-31 18:42:47 +00:00
Jeff Lenk
c2ac8f5fcc
correct managed esl sample
2012-01-27 16:04:54 -06:00
Travis Cross
f4968d0e6e
fs_cli: style (FS-3815)
2012-01-18 22:44:44 +00:00
Jeff Lenk
24288832b1
FS-2216 partial with renaming
2012-01-08 14:19:16 -06:00
Anthony Minessale
dfb2dfd29e
umm ya, the thread stack size is in bytes not kbytes
2011-12-20 17:14:38 -06:00
Anthony Minessale
0a8e6129d8
change default stacksize
2011-12-20 10:37:15 -06:00
Stefan Knoblich
cc083ccddb
[libesl] Make sure esl event buffer array subscript ist within bounds [0, sizeof(buffer)-1].
...
cc1: warnings being treated as errors
libs/esl/src/esl.c: In function "esl_recv_event":
libs/esl/src/esl.c:1190: error: array subscript is above array bounds
libs/esl/src/esl.c:1227: error: array subscript is above array bounds
Clamp handle_recv() return value to safe values.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-12-19 20:39:51 +01:00
Marc Olivier Chouinard
442f4d2522
FS-3766 --resolve
2011-12-16 07:35:05 -05:00
Marc Olivier Chouinard
58ccbe567c
ESL-58 --resolve
...
Please Windows user test this one out.
2011-12-15 23:02:10 -05:00
Anthony Minessale
d05dcaaade
ok, windows... you missed the real err but you are still crying about this other one =/
2011-12-14 14:47:51 -06:00
Anthony Minessale
70a4ebd3fb
sorry windows...
2011-12-14 14:38:00 -06:00
Anthony Minessale
f7f9a43a40
use threading in testserver and ivrd
2011-12-14 12:16:09 -06:00
Brian West
da10fe86a1
really now
2011-10-28 16:51:02 -05:00
Jeff Lenk
8aad82d653
FS-3647 --resolve fs_cli crash on windows
2011-10-28 08:41:17 -05:00
Travis Cross
26cd927cb0
fs_cli: only enable new features on supported terminals
...
This is a workaround to an issue where editline counts non-printable
control characters. See issue FS-3606.
2011-10-27 15:15:59 +00:00
Michael Jerris
cbc92936f3
allow ;; seperated commands in fs_cli -x
2011-10-26 15:35:03 -04:00
Jeff Lenk
1afda8fb39
FS-3601 --resolve fix fs_cli for recent changes with windows
2011-10-07 09:03:09 -05:00
Travis Cross
b8eaec001a
whitespace cleanup
2011-09-27 05:57:49 +00:00
Jeff Lenk
16a0a2ed6d
another windows fix for fs_cli changes
2011-09-26 21:41:35 -05:00
Travis Cross
02481cabbf
fs_cli: comply with -Wwrite-strings
2011-09-26 22:00:08 +00:00
Travis Cross
8056125077
fs_cli: fix siptrace output
...
This partially reverts commit 991b83d23c
.
2011-09-26 21:34:52 +00:00
Jeff Lenk
1244e55632
another fs_cli windows fix
2011-09-26 11:47:26 -05:00
Jeff Lenk
34827a892c
fix fs_cli for windows after recent changes - may need more work
2011-09-26 09:15:12 -05:00
Travis Cross
a2d6a041eb
fs_cli: ask less of the terminal; fix ctrl-l behavior
2011-09-24 03:07:34 +00:00
Travis Cross
fe60938686
fs_cli: exclude last character in buffer on redisplay
2011-09-23 22:40:02 +00:00
Travis Cross
682ed52cf7
fs_cli: do not assume that LineInfo buffers are null-terminated
...
man editline(3el) says that they're not.
[take #2 , originally was 48acc0cd38
]
2011-09-23 22:24:58 +00:00
Travis Cross
4dbd950d70
fs_cli: be a bit more defensive
2011-09-23 21:44:55 +00:00
Travis Cross
7bcd1fe79e
fs_cli: handle cursor positioning better
2011-09-23 21:25:42 +00:00