Commit Graph

632 Commits

Author SHA1 Message Date
Michael Jerris 6565473ba0 add dependency so that 'make -C libs/esl/perl perlmod-install' works right 2015-07-29 21:48:08 -05:00
Anthony Minessale 34fd0e9ad8 FS-7769 More features
add var=val member lookup usable wherver member_id is valid in api commands
add bgimg to layouts with api command or config for global setting
fix bug with overlap layouts combined with odd sized layers
improve switch_img_fit to take a modifier for fit, streach or both at once
2015-07-28 19:43:04 -05:00
Michael Giagnocavo f116387443 FS-7644. Change 2013.vcxproj references to 2013 2015-06-18 04:17:53 -06:00
Brian West 54762dd197 update esl swig to swig 2.0 and reswig 2015-06-16 12:43:53 -05:00
Jeff Lenk 345e50d25a FS-7644 2015-06-11 15:29:28 -05:00
Michael Jerris 2cc0348422 FS-7635: remove msvc 2005 2008 and 2010 non working build systems. There are now multiple more recent (3 different ones) and some free versions of the compiler that can be used. 2015-06-10 16:33:14 -04:00
Anthony Minessale d961aad2c2 FS-7604 #resolve 2015-06-02 13:17:04 -05:00
Brian West cd98ec85e2 fix line endings 2015-05-28 12:46:43 -05:00
Michael Jerris 85a5e1db1d FS-7294: Enable -Werror when building with clang compiler 2015-02-17 16:23:53 -05:00
Michael Jerris c36196db3f FS-7180: when using system lua, properly link against renamed library versions on debian for esl luamod 2015-01-20 14:32:36 -05:00
Brian West 1d361b6108 FS-7180: let esl lua module build against lua 5.1 or 5.2 (requires newer swig) 2015-01-20 12:26:57 -06:00
Mike Jerris 4c89075f2d Merge pull request #147 in FS/freeswitch from ~DDRAGIC/freeswitch:feature/FS-7128-fs_cli-ignore-duplicate-lines to master
* commit '2406abdb76a2c6dfb3da364a3997fb6d422e759d':
  FS-7128 fs_cli: ignore duplicate lines in history
2015-01-09 11:52:54 -06:00
Dušan Dragić 959b07c06f FS-7129 fs_cli: add toggle mode to function keys 2015-01-04 00:29:38 +01:00
Dušan Dragić 2406abdb76 FS-7128 fs_cli: ignore duplicate lines in history 2015-01-03 23:46:19 +01:00
Mike Jerris a5f4810c0d Merge pull request #88 in FS/freeswitch from ~DANIELWEBER/freeswitch:FixManaged to master
* commit 'a0d6b642fff4fddf1bd62f39ccf952891c7817e3':
  Fix ManagedEsl.2012.csproj: There is no file 'ESLconnection.2010.cs'.
2014-10-16 11:54:13 -05:00
Michael Jerris acd8d74316 cleanup conditions 2014-10-03 12:48:43 -04:00
Travis Cross 051772e4ae Add fs_cli option to disable use of history file
With this commit, passing -Q to fs_cli will cause fs_cli to not load
or save the command history file (~/.fs_cli_history).  This can be
useful e.g. on read-only systems.

This can also be set in the fs_cli configuration file with the option
`no-history-file`.
2014-09-25 11:07:49 +00:00
Daniel Weber a0d6b642ff Fix ManagedEsl.2012.csproj: There is no file 'ESLconnection.2010.cs'. 2014-09-24 10:16:35 +02:00
Travis Cross 323a3d617c Avoid output of junk text by fs_cli
In some cases where `redisplay()` is called immediately after a
command is run (e.g. `log ...`) we often get a prompt, junk output,
and a second prompt.  This is due to a (known) race.

We believe we're falling afoul of this code in `el_deletestr`:

    if (el->el_line.cursor < &el->el_line.buffer[n])
            return;

