Flavio Grossi [Tue, 13 Jan 2015 14:30:39 +0000 (15:30 +0100)]
FS-7004 mod_sndfile: use correct permissions to create new files
libsndfile's sf_open() function doesn't allow to pass file permissions. To fix
this, new files are created with the correct mode before passing them to
libsndfile.
Chris Rienzo [Tue, 13 Jan 2015 21:01:02 +0000 (16:01 -0500)]
FS-7150 #resolve #comment [mod_rayo] added param add-variables-to-events which will add channel variables to <offer>, <ringing>, <answered>, and <end> if set to true. Default is false.
William King [Fri, 9 Jan 2015 22:21:05 +0000 (14:21 -0800)]
Fix build of freetdm on CentOS
Revert the build change to freetdm since it broke the build of that
modules on CentOS. Once a working change is finished, then it'll be
committed against FS-7122.
William King [Wed, 31 Dec 2014 19:52:06 +0000 (11:52 -0800)]
resolve an automake warning about subdirs on latest automake
The file 'libs/sofia-sip/s2check/exit77.c' was moved in order to
silence the warning and to keep the build working. There might be a
build problem that results from this file move, but after serveral
build tests I have not found one. The contents of the file are
specifically for the make check target, so I believe it would be
highly unlikely to cause problems with any production feature.
FS-7117 #comment revert bf5210bf72d6c4b0d9b599a5a07ee59a9c947436 and implement it in ws.c please be sure to learn to use git commit hooks to properly associate commits with jiras
William King [Wed, 31 Dec 2014 19:52:06 +0000 (11:52 -0800)]
resolve an automake warning about subdirs on latest automake
Latest automake will detect then warn if the Makefile uses source
files that are in subdirectories, but the subdirs option is not
set. In the FreeSWITCH build system the current expected behavior is
to expect the subdirs option to be enabled.
mod_sofia: Set sip_to_tag on ringing indication for inbound channels.
When bridging a call, the to-tag used in the outgoing 180 Ringing
message for the inbound channel is unavailable until the channel has
been answered. For the outgoing channel this value is already available
through the sip_to_tag variable via the event socket.
This is solved this by setting sip_to_tag to the local leg's tag when
receiving a ringing indication for inbound channels. This will also make
the variable available in the CHANNEL_PROGRESS event through event
socket.
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.
Travis Cross [Thu, 25 Dec 2014 10:11:47 +0000 (10:11 +0000)]
Fix mod_expr `clamp` function
The clamp(v,a,b) function wraps v around the interval [a,b).
However prior to this commit, `clamp` was ignoring the third argument
and using the second argument again in its place. This resulted in a
division by zero. Hence `clamp` didn't work at all.
Even if the arguments were treated correctly, `clamp` incorrectly
multiplied rather than added whenever v < a. This would have produced
bogus results. (Thanks to Shona McNeill for pointing this out.)
Note that as implemented, `clamp` is undefined for b >= a.
These errors are present in the last upstream C version, v2.7.
They've been corrected in the C++ version that upstream now maintains
instead.
Travis Cross [Thu, 25 Dec 2014 06:42:14 +0000 (06:42 +0000)]
Support optional debian parallel builds
With this commit we allow getting `make -jN` behavior by setting
`parallel=N` in `DEB_BUILD_OPTIONS`. Setting `parallel=` will result
in `make -j` being run (i.e. no limit on the number of jobs). The
default is to run one job at a time; this is still the safest bet when
building all modules.
Thanks to Peter Wu for suggesting a different way to do this.
Mike Jerris [Tue, 23 Dec 2014 18:41:10 +0000 (12:41 -0600)]
Merge pull request #120 in FS/freeswitch from ~STEVEAYRE/freeswitch:master to master
* commit '0822f6a0200662bb01576fb3a0ce923acd9596a6':
FS-7019 swap debian/ubuntu autodetection order
FS-7019 detect debian explicitly, error on unknown distribution
FS-7019 add note on how to build on Ubuntu
FS-7019 full list of distributions to target based on distribution autodetection
FS-7019 build error on utopic (lber_types.h: No such file or directory)
FS-7019 add support for building on ubuntu trusty and utopic
FS-7083 #resolve #comment this should do it. The problem is linked to side-effects from the read thread being delayed by writing to the file handle. It was so much worse on mp3 because the shout encoder blocks while its churning the data and delays it more. This patch adds a dedicated thread for writing to the file and the channel_variable RECORD_USE_THREAD=false will disable it and sync may still be maintained at the cost of dropping more data from the audio signal.
Chris Rienzo [Wed, 17 Dec 2014 19:49:01 +0000 (14:49 -0500)]
FS-7091 #resolve #comment [mod_rayo] Removed unnecessary mutex lock inside input component's cleanup function since the input component won't be cleaned up unless all references have been released. This fixes a deadlock when output component is created at the same time an input component completes.
Moises Silva [Thu, 11 Dec 2014 22:50:30 +0000 (17:50 -0500)]
Add bert stats to mod_bert::lost_sync event
The following values can be read from the event:
sync_lost_percent - Error percentage within the analysis window
sync_lost_count - How many times sync has been lost
cng_count - Counter of confort noise packets
err_samples - Number of samples that did not match the sequence