Commit Graph

26111 Commits

Author SHA1 Message Date
Brian West
039f28d136 We do not use the cpp lib so why compile it. 2014-03-05 06:19:43 -06:00
Brian West
49fe796dab These options aren't valid for apr-util configure
configure: WARNING: unrecognized options: --disable-shared, --with-pic
2014-03-05 06:18:40 -06:00
Brian West
783a4083ed configure: error: could not detect a 64-bit integer type
NetBSD dagonet.omniscient.local 6.1.3 NetBSD 6.1.3 (GENERIC_HZ) #1: Sat Mar 1 19:18:46 EST 2014 met@dagonet.omniscient.local:/data/netbsd/obj/usr/src/sys/arch/i386/compile/GENERIC_HZ i386

Failure due to test programs have "Shared object "libXXX.so.X" not found"

Adding -Wl,-rpath,/usr/pkg/lib to LDFLAGS for NetBSD
2014-03-05 05:15:32 -06:00
Travis Cross
74775d4397 Revert conference "tool" misfeature
This was added as part of a mass copyright header update in commit
6e7d5d089.  That's obviously not the right way to add features, so
we're reverting this.

If this feature is actually desired, it should be added in its own
commit, properly described in the commit message, and documented.

(The commit added a "tool" flag that could be applied to a conference
participant to mess with that person by disrupting his or her audio.)

This partially reverts commit 6e7d5d0897.

This feature earlier tried to sneak in under the guise of a whitespace
cleanup in commit a000749e70 which
Anthony reverted at commit a24f9aa8bc.

Let's not play these games.
2014-03-05 03:29:10 +00:00
Chris Rienzo
286d2aef29 FS-6304 mod_rayo- fix race condition on outbound calls 2014-03-04 22:12:43 -05:00
Giovanni Maruzzelli
4d8866a7cf gsmopen: added driver_usb_dongle directory, for building a working and stable 'option' modem serial driver for 2.6.32 kernels (eg: Proxmox, OpenVZ) 2014-03-05 02:06:03 +01:00
Anthony Minessale
6ae038add3 FS-5755 84c0680153 is wrong. It made optional enforce crypto. 2014-03-04 19:07:54 -06:00
William King
fd38a255f8 FS-6167 --resolve 2014-03-04 13:41:34 -08:00
William King
3d461d7cde FS-1327 --resolve 2014-03-04 13:09:51 -08:00
William King
138224d816 FS-6303 --resolve 2014-03-04 12:30:14 -08:00
Marc Olivier Chouinard
84c0680153 FS-5755 Fix regression if rtp_secure_media=false, it will force encryption. 2014-03-04 09:42:17 -05:00
Travis Cross
411a76020a Improve channel variable name to srtp_allow_idle_gaps
This was momentarily called force_send_silence_when_idle, but that was
non-obvious as you had to set that value to true to be able to not
send silence when idle.  This name describes the purpose much better.
2014-03-04 01:51:04 +00:00
Travis Cross
680bc46768 Avoid repeating ourselves in generating silence
We were handling the "send silence but not comfort noise" case in both
silence_stream_file_read and switch_generate_sln_silence.  This
changes the former to rely on the latter.
2014-03-04 00:16:43 +00:00
Travis Cross
5a7ea956b9 Add force_send_silence_when_idle channel variable
If set to true, this prevents us from overriding the value of
send_silence_when_idle.  When that is unset or set to zero and SRTP is
engaged, we typically override the value because many devices can't
handle gaps in the SRTP stream.

This variable is mostly for testing whether particular devices can
handle this behavior.  Use at your own risk.
2014-03-04 00:09:02 +00:00
Chris Rienzo
e650939b25 FS-6296 --resolve mod_rayo: fixed crash on <prompt> bad request 2014-03-03 19:01:28 -05:00
Travis Cross
20da552564 Preserve value of send_silence_when_idle if possible
In commit 55d01d3def we set
send_silence_when_idle to -1 rather than 400 when SRTP is engaged.
But this left no way to enable white noise silence when desired.

When SRTP is engaged we can't simply not send RTP because it breaks
too many devices.  So we need to prevent send_silence_when_idle from
being unset or being set to zero.  This change allows it to be set to
other values so as to feed white noise rather than all zeros into the
codec.
2014-03-03 23:43:29 +00:00
Travis Cross
11ca1a2b2e Fix handling of send_silence_when_idle==0 in switch_ivr_sleep
When the channel variable send_silence_when_idle was set to zero,
switch_ivr_sleep was calling SWITCH_IVR_VERIFY_SILENCE_DIVISOR on it
anyway, causing it to be set to 400.  The only way to get the behavior
of not sending silence when idle was to unset the variable completely.

This corrects the behavior such that setting the value to zero has the
same effect as leaving it unset.
2014-03-03 23:21:58 +00:00
Michael Jerris
3dd36873b5 silence autoconf warnings 2014-03-03 13:10:59 -05:00
Anthony Minessale
6ef3f7bde7 add timeout <seconds> to mod_curl api call 2014-03-03 22:58:45 +05:00
Michael Jerris
07399e213f fix missing type definitions 2014-03-03 08:26:54 -05:00
Michael Jerris
ae216daf02 fix warning abount comment inside comment 2014-03-03 08:26:54 -05:00
Travis Cross
ecd6dfc612 Output newline after json output in mod_json_cdr
In UNIX, text files by definition end with a newline.
2014-03-03 01:13:39 +00:00
Travis Cross
95e4163ab7 Handle too-short write(3)s in mod_json_cdr
write(3) can write fewer bytes than was requested for any number of
reasons.  The correct behavior is to retry unless there is an error.