Basing the length of text to delete off of the cursor position
resolves the issue of junk text, but the real solution is to eliminate
the race conditions, which will also resolve the sometimes duplicated
prompt.

FS-6764 #resolve

Thanks-to: Nathan Neulinger <nneul@neulinger.org>
2014-08-26 20:18:22 +00:00
Travis Cross 8414c498cf Fix line endings per .gitattributes 2014-08-08 15:24:42 +00:00
Chris Rienzo 9b14633cf3 fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change 2014-06-30 17:30:59 -04:00
Michael Jerris 0a6a10f584 FS-6604: fix this same issue in esl too 2014-06-17 12:10:47 -05:00
Jeff Lenk a607c20a94 windows fix for a0e9ddf589 2014-06-08 16:06:32 -05:00
Travis Cross 31186d815b Improve a parameter name for fs_cli
What we momentarily called log-uuid-chars is now better called
log-uuid-length.  Setting log-uuid-length will specify a truncation
length for UUIDs displayed by setting log-uuid.
2014-06-04 16:07:10 +00:00
Travis Cross c015013e5f Add log-uuid-short option to fs_cli
If log-uuid-short is set, or -S is passed to fs_cli, we only display
the first 8 hex digits of the UUID.  The log-uuid-chars option may
instead be set to specify some other truncation length for the UUID.
2014-06-04 12:01:01 +00:00
Travis Cross a0e9ddf589 Convert esl_true and esl_false to functions
Prior to this commit, an expression such as:

  esl_true("true") ? 42 : 0

...would return 1 rather than 42.
2014-06-04 12:00:31 +00:00
William King 7ce2009fad Fix compiler warning about possibly uninitialized variable in libs/esl 2014-06-02 08:33:05 -07:00
Michael Jerris e992c4c4d8 CID:1216560 Unchecked return value from ioctl 2014-06-02 14:11:07 +00:00
Anthony Minessale dc671d9d82 fix name of fs_ivrd 2014-05-22 16:41:21 -04:00
Jeff Lenk e6ac87f5f1 fixes for VS2010 code analysis - hope these are OK else-ware 2014-05-20 22:54:32 -05:00
Natanael Copa 317f4b1442 Fix building with musl libc
POSIX says poll.h and signal.h should not be prefixed with sys/ (ie
poll.h instead of sys/poll.h)

limits.h also defines a TZNAME_MAX so we change name of the define for
spandsp.
2014-05-02 11:20:36 -04:00
Travis Cross 2b1ae831d1 Remove some dead assignments in ESL 2014-05-02 03:57:07 +00:00
Michael Jerris a1a397420e fix leaked body in error case 2014-04-30 16:10:08 -04:00
Michael Jerris ba6b9c5a11 ESL-91: --resolve bigger buffer for args 2014-04-21 13:33:47 -04:00
Brian West bf093e9dc1 Dispatch will call you on register, and call you back if you hangup on next register 2014-04-17 20:35:57 -05:00
Brian West 8ce6198bf9 fix bug in dispatch 2014-04-17 20:19:39 -05:00
Travis Cross f754057c2a Avoid crash on event without content-type
If we received an event without a content-type header we were
dereferencing a null pointer leading to a seg fault.

Reported-by: Ico <ico@voip-io.org>

ESL-90 --resolve
2014-04-09 01:20:07 +00:00
Travis Cross c6acddf928 Fix typo in comment 2014-04-08 23:17:12 +00:00
Brian West 7bc92a11af ESL-89: fix install path and single_command require 2014-04-07 15:26:13 -05:00
Michael Jerris d6fa81b4b7 ESL-89: --resolve add rubymod-install and add ability to use a ruby not in your path by setting RUBY env var 2014-04-07 15:27:30 -04:00
Travis Cross fb7fa3d66a Update gitignore 2014-04-05 07:57:05 +00:00
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
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 c7bd862e9a FS:353: correct #if check for libedit function capability 2014-03-24 16:18:03 -05: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
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
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