Commit Graph

229 Commits

Author SHA1 Message Date
Corey Smith 3cb04ced21 FS-8779: [mod_shout] properly detect lame/lame.h
* Add correct mp3lame configure check since it does not use pkg-config
* Update mod_shout Makefile to log failure message if mp3lame not available
* Rewrite #include for lame.h to lame/lame.h in mod_shout.c
2016-02-03 20:45:39 -05:00
Spencer Thomason 3c291b3c61 Use mtmalloc on Solaris SPARC if available
FS-8666 #resolve
2015-12-17 16:47:06 +00:00
Ken Rice d9d5870bff Revert "FS-8369 Debian8/CentOS7 systemd installer additions"
This reverts commit adc8f9a119.
2015-11-20 14:54:13 -06:00
Ken Rice ebba246192 Revert "FS-8369 Debian8/CentOS7 systemd installer additions"
This reverts commit 757fa94239.
2015-11-20 14:54:05 -06:00
Ken Rice 5ad6a2533a Revert "FS-8369 Fixes"
This reverts commit 389d24da14.
2015-11-20 14:53:55 -06:00
Niek Vlessert 389d24da14 FS-8369 Fixes
- Don't check OS, current patch should be compatible with Debian and RHEL derivatives and ArchLinux
- Make useradd the tool to add the usera nd group to work on all
2015-11-10 19:43:46 +01:00
Niek Vlessert 757fa94239 FS-8369 Debian8/CentOS7 systemd installer additions
After builing Freeswitch this makes actually run it easy by offering
an installer script.

* Changes to configure.ac to detect Debian8/CentOS 7 and create installer script
* Changes to build/Makefile.am to display the option
* Added build/startup directory with templates and other files
* Deleted outdated build/freeswitch.service and tmpfiles.conf
* Unit file based on the latest systemd service file FS-8194
* Won't interfere with other platforms (afaik)
* Supports all bindir directory prefixes ./configure can have
* Detects if Debian8/CentOS7 use systemd
* Can be used with a user with sudo permissions
2015-10-30 19:11:32 +01:00
Niek Vlessert adc8f9a119 FS-8369 Debian8/CentOS7 systemd installer additions
After builing Freeswitch this makes actually run it easy by offering
an installer script.

* Changes to configure.ac to detect Debian8/CentOS 7 and create installer script
* Changes to build/Makefile.am to display the option
* Added init directory with templates and other files
* Deleted outdated build/freeswitch.service and tmpfiles.conf
* Unit file based on the latest systemd service file FS-8194
* Won't interfere with other platforms (afaik)
* Supports ./configure --prefix=
* Detects if Debian8/CentOS7 use systemd
* Can be used with a user with sudo permissions
2015-10-20 23:21:50 +02:00
William King 7724270d89 FS-8233 convert unit tests frameworks to non-recursive makefiles 2015-10-08 13:01:04 -07:00
Stanislav Sinyagin 9461ed1335 FS-8195 Compatibility with Solaris 11 process privileges
Now the daemon manages its privileges correctly, so that -rp, -u,
-g and -lp can be supported, also in a Solaris zone.

Also fixed a problem that switch_log_printf() was used before the
logger was initialized, so the messages were sent to nowhere.
2015-10-03 01:52:37 +00:00
Stanislav Sinyagin 98a190a107 FS-7967 SmartOS compatibility
configure.ac: honor NetBSD and SmartOS in search for system lua
src/switch_utf8.c: remove switch_u8_vprintf and switch_u8_printf
replace u_int32_t with C99 standard uint32_t, and also the same for
  8,16,64 bit
