Commit Graph

26552 Commits

Author SHA1 Message Date
Travis Cross 180d081be4 Use buffered printers in fs_cli
Now that all output should end in a newline, we don't need to play
tricks with getting certain escape codes out ahead of buffered output.

This updates what we tried to do in commit
991b83d23c.

This partially reverts commit
8056125077.
2014-03-28 00:01:33 +00:00
Travis Cross 11f4628cae Reenable the new EL_REFRESH mechanism 2014-03-27 23:09:06 +00:00
Travis Cross 59f80c9e4f Handle bodies not ending in newlines w/EL_REFRESH
The issue is that sofia siptrace output doesn't end each line with a
newline.  Instead it sends a separate newline afterward, which comes
in as a separate event body.  With the new EL_REFRESH code in effect
the line is being cleared after the siptrace output has been written
but before that next newline comes in.

With our own refresh code this doesn't happen because of slight
differences in where the stdio buffers get flushed compared to where
the output of clear_line() ends up.

This is a bit of a clumsy workaround.  But we'll fix it first, then
refactor.
2014-03-27 23:06:07 +00:00
Travis Cross 3bc51dfff9 Turn on the fancy fs_cli with a modern libedit
We turn ON the features with a newer libedit.

This fixes commit 4f54f912c3.
2014-03-27 17:35:35 +00:00
Travis Cross 4f54f912c3 Add back terminal detection for old libedits
Using the system libedit means that libedit will again make absolute
movements on certain kinds of terminals.  Older versions of libedit
without EL_PROMPT_ESC miscalculate the length of the prompt.
Combined, this results in the cursor ending up in the wrong place.

We knew this was a possibility when we moved to system libedit, and
we're OK with it.  We certainly lived without this fancy prompt
feature for a long time.

This change puts back in place detection of the terminal type when
EL_PROMPT_ESC isn't available.  On these older versions of libedit,
we'll only enable the fancy features when we know that libedit will
only make relative movements and not tickle the bug.

This partially reverts commit:
b9b77bd615
2014-03-27 17:19:55 +00:00
Travis Cross dc093d179e Drop use of libedit EL_REFRESH in fs_cli for now
Newer versions of libedit provide an EL_REFRESH mechanism for
redrawing the prompt.  We had previously written our own code to
handle this.  In theory handing this over to libedit should be better.

Unfortunately when using EL_REFRESH the output of sofia siptrace isn't
showing up.  We're working on that, but for now we're just force own
our redrawing code to be used instead.
2014-03-27 12:20:43 +00:00
Jeff Lenk 7ed144d115 * Deprecate mod_spidermonkey windows part 1 2014-03-26 18:33:37 -05:00
Michael Jerris 1681b04129 FS-6406: --resolve add a way to specify build compiler for cross compile 2014-03-26 17:15:24 -04:00
Michael Jerris d40615267e FS-353: better error reporting for missing lib, don't error on clean 2014-03-26 17:11:18 -04:00
Travis Cross f9d065cda3 Use system libyaml for mod_yaml
FS-353
2014-03-26 19:27:22 +00:00
Travis Cross 5e3ba399c7 Use CPPFLAGS in mod_yaml 2014-03-26 19:27:21 +00:00
Michael Jerris 885fdbf28c hack harder 2014-03-26 14:49:59 -04:00
Travis Cross b54ba38255 Follow mod_spidermonkey deprecation in debian/
It wasn't supported, and we weren't building it by default as it was.
2014-03-26 18:17:16 +00: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
Michael Jerris 310f2ec3d6 initialize var 2014-03-26 11:25:23 -04:00
Raymond Chandler 5cccc6270b seg-- 2014-03-25 23:31:16 -04:00
Raymond Chandler 0ddd151a22 FS-5845 more leaks found by mikej 2014-03-25 22:44:37 -04:00
Ico fa17059787 Fix memory leak when outbound socket is closed by server
ESL-88 --resolve

