Commit Graph

765 Commits

Author SHA1 Message Date
Anthony Minessale 087b2e4f30 revert part of 390e6713cc 2014-03-10 14:42:52 -05:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Anthony Minessale a491df05f1 declinatio mortuus obfirmo! 2014-03-07 03:35:36 +05:00
Anthony Minessale 390e6713cc part of last patch 2014-03-07 02:59:09 +05:00
Anthony Minessale e9847afe22 feed all packets to jitterbuffer when enabled to absorb bursts and improve smoothing and delay protection 2014-03-07 02:48:56 +05:00
Anthony Minessale e5b291514c FS-5755
rtp_secure_media=mandatory
rtp_secure_media=optional
rtp_secure_media=mandatory:AES_CM_256_HMAC_SHA1_80,AES_CM_256_HMAC_SHA1_32
rtp_secure_media=optional:AES_CM_256_HMAC_SHA1_80
rtp_secure_media=forbidden

true implies mandatory
false implies forbidden
not set implies optional

rtp_secure_media_inbound or rtp_secure_media_outbound take precedence and are treated the same way based on leg direction
2014-03-06 07:34:47 +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 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
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
Anthony Minessale 719850e508 FS-5895 --resolve 2014-03-01 04:55:04 +05: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
Anthony Minessale 8cee05987e check the jitter stats after the jitter buffer when its enabled 2014-03-01 02:50:17 +05:00
Brian West 7b5d17802f FS-6268 usinga macro to find the rtp_session_name its better on the eyes 2014-02-27 10:42:43 -06:00
Brian West 378caebc9a fix --disable-srtp 2014-02-26 08:05:22 -06:00
Anthony Minessale 5646957c5b FS-5937 2014-02-26 04:06:59 +05:00
Brian West 463f32c4e3 FS-5937: i need to build a test rig for this, go go gadget iphone commit 2014-02-24 23:44:44 -06:00
Jeff Lenk 7aff64b2d2 fix compiler warning vs2010 2014-02-24 23:29:15 -06:00
Marc Olivier Chouinard 780890b5de FS-6240 --resolve 2014-02-24 17:06:01 -05:00
Anthony Minessale a900eadf5b FS-5937 --resolve 2014-02-24 14:56:49 -06:00
Anthony Minessale 97e234048c FS-6204 refactor some dtls code to generate a 1024 bit cert suitable for dtls in all version of chrome 2014-02-19 07:05:37 +05:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 03c723cfd1 FS-6195 --resolve 2014-02-06 22:24:05 +05:00
Anthony Minessale 5228e02b19 FS-5544 after going over this with a fine tooth comb, all I could find was some issues behind asymetrical nat. If there is a real problem here, post the flipping logs I asked for days ago....... 2014-02-04 11:56:30 +05:00
Travis Cross 59d10edd79 Fix build on x86/i386 systems 2014-01-31 17:49:44 +00:00
Jeff Lenk 7b44e5b27c compiler warnings 2014-01-29 20:46:38 -06:00
Anthony Minessale 4591088971 remove extra debug 2014-01-30 05:37:05 +05:00
Anthony Minessale 32b2a45efc add more rtp statistics with several new vars for cdr processing in_jitter_min_variance in_jitter_max_variance in_jitter_loss_rate in_jitter_burst_rate in_mean_interval in_flaw_total in_quality_percentage in_mos 2014-01-30 05:08:34 +05:00
Anthony Minessale 0e68325319 only send cng when its setup 2014-01-25 03:51:27 +05:00
Anthony Minessale 358b5db0e4 block all possible routes to write data during ice and dtls negotiation 2014-01-25 03:48:32 +05:00
Anthony Minessale 6fef880f12 FS-5675 --resolve 2014-01-24 00:23:58 +05: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
Anthony Minessale 8dfbd91a3d fold version macros into runtime functions to avoid cascade rebuilds when modifying the core 2014-01-17 01:54:47 +05:00
Anthony Minessale f4a4ba1716 FS-5544 --resolve 2014-01-15 21:20:06 +05:00
Anthony Minessale 1b9c21ee88 some webrtc tweaks 2014-01-15 07:04:24 +05:00
Anthony Minessale e71dabae50 FS-6007 2013-12-31 00:21:51 +05:00
Jeff Lenk 910c661508 fix trivial compiler warning for last commit 2013-12-27 14:52:52 -06:00
Anthony Minessale de65c19c3c FS-6007 FS-5083 FS-4514 --resolve 2013-12-28 01:39:41 +05:00
Anthony Minessale 6c5a17894c accept any payload when no payload map is present 2013-12-05 16:35:49 -06:00
Anthony Minessale 2747660269 FS-5959 FS-5958 2013-11-25 12:08:17 -06:00
Anthony Minessale b8dc07132a FS-5959 i hate this ticket 2013-11-22 08:55:45 +05:00
Anthony Minessale c07a6b6b9e add polycom support to multicast paging, broadcast all formats at once to support most every popular phone at once 2013-11-22 04:52:11 +05:00
Anthony Minessale ccaa3ae732 FS-5959 2013-11-21 01:38:21 +05:00
Anthony Minessale a4dd6ccb42 fix some issues in passthrough of fec packets 2013-11-09 23:02:11 +05:00
Anthony Minessale bb9adff511 rework media code 2013-11-08 03:48:00 +05:00
Anthony Minessale 2589bf7750 minor webrtc tweaks 2013-11-02 01:21:35 +05:00
Anthony Minessale b0d95efd09 dont byteswap the extended bit headers in the actual packet so it can properly echo back without modification 2013-10-31 17:22:09 -05:00
Anthony Minessale fd97365d4a detect ca-bundle.crt for chain cert to use in dtls connections 2013-11-01 02:22:11 +05:00
Anthony Minessale 88a13f1fc2 update err msg 2013-10-29 13:40:27 -05:00
Anthony Minessale 562ef81dd9 fix webrtc rtcp issue on reinvite 2013-10-29 03:44:07 +05:00
Anthony Minessale ce83817318 webrtc tweaks 2013-10-28 23:39:33 +05:00