2015-09-09 21:39:41 +00:00
Michael Jerris 6f1a00fe81 FS-8108: remove legacy mod_lua, the regular mod_lua works with system lua now 2015-09-01 11:15:12 -05:00
William King d1d0f553bc FS-8075
Initial commit of mod_hiredis. Add expanded redis support to include
raw redis command support, as well as the existing support for
FreeSWITCH limits.
2015-08-28 16:56:38 -07:00
Michael Giagnocavo ba9c44bbd0 FS-7885 Add getcputime command 2015-07-24 02:34:00 -06:00
Anthony Minessale 5933a0d044 restore patches from revert, this is lame, you need to bootstrap to fix it. 625^H^H^H0 days without having to rebootstrap 2015-07-14 11:24:53 -05:00
Anthony Minessale 3fa6003ef7 this is not ready 2015-07-14 11:05:33 -05:00
William King f7f5c7587f FS-7820
C level unit testing and micro benchmarking framework, including one
example unit test.
2015-07-10 12:04:04 -07:00
karl anderson d66839debe FS-7774 add mod_kazoo
#resolve
2015-07-03 22:54:47 +01:00
William King 775ce5c0a8 Adding mod_smpp as an event_handler module.
FS-7730 #resolve
2015-07-03 14:26:05 -07:00
Ken Rice c51b1b9184 FS-7715 #resolve updates to configure and spec files for next development branch
add images to spec file
2015-06-23 12:22:04 -04:00
Michael Jerris 6008cad2aa check for 'ilbc2' pkg-config name first so we canuse overriden centos package 2015-06-22 12:58:53 -04:00
Michael Jerris 67d1d1df8f FS-7605 remove surplus config flags and fix rundir and logdir set under fhs 2015-06-17 21:55:40 -05:00
Michael Jerris 4ad0aa91a4 FS-7655: attempt to make libvpx and libyuv optional (none of the video features will work without them) The following modules require these libraries to be installed still: mod_av mod_cv mod_fsv mod_mp4v2 mod_openh264 mod_vpx mod_imagick mod_vpx mod_yuv mod_png mod_vlc 2015-06-16 18:24:35 -05:00
Michael Jerris 660e79edd7 FS-7338: remove mod_shout dep libs to system libs. On debain jessie requires libmpg123-dev libshout3-dev libmp3lame-dev 2015-06-12 14:56:01 -05:00
Ken Rice 02a0a2a068 FS-7607 #resolve #comment Update URLs to reflect https protocol on freeswitch.org websites and update additional URLs to avoid 301 redirects. 2015-06-03 15:23:40 -05:00
Anthony Minessale b641ab6db3 bump 2015-05-28 12:48:12 -05:00
Anthony Minessale e8fed1a47f FS-7519: merge mod_avcodec and mod_avformat into mod_av 2015-05-28 12:47:33 -05:00
Christopher Rienzo 3a8c6c3803 FS-7553 reduce opencv library requirement to 2.4.5 to allow centos 7 2015-05-28 12:47:33 -05:00
Christopher Rienzo e83fc1a583 FS-7553 reduce soundtouch library requirement to version 1.7.1- this was the version bundled with freeswitch 2015-05-28 12:47:33 -05:00
Michael Jerris 0d5b21e288 FS-7507: fix expansion of dirs compiled into freeswitch 2015-05-28 12:47:33 -05:00
Michael Jerris fe50da3d8c FS-7507: fix expansion of dirs compiled into freeswitch 2015-05-28 12:47:33 -05:00
Mike Jerris 387b405ccd FS-7500: fix include paths for libvpx 2015-05-28 12:47:32 -05:00
Michael Jerris b827542c8d FS-7500: fix vpx include paths 2015-05-28 12:47:32 -05:00
Michael Jerris cc9a225bb9 FS-7500: require libvpx 1.4 2015-05-28 12:47:32 -05:00
Michael Jerris d2d00056e8 FS-7519: [mod_avcodec] add x264 to linker 2015-05-28 12:47:29 -05:00
Michael Jerris a6c1a40b2a FS-7519: [mod_avformat] add libavutil and libavresample to linking deps 2015-05-28 12:47:28 -05:00
Michael Jerris f87f725e43 FS-7519: [mod_avformat] add libswscale and libavcodec to linking deps 2015-05-28 12:47:28 -05:00
Michael Jerris e2236ad559 FS-7508: remove mod_vp8 which has been replaced by mod_vpx 2015-05-28 12:47:25 -05:00
Michael Jerris 91a6fc82c0 FS-7338: remove libsndfile from tree, use system lib instead
FS-7338: remove libsilk from tree, use system lib instead
FS-7338: change to always use system liblua
FS-7338: remove libbroadvoice from tree, use system lib instead
FS-7338: remove libilbc from tree, use system lib instead
FS-7338: remove libs using system libs from bootstrap
FS-7338: remove libg722_1 from tree, use system lib instead
FS-7338: remove mod_celt, it has be superseded by mod_opus
FS-7338: remove libcodec2 from tree, use system lib instead
FS-7338: remove libopus from tree, use system lib instead
FS-7338: remove libsoundtouch build from tree, use system lib instead
FS-7338: remove flite build from tree, use system lib instead
FS-7338: remove openldap build from tree, use system lib instead
FS-7338: remove libmongoc build from tree, use system lib instead
FS-7338: remove mod_mongo deps that are no longer actually required
FS-7338: remove some dup demo modules and don't include demo code in packages
2015-05-28 12:47:24 -05:00
Michael Jerris 857a61318e FS-7507: Add global vars fonts_dir, images_dir, data_dir, localstate_dir
change configure detection to do FHS layout if you specify a prefix, unless --disable-fhs is passed to configure
moved includes to be under /usr/include/freeswitch dir in fhs layout
install font files into fonts_dir
2015-05-28 12:47:21 -05:00
Michael Jerris cd0b7248c1 FS-7500: use pkg-config to check for libyuv location 2015-05-28 12:47:20 -05:00
Seven Du ecab16ed88 FS-7516: add mod_imagick
use the magick-core API
We have pdfs and gifs
auto play gif and png
yeah, you can play video files with imgk

