Commit Graph

6666 Commits

Author SHA1 Message Date
Jeff Lenk 9612a92179 ESL-81 --resolve 2014-02-16 10:19:07 -06:00
Ken Rice 8dbad1172e copyright header update 2014-02-12 15:25:54 -06:00
Travis Cross 81863e44b6 Force sofia rebuild
The rebuild is needed for commit cd6154b49e.
2014-02-11 17:47:09 +00:00
Travis Cross 92e2caf86b Rework handling of Linux TCP keepalives in Sofia
This separates out the Linux socket TCP keepalive timeout interval
from Sofia's internal mechanisms.  Earlier we tied these together.  In
retrospect this seems improper.

These two values can now be set separately.

You might, for example, want to keep the Sofia internal mechanism
disabled completely while enabling the platform-based mechanism if
your platform supports it.

We also here reform the default value of the socket TCP keepalive
parameter to 30 seconds.

This is what commit 1bf17857c9 should
have been.

FS-6104
2014-02-11 06:39:50 +00:00
Travis Cross f7c4dd79f5 Add additional debugging output to keepalive handling 2014-02-11 06:34:43 +00:00
Travis Cross 01a4aeaaeb Synchronize Sofia and Linux TCP keepalive timeout units
Sofia keeps the TCP keepalive timeout in milliseconds, but Linux
expects the value in seconds.  Before this change, it's unlikely the
TCP_KEEPIDLE and TCP_KEEPINTVL calls were having much effect as we
would have been passing them a huge value.

FS-6104
2014-02-11 06:34:40 +00:00
Travis Cross e2639e1d4d Add ifdefs around TLS v1.1 and v1.2 handling
This is needed to support squeeze for awhile longer.
2014-02-10 04:09:52 +00:00
Jonathan Lennox 50791508b1 Fix inline functions when compiling as C99.
Make private inlines in C files 'static inline', not just 'inline', or the compiler
can discard the definition if it chooses not to inline it.

Make functions declared in header files not be declared inline (if they're defined in a
.c file).  It looks like no functions in this category are used in LibSRTP's critical
path, only for unit tests or generating AES tables.

To see the problem prior to this commit, compile with "gcc -O0 -std=gnu99".

Signed-off-by: Travis Cross <tc@traviscross.com>

This cherry-picks commit e2774dbd551ffe5f872eaec2b2d40b712a54e1ba from
libsrtp upstream.

FS-6196 --resolve
2014-02-09 22:34:05 +00:00
Travis Cross d1e40b088a Add OpenSSL version check around ECDH
...we'll try to support ancient OpenSSL versions on v1.2 for awhile
longer.
2014-02-09 22:33:52 +00:00
Travis Cross 1398975622 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-09 20:13:44 +00:00
Brian West fcbb664df9 ESL-66 2014-02-07 13:10:08 -06:00
Michael Jerris 5dcfe78169 FS-5763: --resolve add configure check for lzma and newer readhat/sl tinfo stuff 2014-02-06 12:41:52 -06:00
Travis Cross 25c65d52c5 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:32 +00:00
Travis Cross 7f772b2601 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:45:50 +00:00
Moises Silva 3eb27f970d 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:45 +05:00
Michael Jerris 39c3ca0014 don't define inline to nothing 2014-01-30 08:54:39 -05:00
Michael Jerris 905225a36c 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 17:00:41 -05:00
Michael Jerris f6cd2945a9 FS-5956: fix __sputc included twice due to stdio.h inlining issue 2014-01-29 11:39:03 -05:00
Michael Jerris 7bff57c528 add back dir 2014-01-28 11:50:27 -05:00
Anthony Minessale a6cd8c5cc5 FS-6150 --resolve cool find 2014-01-27 06:57:21 +05:00
Anthony Minessale f865755893 rm gen files 2014-01-27 06:19:26 +05:00
Anthony Minessale 47992ab5f0 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:27:06 +05:00
Steve Underwood 5c7a5c1110 Fixed poor checking for ARM NEON 2014-01-22 02:10:27 +05:00
Travis Cross 1bf17857c9 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:49:01 +00:00
Anthony Minessale 03e59c3efa FS-5653 --resolve 2014-01-07 00:39:19 +05:00
Michael Jerris 5bb1593798 .gitignore 2013-12-23 17:26:12 -05:00
Jeff Lenk 3687892e91 FS-6010 VS2013 build changes 2013-12-21 16:50:09 -06:00
Jeff Lenk e20ed84a8d fix spandsp compile for windows part 1 2013-12-09 16:42:32 -06:00
Anthony Minessale d429d7fff1 sync spandsp 2013-12-05 22:58:12 +05:00
Anthony Minessale 76f30ae090 FS-6005 --resolve
Conflicts:
	libs/sofia-sip/.update
2013-11-27 21:21:45 +05:00
Anthony Minessale eed2a7aa86 fix regression from recent refactor that causes infinite loop on unexpected disconnect 2013-11-22 04:53:49 +05:00
Jeff Lenk 071fa4db65 FS-5986 --resolve fix download reference to windows libcelt 2013-11-20 07:36:57 -06:00
Jeff Lenk 86c63fb41d fix windows esl compile 2013-11-13 19:36:49 -06:00
Anthony Minessale 14b1656c8c doh 2013-11-14 01:49:06 +05:00
Anthony Minessale dfb5867766 fix build err 2013-11-14 01:38:10 +05:00
Anthony Minessale 9284a16237 cleanup ESL a little 2013-11-14 00:43:36 +05:00
Anthony Minessale ea3aa83fd6 remove condition for mem leak 2013-11-12 12:33:44 -06:00
Moises Silva 35413ec77d freetdm: ftmod_analog_em: Remove constant CAS debug log 2013-11-08 19:08:14 -05:00
Moises Silva 2f6ccf659c Merge branch 'v1.2.stable' into v1.2.stable-em_management
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
2013-11-08 02:04:58 -05:00
Moises Silva 3a162334fe freetdm: E&M: Set the line offhook when suspended 2013-11-03 20:22:41 -05:00
Moises Silva 53d16f6193 freetdm: ftmod_zt: Refactor event processing to store OOB events that arrive during read/write operations 2013-11-01 02:07:10 -04:00
Moises Silva e945042c4d mod_freetdm: Handle read errors gracefully when the device is dead already 2013-11-01 01:16:49 -04:00
Moises Silva d0f18e4a2c freetdm: Fix hangup supervision on inbound calls for Analog E&M 2013-11-01 00:27:10 -04:00
Anthony Minessale 282808c26a add channel to logline 2013-10-31 11:21:47 -05:00
Moises Silva 7a3cc7c9af Merge remote branch 'origin/v1.2.stable' into v1.2.stable-em_management 2013-10-22 10:06:42 -04:00
Moises Silva fa1a1bfbaf freetdm: Added CAS hangup bit checking to the E&M signaling module 2013-10-22 00:52:59 -04:00
Travis Cross ddf44c089a 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:42:27 +00:00
Michael Jerris 0f0816aac2 FS-5819: configure fix for new clang detection and adjust cflags for building with newest clang 2013-10-15 09:34:33 -07:00
Anthony Minessale 9764fb33cd FS-5855 please try lastest HEAD
Conflicts:
	libs/sofia-sip/.update
2013-10-08 23:05:45 +05:00
Moises Silva 01b02acfae ftmod_analog_em: Block/unblock signaling when a span is stopped/started 2013-10-06 20:51:31 -04:00