Signed-off-by: Travis Cross <tc@traviscross.com>
2014-03-26 01:36:48 +00:00
Brian West 04de0f77d3 FS-6396 fix mod_silk builid on FreeBSD 2014-03-25 20:25:11 -05:00
Jeff Lenk 4dd0a5848f FS-6293 windows duh 2014-03-24 18:45:05 -05:00
Jeff Lenk 07438df263 FS-6293 fix windows build from version.h being added to xmlrpc 2014-03-24 18:09:07 -05:00
Chris Rienzo 98bba8b57a mod_mongo: switched from C++ to latest C driver 2014-03-24 17:34:56 -04:00
Brian West c7bd862e9a FS:353: correct #if check for libedit function capability 2014-03-24 16:18:03 -05:00
Chris Rienzo 0b9e5c82a5 FS-6402 mod_rayo/mod_ssml: add mutex to hashes now that iteration is no longer thread-safe 2014-03-24 17:03:33 -04:00
Michael Jerris 5ac9748827 FS-5845: don't leak dbh in error conditions 2014-03-24 16:10:12 -04:00
Travis Cross bcfb72cb2b Lower required version of sqlite for CentOS 6
Apparently CentOS 6 has only v3.6.20 of sqlite, so we'll accommodate
that barring evidence we shouldn't.  Please test and report back.
2014-03-24 13:55:44 +00:00
Travis Cross 3964aa1fdf Lower required version of sqlite
We've really only tested 3.8.3.1, so you might want to consider using
that.  We'll lower this down to 3.7.13 for Debian wheezy.  Please
test.
2014-03-24 13:55:43 +00:00
Michael Jerris 169a264c33 FS-353: sqlite pkg-config path for mac homebrew 2014-03-24 09:09:52 -04:00
Anthony Minessale 487128950d Use the system version of APR / APR-util if possible
Autodetect whether the system libapr / libaprutil has our
necessary modifications and use it if it does.
2014-03-24 12:54:50 +00:00
Travis Cross cde20f6fe6 Require sqlite as a system dependency
This purges sqlite from our tree and requires it to be present on the
system for building and running FreeSWITCH.

FS-353
2014-03-24 12:54:49 +00:00
James Le Cuirot 8574988c3a Completely unbundle libedit
FS-353

Signed-off-by: Travis Cross <tc@traviscross.com>
2014-03-24 12:39:59 +00:00
Jeff Lenk 1cde5f01e0 FS-6386 --resolve 2014-03-23 16:15:49 -05:00
Jeff Lenk f4abf3dab4 FS-6397 --resolve 2014-03-23 14:28:42 -06:00
Peter Olsson 7e1b32c0c2 .gitignore 2014-03-23 10:02:35 +01:00
Peter Olsson c8fa0f0c4b mod_v8: Use parallel build by default. Use configure flag "--disable-parallel-build-v8" to disable it. It's disabled by default for Debian build scripts, since parallel build has some issues with cowbuilder. 2014-03-23 09:25:41 +01:00
Jeff Lenk 741cb889d9 FS-6349 --resolve 2014-03-22 22:59:32 -05:00
Peter Olsson 742e28e1c5 FS-6395 2014-03-22 12:56:46 +01:00
Peter Olsson 8be3ca59e2 FS-6395 2014-03-22 11:55:04 +01:00
Peter Olsson e96e402981 .gitignore 2014-03-22 09:14:55 +01:00
Travis Cross 6261e5ae48 Drop mod_v8 from debian build for now
This is currently breaking the build.  We'll get that fixed and add
mod_v8 back in after things slow down.
2014-03-22 05:07:27 +00:00
Brian West f890854e0d FS-6381 add hostname to conference cdr 2014-03-21 17:23:50 -05:00
Michael Jerris 230b217810 fix perl detection 2014-03-21 18:20:16 -04:00
Brian West 719d37dbf8 first 1/2 of automake for esl phpmod 2014-03-21 16:01:35 -05:00
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