If there is an error, try to unlink the file; no sense in leaving
corrupted data laying around.
2014-03-03 01:12:15 +00:00
Travis Cross
b04bbc6ca5 Fix FHS default modulesdir define
The default value of libdir is (unexpanded) '${exec_prefix}/lib'.  In
the non-FHS path this is fine because it only ends up in a variable
where it will be expanded later.  By using this to define modulesdir
we let it slip into a define where it made no sense.
2014-03-02 23:55:06 +00:00
Travis Cross
ab35096833 Fix FHS default sysconfdir 2014-03-02 23:03:13 +00:00
Travis Cross
75a00bd954 Fix memory leak in mod_json_cdr 2014-03-02 22:02:07 +00:00
Brian West
a7bf6f8dc1 Reverting FS-6292, pending more details from an end user thats working on this 2014-03-02 11:23:07 -06:00
Travis Cross
164d6a7bf5 Optimize switch_split_user_domain a bit
This avoids searching the string repeatedly with strchr.
2014-03-02 09:43:14 +00:00
Travis Cross
5aab272bb3 Refactor and fix edge cases in switch_split_user_domain
We were incorrectly parsing usernames and domains starting with "sip"
if there was no sip: or sips: scheme in the string.

We were also incorrectly parsing usernames containing a colon even if
a scheme was given.

This also refactors the function for hopefully greater clarity.
2014-03-02 09:20:59 +00:00
Raymond Chandler
b0d7551c80 use newSQL 2014-03-02 03:13:01 -05:00
Travis Cross
b22aa39e66 Fix switch_split_user_domain handling of sips: URLs
In commit 7efeabbd88 Anthony fixed the
handling of sip:example.com and sips:example.com URLs, however he
introduced a regression causing URLs starting with 's' to be parsed
incorrectly.

In commit 7d2456ea27 Brian fixed the
regression, but introduced a regression causing sips:example.com URLs
to be handled incorrectly.
2014-03-02 08:11:11 +00:00
Travis Cross
fd1b0279e2 Update the configuration report
Order the default configure flags in the order they show up in
configure --help, and order our own alphabetically.
2014-03-02 03:47:48 +00:00
Travis Cross
f5ecbc84ca Add --enable-fhs flag to configure
When --enable-fhs is passed to configure, we set all paths by default
in a way compliant with FHS, the Filesystem Hierarchy Standard.

  http://www.pathname.com/fhs/

Each path may still be overridden by passing the specific flag for it.
2014-03-02 03:47:48 +00:00
Jeff Lenk
015ff5d787 windows fix last commit 2014-03-01 15:40:58 -06:00
Jeff Lenk
f6e591de4a windows only - add our own thread priority ability for core threads please test 2014-03-01 14:37:04 -06:00
Brian West
4ad5688aef FS-6292 don't use AC_FUNC_MALLOC on NetBSD as rp_malloc isn't defined 2014-03-01 10:49:38 -06:00
Brian West
02dd7772ba This previous change fixes the issue on 64bit but if trying to compile a 32bit build you end up breaking the types on 32bit.
Commandline Fu for dumping the various defines for gcc are as follows:

gcc -m64 -dM -E - <<<''

gcc -m32 -dM -E - <<<''
2014-03-01 10:20:48 -06:00
Brian West
dd8c323fcf FS-6226Prevent DTMF from traversing bridged channels, but still allow me to send DTMF via API or dp app (uuid_send_dtmf or send_dtmf) 2014-03-01 09:58:43 -06:00
Brian West
2fe3ef03ed missed on 2014-03-01 09:32:20 -06:00
Peter Olsson
8b57411bdd FS-6290 --resolve 2014-03-01 10:03:56 +01:00
Peter Olsson
ef278822d4 Ignore generated file 2014-03-01 09:54:57 +01:00
Brian West
f2331de68b Spelling is hard 2014-02-28 18:37:17 -06:00
Anthony Minessale
719850e508 FS-5895 --resolve 2014-03-01 04:55:04 +05:00
Anthony Minessale
2c1a25d5f8 add sip_force_nat_mode so you can engange nat mode manually 2014-03-01 04:43:07 +05:00
Seven Du
5b73a80339 FS-5207 use the json version, thanks 2014-03-01 07:40:31 +08:00
Travis Cross
55d01d3def Send silent packets when idle with SRTP
Originally we did the same thing with SRTP that we do without SRTP,
which is to simply not send packets when e.g. sleep is called.

At commits d63323977f and
5259814aee we enabled sending silence
packets with comfort noise when SRTP is active.  We appear to have
done this for interop purposes; many devices can't handle gaps in the
stream of SRTP packets.

But our current comfort noise implementation doesn't take the codec
rate into account (FS-6291), so on 16kHz codecs the constant we chose
created an annoying level of static between sound file playback.

With this commit we preserve the sending of SRTP packets during idle
periods, but make those packets completely silent.

Thanks-to: Anthony Minessale <anthm@freeswitch.org>

FS-5053 --resolve
2014-02-28 23:13:37 +00:00
Brian West
93c05d9c5f FS-4502 --resolve 2014-02-28 16:23:37 -06:00
Brian West
5b26558e56 FS-5207 --resolve 2014-02-28 16:11:22 -06:00
Brian West
1d36f5b219 FS-5915 --resolve 2014-02-28 16:09:59 -06:00
Anthony Minessale
8cee05987e check the jitter stats after the jitter buffer when its enabled 2014-03-01 02:50:17 +05:00