video only
requires ffmpeg binary
need autoplay=(1000/FPS)
2015-05-28 12:47:18 -05:00
Anthony Minessale c07513ea55 FS-7506: make freetype optional 2015-05-28 12:47:15 -05:00
Anthony Minessale 74737983be FS-7515: automake and pkg-config detection for mod_cv/opencv 2015-05-28 12:47:15 -05:00
Anthony Minessale c13d4bcbbb FS-7514: add pkg-config checks for vlc 2015-05-28 12:47:15 -05:00
Anthony Minessale 25dade86aa FS-7519: add pkg-config checks for avformat and avcodec and move modules to use automke 2015-05-28 12:47:13 -05:00
Seven Du ae8ddfd4f1 FS-7518: add mod_mp4v2
libmp4v2-dev is required for this mod
2015-05-28 12:47:10 -05:00
Mike Jerris 086cf1c279 FS-7500: expand libpng detection to try to find a good png >= 1.6.16, fall back to older verison in weezy, and add support for building without libpng 2015-05-28 12:47:05 -05:00
Anthony Minessale 21a90d71b0 FS-7500: use libpng not png12 for portability 2015-05-28 12:47:01 -05:00
Anthony Minessale 521a97935e FS-7500: check in png code and put it in the core to mature 2015-05-28 12:47:00 -05:00
Anthony Minessale 0697db4fb4 FS-7506 FS-7513: set banner with video_banner_text variable set before calling in, NEEDS DOCS params are parsable inside a {} string 2015-05-28 12:46:59 -05:00
Anthony Minessale 8b9d23fad0 FS-7508: less restrictive vpx require 2015-05-28 12:46:49 -05:00
Anthony Minessale 2e1bdfb24a FS-7519: add automistake for mod_av 2015-05-28 12:46:48 -05:00
Anthony Minessale 8cda93eac0 FS-7508: add autoconf for vpx lib 2015-05-28 12:46:44 -05:00
William King 4fc94e3907 FS-7500 S-7513: Few build fixes 2015-05-28 12:46:43 -05:00
William King 6dec4de2fe FS-7508 FS-7517: [build] Convert the build over to automake, though there is still room to fix
the autoconf portion to detect the correct location of libopenh264

Basic conversion for vpx too.
Borrowing from ldns handling, setup mod_vpx to prompt for the required library when the module is enabled
2015-05-28 12:46:42 -05:00
Anthony Minessale 6a2fc5e0f7 bump 2015-05-28 12:35:17 -05:00
William King c5d0b63300 Revert "FS-7435 change pgsql support to default on, with an option to disable"
This reverts commit 702f047265.
2015-04-22 16:18:13 -07:00
William King 702f047265 FS-7435 change pgsql support to default on, with an option to disable 2015-04-15 11:07:15 -07:00
William King 1a96f23f27 Adding mod_amqp as an event_handler module
AMQP(Advanced Message Queueing Protocol) is an event bus protocol
with more info here http://www.amqp.org/about/what

mod_amqp implements the client side of the amqp protocol. Currently
the module supports two separate, but not mutually exclusive usages:

1. Sending a filtered whitelist of events to an AMQP server. The
before the events are sent an amqp routing header is generated so that
downstream subscriptions can subscribe using filters. If the
connection to the remote server is interrupted, the module will
attempt to reconnect.

