Commit Graph

34546 Commits

Author SHA1 Message Date
Travis Cross a6c90763ec Add voicemail parameter storage-dir-shared
If this is set to true (default false) we assume the storage-dir is
shared, organized by realm/domain, with uses other than voicemail, so
we adopt a directory structure of:

  <storage_dir>/<realm>/voicemail/<id>
2014-02-11 17:40:58 +00:00
Travis Cross b9a8583178 Add vm-domain-storage-dir param
This replaces the semantics of the storage-dir parameter without the
deprecation notice.  The behavior of storage-dir never should have
been deprecated, though it was probably correct to deprecate the name
itself.

Rather than having both vm-storage-dir and vm-domain-storage-dir it
might be nice if the config system could just notice at what level it
was defined and do the right thing.  Indeed, this is why I'd left
things as-is for so long.

But as Master Foo famously said, "which one will reach the other side
of the river: the one who dreams of a raft, or the one that hitchhikes
to the next bridge?"

FS-5329
2014-02-11 15:50:50 +00:00
Travis Cross d3b9aaba60 Add mod_sofia support for setting socket TCP keepalive
Some OSes like linux provide a mechanism for sending TCP keepalive
pings.  Sofia provides its own mechanism for doing this in userspace.
We shouldn't conflate these two mechanisms.

FS-6104
2014-02-11 06:27:29 +00:00
Travis Cross 8b7d58ddf8 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 a0e9639a1f should
have been.

FS-6104
2014-02-11 06:27:20 +00:00
Travis Cross 2b064e6393 Add additional debugging output to keepalive handling 2014-02-11 05:40:41 +00:00
Travis Cross 3ae189ca3f 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 05:33:25 +00:00
Anthony Minessale c52ac4817c FS-6128 FS-6200 --resolve allocating the sofia_private on the nua_handle seems to lead to memory corruption, changing it back to malloc as done in the version before the regression 2014-02-11 04:05:40 +05:00
Anthony Minessale 386a95f47d FS-6208 --resolve that patch is correct but this other code will protect the seg in either case 2014-02-10 21:44:19 +05:00
Chris Rienzo 259337ca57 mod_http_cache: fixed validation of S3 URL 2014-02-10 08:54:43 -05:00
Jeff Lenk adcf3fb26b vs express attempt to fix build order of xmltok 2014-02-09 22:54:05 -06:00
Travis Cross db0c3ab403 Add some hardening to the debian build 2014-02-09 23:51:42 +00:00
Travis Cross 0c41db9fb1 Add support for setting custom LDFLAGS 2014-02-09 23:49:29 +00:00
Travis Cross 4106471020 Reorder build flags variables 2014-02-09 23:49:29 +00:00
Travis Cross 78be57fb98 Use simply-expanding variables for build flags 2014-02-09 23:49:29 +00:00
Jeff Lenk 40ec0c9e45 FS-6157 --resolve 2014-02-09 13:34:12 -06:00
Jeff Lenk d5324cfdb3 disable windows compiler warning for srtp 2014-02-09 10:37:14 -06:00
Peter Olsson d655031534 Improvements to last commit, this should make things work better on all platforms 2014-02-09 14:19:36 +01:00
Peter Olsson 05144df25a FS-6194 --resolve 2014-02-09 13:10:44 +01:00
Anthony Minessale dd9b729f5e FS-5994 it looks like its microseconds 2014-02-09 04:23:01 +05:00
Anthony Minessale aae30e358c swigall master 2014-02-09 00:14:12 +05:00
Steve Underwood b2cca974c1 Second attempt to fix the use of aligned_alloc with BSD 2014-02-08 22:36:29 +08:00
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
Anthony Minessale 900db14f1d FS-6203 --resolve 2014-02-07 22:34:34 +05:00
Anthony Minessale 0539cc166b FS-6202 --resolve 2014-02-07 22:13:23 +05:00
Anthony Minessale 67d250324a FS-6198 --resolve 2014-02-07 03:58:55 +05:00
Chris Rienzo f482463440 mod_rayo: fix segfault in prompt component 2014-02-06 15:08:33 -05:00
Anthony Minessale 03c723cfd1 FS-6195 --resolve 2014-02-06 22:24:05 +05:00
Anthony Minessale 4c068c637d FS-6197 --resolve the line numbers in the trace do not match the version you reported make sure you know what version you are using 2014-02-06 21:47:24 +05: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
Brian West 3fae719589 Update in-config docs 2014-02-06 08:58:48 -06:00
Travis Cross 57abca11a8 Support setting TLS cipher suites in mod_sofia
This adds a parameter tls-ciphers in which we can specify the TLS
cipher suite specification for OpenSSL.
2014-02-06 06:04:02 +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
Chris Rienzo 84f2199dea mod_rayo: fix message->call input validation 2014-02-05 23:19:47 -05:00
Chris Rienzo 86903757f6 FS-6192 --resolve 2014-02-05 22:25:39 -05:00
Travis Cross d4a13742ba Default to TLSv1 through TLSv1.2 if unspecified 2014-02-06 02:47:40 +00:00
Travis Cross 8c2c464bec Support setting enabled TLS versions in mod_sofia
Previously if tls-version was set to tlsv1 we supported only TLSv1,
but if it was set to sslv23 we supported all versions of TLS.  This
was a weird incorrectly documented behavior that we hope no one was
relying on.

Now we can pass a comma-separated list of TLS/SSL versions that we
would like to support in tls-version.

FS-5839 --resolve
2014-02-06 02:20:19 +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
Chris Rienzo fd0d91c2b6 FS-6092 --resolve mod_rayo - mixer with single call can be recorded 2014-02-05 17:03:19 -05:00
Chris Rienzo f0e38b68fd FS-6181 --resolve 2014-02-05 17:00:19 -05:00
Anthony Minessale a121665b14 FS-6190 --resolve slightly modified, please test 2014-02-06 02:31:56 +05:00
Anthony Minessale 6f52c5495b FS-5994 --resolve -- tips appriciated 2014-02-06 02:20:05 +05:00
Anthony Minessale 29d4e7e693 FS-6181 --resolve 2014-02-05 16:06:30 -05:00
Anthony Minessale 795718c149 FS-6191 --resolve 2014-02-06 01:51:57 +05:00
Anthony Minessale a24f9aa8bc no 2014-02-05 14:53:11 -06:00
Ken Rice a000749e70 whitespace cleanup 2014-02-05 14:02:03 -06:00
Travis Cross 8fa385b0d7 Make bypass-media-after-hold a media-option
FS-6186 --resolve

Thanks-to: Matteo Brancaleoni <mbrancaleoni@voismart.it>
2014-02-05 19:36:15 +00:00
Michael Jerris ee60781d6e FS-6189: this should put -lz in the right place. 2014-02-05 13:39:43 -05:00