Commit Graph

6914 Commits

Author SHA1 Message Date
Steve Underwood 4fa68fcd75 A change to spandsp/src/alloc.c which hopefully improves BSD compatibility 2014-02-08 16:50:53 +08:00
Steve Underwood a61edbd8dc Removed a couple of unused variables 2014-02-08 16:25:10 +08:00
Brian West 3c55a90076 ESL-66 2014-02-07 13:10:25 -06:00
Travis Cross f2d544d559 Rebuild sofia 2014-02-06 15:41:33 +00:00
Travis Cross a96eefe8ee Add support for EECDH to Sofia-SIP
This adds support for the ephemeral elliptic curve Diffie-Hellman key
exchange, which provides for forward secrecy in the event that
long-term keys are compromised.

For the moment, we've hard-coded the curve as prime256v1.
2014-02-06 15:40:35 +00:00
Travis Cross c0101e2ce6 Allow setting TLS cipher suites through Sofia-SIP API
Previously there was no way to override the hard-coded cipher suite
specification of "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH".

This commit does leave in place the hardcoded cipher spec for WebRTC
of "HIGH:!DSS:!aNULL@STRENGTH".
2014-02-06 06:04:02 +00:00
Travis Cross e3b353e911 Allow setting enabled TLS versions in Sofia-SIP
Previously if the TPTAG_TLS_VERSION was set to a non-zero value we
supported only TLSv1 (but not TLSv1.1 or TLSv1.2), and if was set to
zero we supported all versions of TLS and SSL (including the
ridiculous SSLv2).

Now we take an integer field where various bits can be set indicating
which versions of TLS we would like to support.
2014-02-06 02:17:13 +00:00
Michael Jerris b6270f4d70 FS-6030: --resolve fix variable scoping issue for more aggressive optimizer 2014-02-05 08:46:04 -05: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
Jeff Lenk 998b656799 remove some _MSC_VER stuff 2014-01-31 12:35:55 -06:00
Jeff Lenk 558decda2c srtp fix cast for last round of fixes 2014-01-31 11:19:30 -06:00
Jeff Lenk 37a639860c revert last srtp change and fix for windows different 2014-01-31 10:53:33 -06:00
Jeff Lenk 7454350062 missed one on last commit 2014-01-31 09:16:20 -06:00
Anthony Minessale 0a3e18a308 FS-6174 --resolve after updating to this revision, put ca-bundle.crt in /usr/local/freeswitch/certs to get chain cert in place for both dtls and wss 2014-01-31 20:16:54 +05:00
Jeff Lenk 035985859c reapply several compiler fixes after last commit 2014-01-31 08:54:26 -06:00
Michael Jerris 91eb5b237d update srtp to master part 1 2014-01-30 16:55:56 -05:00
Michael Jerris 16c9c1df0a don't define inline to nothing 2014-01-30 08:54:03 -05:00
Michael Jerris fa0de66ec8 .gitignore 2014-01-29 17:56:51 -05:00
Michael Jerris 433830a3fe revert previous change that does not correct the issue. opened a bug with apple on this issue https://bugreport.apple.com/problem/viewproblem #15938497 2014-01-29 16:59:55 -05:00
Michael Jerris 8a01410847 FS-5956: fix __sputc included twice due to stdio.h inlining issue 2014-01-29 11:41:49 -05:00
Michael Jerris 27d6d08772 add back dir 2014-01-28 11:49:58 -05:00
Anthony Minessale 0e14b758fc FS-6150 --resolve cool find 2014-01-27 06:57:05 +05:00
Anthony Minessale 7c2c032497 rm gen files 2014-01-27 06:17:32 +05:00
Jeff Lenk 1e62a65581 FS-6129 vs2010 didnt like the syntax here 2014-01-23 21:51:50 -06: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 ef8dff4552 mod_v8: Force build on Windows to generate project files for the current version used. 2014-01-23 14:33:21 +01:00
Peter Olsson e26d34aa85 FS-6129 More improvements for V8 Windows build on 32-bit machines. 2014-01-23 13:39:34 +01:00
Peter Olsson 93696934b2 Silence more compiler warnings 2014-01-23 12:25:15 +01:00
Jeff Lenk 160a2b9362 FS-6129 remove for testing 2014-01-22 22:23:19 -06: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
Peter Olsson 084e245085 Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks. 2014-01-22 22:30:23 +01:00
Peter Olsson 7adc20fd4a mod_v8: Simplify Visual Studio projects to make it easier to change version of V8 in the future 2014-01-21 12:35:19 +01:00
Travis Cross a0e9639a1f Handle Linux TCP keepalives better in Sofia
Sofia accepts a value for the TCP keepalive timeout interval via
TPTAG_KEEPALIVE, however it fails to use this value for the Linux
keepalive socket options TCP_KEEPIDLE and TCP_KEEPINTVL.  In fact, on
Linux it enables the sending of TCP keepalives even if tpp_keepalive
is set to zero which would disable Sofia's internal keepalive
mechanisms.  Sofia then uses a hard coded value of 30 seconds for
these keepalive intervals which affects battery life on mobile
devices.