2. Subscribing to a 'control' channel on the remote AMQP server. When
events are received on this channel if they match a configured filter,
the commands are run locally as api commands. If the filter for the
events being sent to the remote AMQP server include SWITCH_EVENT_API
then the results of the api commands will be sent back to the AMQP
server.

FS-7060 #resolve
Thanks-to: Daniel Bryars <danb@aeriandi.com> and Tim Brown <tim.brown@aeriandi.com>
2015-04-03 15:34:09 -07:00
Michael Jerris f83e429d36 FS-7350: add --enable-address-sanitizer configure flag to enable clang address sanitizer 2015-03-05 14:54:19 -06:00
Michael Jerris 302a339fdf FS-7294: Enable -Werror when building with clang compiler #resolve 2015-02-17 12:20:33 -05:00
Michael Jerris 8fc19a6037 FS-7180: properly build esl luamod when not using the --enable-system-lua configure arg 2015-01-20 14:37:43 -05:00
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 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
Humberto Diógenes ece5cd52db FS-7088 #resolve Set flag to enable core dump from non-root users.
When FreeSWITCH is running as a non-privileged user, we need to enable
PR_SET_DUMPABLE for it to be able to generate core dumps.

Instead of a generic __linux__ check, there's a new configure.ac flag
to check directly for prctl.h, which could also be used in other
places in the code.
2015-01-05 21:06:29 -03:00
Michael Jerris 62a2e10e41 remove hack breaking some cross compile builds. if you really need this, you should be using new enough glibc anyways 2014-11-19 16:06:42 -05:00
Michael Jerris 11e62dd40d Revert "Revert "FS-6967 New mod_say_es_AR to support Argentina Spanish variant.""
This reverts commit d9d9510ce4.
2014-11-10 11:12:15 -05:00
Ken Rice d9d9510ce4 Revert "FS-6967 New mod_say_es_AR to support Argentina Spanish variant."
This reverts commit e75d0675af.

Revert "Add mod_say_es_ar to debian packaging"
This reverts commit ebb3c8fbfa.

Conflicts:
	configure.ac
2014-11-08 15:53:57 -06:00
Travis Cross 070aaefaeb Fix whitespace inconsistency 2014-11-07 18:18:03 +00:00
Mike Jerris b7741916eb Merge pull request #49 in FS/freeswitch from ~VIPKILLA/freeswitch-mod_odbc_cdr:master to master
* commit '544c5faf5e6ce6fe2b87523304d1f00e2d201d90':
  Add module mod_odbc_cdr
2014-11-07 08:34:55 -06:00
Mike Jerris 60b51c46cc Merge pull request #50 in FS/freeswitch from ~JMESQUITA/freeswitch:mod_say_es_AR to master
* commit 'e75d0675afd8974687931143709814544299fadc':
  FS-6967 New mod_say_es_AR to support Argentina Spanish variant.
2014-11-06 17:21:08 -06:00
Joao Mesquita e75d0675af FS-6967 New mod_say_es_AR to support Argentina Spanish variant. 2014-11-06 19:21:13 -03:00
Brian West 5dee5ce1d5 FS-6953 #resolve 2014-11-03 11:40:17 -06:00
E. Schmidbauer 544c5faf5e Add module mod_odbc_cdr 2014-10-08 08:31:35 -04:00
Michael Jerris acd8d74316 cleanup conditions 2014-10-03 12:48:43 -04:00
Anthony Minessale 9486a645f8 bump 2014-10-01 18:35:04 -05:00
Anthony Minessale cc44659a7c bump 2014-10-01 18:34:05 -05:00
Travis Cross 13d9e99ae7 Handle gcc quirk with parameter checking
At least some versions of GCC appear to take any -Wno-foo option
without error even if that option is not supported.  But they will
error out if -Wno-error=foo is used.  This sounds like a GCC bug, but
we'll work around it and test for the feature both ways.

Thanks-to: Matteo Brancaleoni <mbrancaleoni@voismart.it>