With this commit we harmonize the sending of TCP keepalives on Linux
with other platforms by using the value from TPTAG_KEEPALIVE and not
enabling the sending of TCP keepalives at all if the value of the
parameter is zero.

FS-6104 --resolve
2014-01-18 15:46:56 +00:00
Peter Olsson 177d8950c2 mod_v8: Add support for build in VS2010. Files manually patched, but they should work as expected 2014-01-18 11:24:57 +01:00
Peter Olsson 91bd69beb4 Improved VS2012 project files for opus lib, to make it work better when converting into VS2013 project 2014-01-18 11:22:18 +01:00
Steve Underwood 63136410ad Fixed poor checking for ARM NEON 2014-01-17 23:16:23 +08:00
Steve Underwood f7a407feca Removal of some pointless callback parameters in the spandsp AT command
interpreter, and fixes for my congential inability to reliably spell psuedo,
er, pseudo, er, whatever.
2014-01-16 00:47:29 +08:00
Peter Olsson b762332669 Initial commit of mod_v8 2014-01-14 15:38:41 +01:00
Peter Olsson 0e2d027ddf ssize_t incorrectly defined as int on Windows x64 builds 2014-01-14 09:46:01 +01:00
Peter Olsson 5f7b00fb69 Check if stdint has been included before trying to declare int variants. Needed for mod_v8 build in Windows 2014-01-14 09:27:56 +01:00
Moises Silva b6133ecc95 OPENZAP-226 --resolve Hunting direction is reversed in the API
Minor modifications on the original patch to use ftdm_hunting_direction_t
everywhere instead of ftdm_direction_t or int

Patched-by: Marc Olivier Chouinard
2014-01-10 21:22:14 -05:00
Anthony Minessale d3872b3a7b add diffs from 8884f4d 8e47faf @ https://github.com/cisco/libsrtp 2014-01-11 03:46:13 +05:00
Anthony Minessale 3ff0aaa0be FS-5653 --resolve 2014-01-07 00:38:48 +05:00
Jeff Lenk e75497c98d revert accidental change in last commit for freetdm sang isdn 2014-01-01 12:08:40 -06:00
Jeff Lenk 153f66d739 add freetdm vs2012 build support 2013-12-31 16:45:44 -06:00
Jeff Lenk 990d41b121 FS-5704 --resolve 2013-12-30 13:14:34 -06:00
Michael Jerris 88545a7fe1 .gitignore 2013-12-23 17:27:20 -05:00
Anthony Minessale 14f7e1aa58 FS-5920 --resolve 2013-12-16 11:54:15 -05:00
Seven Du f5b18c0fdd FS-5642 --resolve add back the ETIMEDOUT check, needed on Mac 2013-12-13 11:46:14 +08:00
Jeff Lenk 069941f1da fix spandsp for windows build 2013-12-09 16:37:56 -06:00
Steve Underwood ac2bf8a405 Fixed a file permission in the ESL library 2013-12-08 01:39:00 +08:00
Steve Underwood eb3e843692 Eliminate a warning from valgrind, that might potentially be reporting actual
trouble.
2013-12-07 01:57:59 +08:00
Steve Underwood d5a7495a72 This should fix the FAX crashes when negotiation falls back to slower modems 2013-12-05 21:49:59 +08:00
Steve Underwood 9edbbd9c61 Tweaks to FAX modem handling. These do NOT fix the occassional crashes people
see, but they are working towards a clean and complete fix.
2013-12-05 21:10:57 +08:00
Steve Underwood 7d6b0e48b7 Added an XML script to the FAX tests which will provoke the crashing
issue seen recently in spandsp's FAX engine. The next step is to fix
the actual crash.
2013-12-05 13:34:25 +08:00
Jeff Lenk bb53175526 FS-6010 --resolve 2013-11-29 22:16:49 -06:00
Anthony Minessale bbe1fe1a31 FS-6005 --resolve 2013-11-27 10:20:35 -06:00
Moises Silva c62db1a600 freetdm: ftmod_wanpipe: Remove chatty debug msg, not really useful anyways 2013-11-27 09:51:33 -05: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 fc5557b949 FS-5986 --resolve fix download reference to windows libcelt 2013-11-20 07:36:20 -06: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
wavecb 681ea6c40b fix build on mac os 10.9 2013-11-12 13:54:20 +08:00
Moises Silva 8469e83835 freetdm: ftmod_analog_em: Remove constant CAS debug log 2013-11-08 19:12:44 -05:00
wavecb fca7a4732c add miss strlcat strlcpy check for libedit 2013-11-08 20:34:38 +08:00
Moises Silva 7542c5877c freetdm: E&M: Set the line offhook when suspended 2013-11-08 02:22:36 -05:00
Moises Silva 3b0e8d9e2d freetdm: ftmod_zt: Refactor event processing to store OOB events that arrive during read/write operations 2013-11-08 02:22:05 -05:00
Moises Silva 774784fbee mod_freetdm: Handle read errors gracefully when the device is dead already 2013-11-08 02:21:42 -05:00
Moises Silva 545d1e5079 freetdm: Fix hangup supervision on inbound calls for Analog E&M 2013-11-08 02:19:41 -05:00
Steve Underwood 54ae6ff6c1 Adjusted the test for -Wunused-but-set-variable in spandsp, so it gets the
answer right with clang.
2013-11-01 10:32:32 +08:00
Steve Underwood f532640c49 Fixed an embedded assembly language constraint issue 2013-11-01 02:44:11 +08:00
Anthony Minessale 460b8014b9 add channel to logline 2013-10-31 11:21:34 -05:00
Anthony Minessale c8be999c34 FS-5911 --resolve 2013-10-25 23:51:43 +05:00
Moises Silva 271eda310e freetdm: Added CAS hangup bit checking to the E&M signaling module 2013-10-24 19:05:35 -04:00
Moises Silva 2b3c98b069 ftmod_analog_em: Block/unblock signaling when a span is stopped/started 2013-10-24 19:05:12 -04:00
Moises Silva 9a45b983b3 Merge remote-tracking branch 'origin/master' into em_management 2013-10-24 16:29:45 -04:00
Jeff Lenk 88b2e96516 windows fix compiler errors 2013-10-22 23:23:48 -05:00
Anthony Minessale 20a55d3cc6 update 2013-10-22 16:27:15 -05:00
Anthony Minessale e2bdd78d55 FS-5896 --resolve 2013-10-22 20:33:13 +05:00
Anthony Minessale 3c2a5db225 add missing protos 2013-10-21 20:11:30 +05:00
Michael Jerris bfcd1e07ca compile failure due to no newline at end of file 2013-10-21 10:54:23 -04:00
Steve Underwood 2cdfb045d2 Update some of the MSVC files for spandsp 2013-10-20 20:55:23 +08:00
Steve Underwood eee96c60c9 Tweaks 2013-10-19 18:51:50 +08:00
Anthony Minessale 0d19abfbdb FS-5887 --resolve 2013-10-19 00:00:28 +05:00
Travis Cross 3fce1aae03 Fix build of apr-util expat with libtool2
Applied patch from:
http://people.apache.org/~rjung/patches/expat-libtool2.patch

The failure that results from this seems to occur
non-deterministically.

FS-3185 --resolve
2013-10-17 20:41:58 +00:00
Steve Underwood 348e9ba1d1 Eliminate a few more warnings in Windows builds 2013-10-16 01:33:37 +08:00
Steve Underwood 15ca745cd4 Eliminate more warnings 2013-10-16 00:53:18 +08:00
Steve Underwood 84324ab7b1 Eliminate some more warnings 2013-10-16 00:47:29 +08:00
Michael Jerris f236ca113d FS-5819: configure fix for new clang detection and adjust cflags for building with newest clang 2013-10-15 09:34:15 -07:00
Steve Underwood 7c99132c8a Eliminate a warnign in G.722.1 2013-10-15 23:51:54 +08:00
Steve Underwood 81e805165a Eliminate some warnings in a Windows build 2013-10-15 23:39:59 +08:00
Jeff Lenk e7287f901f fix windows build for recent spandsp commit 2013-10-12 16:40:29 -05:00
Steve Underwood 9990be4209 Avoid use of config.h in build environment tools in spandsp 2013-10-11 23:42:06 +08:00
Steve Underwood 25a942e12c Updated the MSVC version of spandsp.h to follow the generated one 2013-10-09 22:37:01 +08:00
Anthony Minessale 8aff25e03d FS-5855 please try lastest HEAD 2013-10-08 12:10:36 -05:00
Jeff Lenk 6d0069a0cf add missing decel for last spandsp commit 2013-10-06 20:26:24 -05:00