FS-6850 #resolve
2014-09-25 13:22:16 +00:00
Travis Cross bb84b0534c Check for libpq in core before building mod_cdr_pg_csv 2014-09-10 22:29:24 +00:00
Moises Silva fa3a1a0bdd Added mod_bert module 2014-09-09 04:07:02 -04:00
Russell Treleaven ce96d95c5e add support for cache directory
make configs use specific directory variables instead of just base_dir
so that one configuration can be used for fhs and legacy installations
2014-08-31 20:22:08 -04:00
Travis Cross 1c058e0f45 Check gcc support for -Wno-unused-result
We're using -Wno-unused-result to work around what is arguably a GCC
bug, but this option is not supported on older GCC versions.  So on
those versions we won't pass -Werror either.

ref: commit b874048efc
2014-08-28 13:37:37 +00:00
Travis Cross b874048efc Handle gcc's overzealous unused-result warning
Modern static analyzers warn when a variable is set but not used.  GCC
warns when the result of a function marked as
`__attribute__((warn_unused_result))` is not set to some variable,
even when the function is cast to `(void)`, which is the recognized
way of indicating the intent to ignore the result.  We treat all
warnings as errors.

The combination of behaviors here makes it difficult if we really
don't care about the result of the function; the obvious workarounds
are precluded.

GCC's maintainers don't consider this to be a bug:

  Why do you think this is a bug?  warn_unused_result is for cases where
  "not checking the result is either a security problem or always a
  bug".

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509#c1

GLIBC however marks functions like `read` and `write` with this
attribute.  While it certainly in most cases is correct to act on
their return value, in some cases we really just don't care.

So when we see that we're building with GCC, and that we're building
with all warnings enabled, we'll just pass -Wno-unused-result to
disable the warning.

ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
2014-08-22 20:13:39 +00:00
Travis Cross 1933c7cb8a Fix build on Debian sid/jessie
Debian has packaged libpq version 9.4beta2.  We were parsing the minor
version as "4beta2" and then trying to treat it as a constant integer,
which obviously doesn't work.

There's not really a perfect way to handle versions like this, so
we'll just pretend it's 9.4.0.
2014-07-31 04:05:47 +00:00
Charlie Root a1d73dfd09 Fix configure check for libjpeg to not break other checks 2014-07-23 14:52:07 -05:00
Travis Cross a537d80372 Add new module: mod_prefix
mod_prefix is an in-memory data store optimized for fast lookups
according to the longest prefix match (LPM) rule.

Tables of key-value string pairs in JSON format can be loaded at
startup via configuration and at runtime via the API.

The implementation uses a bitwise trie (aka binary prefix tree), so
arbitrary string keys are supported.
2014-07-22 15:28:31 +00:00
Travis Cross 02ee686d85 Remove remaining traces of mod_spidermonkey 2014-07-18 19:07:38 +00:00
Michael Jerris 6706378b38 we have already removed the module from tree, no need to bootstrap/configure the lib still, or to have it in tree at all for that matter 2014-07-18 14:15:26 -04:00
Michael Jerris b186ca9f74 FS-6542: add pkg_config path for portaudio on mac via homebrew 2014-07-18 12:53:54 -04:00
Travis Cross a0e19e1c7f Use system portaudio library
This removes our in-tree version of portaudio-19 and migrates
mod_portaudio and mod_portaudio_stream to use the system version of
the library.  Our detection of the system library relies on
pkg-config.
2014-07-17 21:15:53 +00:00
Anthony Minessale a2921e269c update verto with some fixes and enhancements with reconnection 2014-07-18 01:04:04 +05:00
Anthony Minessale abe4261a92 bump 2014-07-15 20:34:48 +05:00
Anthony Minessale d9f51f556f bump 2014-07-15 20:33:32 +05:00
Anthony Minessale 810717cae0 check for proper openal symbol to enable functionality 2014-06-30 01:23:07 +05:00
Michael Jerris 94f359904d remove dual-arch cflags and ldflags that we get on osx, we don't support fat binary stuff yet 2014-06-17 19:22:34 +00:00
Michael Jerris 548be28694 FS-6602: check for libperl libstalled and linkable too 2014-06-17 11:44:18 -05:00
Michael Jerris 5dd7791307 FS-6602: fixed check for EXTERN.h 2014-06-17 11:17:55 -05:00
Michael Jerris 82dbc5d2b9 FS-6604: install to archlib not sitelibexp 2014-06-17 10:35:17 -05:00
Michael Jerris b8629901a2 fix dep check for building perl mods 2014-06-17 09:44:24 -05:00