Commit Graph

612 Commits

Author SHA1 Message Date
Travis Cross fdc9e7f8b6 work around libzrtp API mistake for VS
libzrtp's sas_is_verified field is a uint32_t, but zrtp_verified_set
expects a uint8_t.  This is a boolean field, so it doesn't matter one
way or the other.  gcc doesn't care, but Windows Visual Studio
apparently throws a warning about this.
2012-05-17 05:40:57 +00:00
Travis Cross 7bd9efc7f5 use the typedef for an enum rather than unsigned
The callback here receives both zrtp_protocol_event_t and
zrtp_security_event_t events.  The latter is numbered contiguously to
the former.  Still, it's a bit confusing to have to pick one as a
type, but apparently this fixes a warning on Visual Studio on Windows.

Thanks to Jeff Lenk.
2012-05-16 21:26:50 +00:00
Travis Cross 31e0e17d6b make some ZRTP-related integer casts explicit
...to satisfy Windows Visual Studio.  Thanks to Jeff Lenk.
2012-05-16 21:05:41 +00:00
Anthony Minessale 76c0201e89 dtmf tweak 2012-05-08 12:52:52 -05:00
Anthony Minessale 845639025c FS-4122 2012-04-20 08:04:32 -05:00
Anthony Minessale 677b223579 FS-4122 --resolve this fixes the issue and eliminates the delay unless you configure it to have some 2012-04-18 09:56:06 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Ken Rice 4307bee1e5 FS-4100 --resolve 2012-04-11 09:10:56 -05:00
Anthony Minessale 995ae2621c FS-3769 --resolve 2012-04-10 16:17:16 -05:00
Travis Cross 393b63b7bd integrate in-tree libzrtp into the build system
Thanks to Ken Rice for working with me late into the night to get this
done.
2012-04-05 04:10:55 +00:00
Anthony Minessale 07122bd17c FS-4032 --resolve please try to avoid the whitespace changes by using git diff -w 2012-03-27 15:53:09 -05:00
Anthony Minessale a239914926 addition to a6a3ff1dc5 2012-03-26 10:53:39 -05:00
Anthony Minessale a6a3ff1dc5 add another case to flush check 2012-02-28 09:51:57 -06:00
Anthony Minessale 62c6855f28 only flush on break when its a blocking situation part 1 2012-02-27 13:28:27 -06:00
Anthony Minessale 3a0767865d only flush on break when its a blocking situation 2012-02-27 13:26:50 -06:00
Anthony Minessale 812e5e9a26 FS-2216 2012-01-26 16:54:27 -06:00
Brian West d72a54ffe8 Improve the on off switch in ZRTP thanks jim 2012-01-24 23:39:52 -06:00
Mathieu Rene 3ffa7915c3 switch_rtp: fix audio glitches in jingle streams since ICE packets do not interrupt the RTP stream, we do not want to return a CNG frame when we get one 2012-01-23 11:01:24 -05:00
Anthony Minessale ecfc3bfe71 FS-3785 --resolve 2011-12-28 15:27:44 -06:00
Anthony Minessale a58742dc89 FS-2008 fix this patch to not consume memory getting variables 2011-12-16 09:16:37 -06:00
Marc Olivier Chouinard 442f4d2522 FS-3766 --resolve 2011-12-16 07:35:05 -05:00
Marc Olivier Chouinard 0a463b0c3c FS-949 --resolve 2011-12-15 19:13:09 -05:00
Marc Olivier Chouinard d1506e07cb FS-2008 --resolve 2011-12-15 14:44:25 -05:00
Anthony Minessale bc968ca8ad fix queued dtmf on channels with no timer issue 2011-11-14 12:37:45 -06:00
Anthony Minessale 9e09483589 add manual_rtp_bug gen_one_gen_all to prevent rtp passthru to break the *S* word.. 2011-10-07 10:40:30 -05:00
Anthony Minessale f4fa0c0efe OMFG really? I had this right then i comitted it wrong.... 2011-10-04 20:17:12 -05:00
Anthony Minessale 8e2793b45e another regression stemming from the series of commits to make stupid sonus happy 2011-10-04 18:02:34 -05:00
Jeff Lenk ef2f87deb2 fix trivial build error on windows 2011-09-09 16:08:47 -05:00
Anthony Minessale cb9abe0268 add new flag to frames to denote pass thru frames that are not audio 2011-09-09 13:56:04 -05:00
Anthony Minessale 0c066f063c DTMF stands for Devil Took My Fone 2011-09-09 12:02:15 -05:00
Anthony Minessale be4d36e3c6 OMFG one annoying bang 2011-09-09 11:34:41 -05:00
Anthony Minessale aea22cd4b7 add RTP_BUG_ACCEPT_ANY_PACKETS to disable dropping invalid packets for interop with Oracle CCA 2011-09-08 08:57:28 -05:00
Anthony Minessale c6c247d35c FS-3543 --resolve nevermind, found it 2011-09-06 11:30:28 -05:00
Anthony Minessale bff473bf32 antibiotics for our latest sonus infection 2011-08-31 19:30:58 -05:00
Anthony Minessale 8f67d2fbfb typo 2011-08-31 13:52:21 -05:00
Anthony Minessale bdad0e1713 tweak behaviour on rfc2833 a tad for the sake of interop with sonus who can't stand the idea of any gaps in timestamps 2011-08-31 12:04:02 -05:00
Anthony Minessale 6a5f6e5178 send mark bit when resuming audio after 2833 and resume sending from write side to avoid any double writes 2011-08-30 15:00:07 -05:00
Anthony Minessale 61ab84396b add new channel cap flag to indicate you can support queueable dtmf delay aka parsing w and W and implement it in the RTP stack and sofia endpoint 2011-08-29 11:04:38 -05:00
Anthony Minessale b426ec0bfa FS-2217 --resolve this looks ok and is probably useful 2011-08-25 09:27:39 -05:00
Anthony Minessale bf54c54823 adjustment to last commit 2011-08-24 15:52:40 -05:00
Anthony Minessale 0e5b694c44 add PAUSE_BETWEEN_DTMF rtp bug for sonus to delay sending 2833 digits so their buffering is not overwhealmed 2011-08-24 15:36:59 -05:00
Anthony Minessale 11d2cd1b49 print ip:port on rtp bind err 2011-08-01 23:55:58 -05:00
Anthony Minessale 123eaa524b fix rare t38 gateway issue 2011-05-12 10:32:39 -05:00
Anthony Minessale 1772fcb079 add largest_jb_size 2011-05-06 15:25:00 -05:00
Anthony Minessale a6b336e4cb add option to disable srtp with --disble-srtp 2011-05-02 11:33:57 -05:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Brian West 2330b340a4 fix segfault in zrtp srtcp 2011-04-12 19:34:04 -05:00
Anthony Minessale fd6089014e FS-3165 2011-03-22 12:07:06 -05:00
Anthony Minessale 37a48583b2 FS-3172 not so fast also need to do it after the secure decoders for srtp/zrtp 2011-03-21 15:03:44 -05:00
Anthony Minessale e657e32fca FS-3172 this also fixes the incorrect usage of L16 on payload 10 which may or may not break interop with other sip devices if we do it right. also added rtp_disable_byteswap variable that can be set to false to disable byteswap when a device is encountered that is incompat (inluding all precious version of FS up till now) 2011-03-21 14:31:16 -05:00
Anthony Minessale 069f5f7d42 FS-3075 2011-03-18 16:59:00 -05:00
Anthony Minessale db7933e72b jitter buffer sanity checks 2011-03-17 22:29:16 -05:00
Anthony Minessale 59da356d06 fix mistake from earlier commit and improve flow of dtmf through a bridge when timer is disabled 2011-03-09 20:06:32 -06:00
Anthony Minessale 2a35dfb51e add rtp-notimer-during-bridge (alternative to rtp-autoflush-during-bridge 2011-03-09 15:17:26 -06:00
Anthony Minessale ffca600f4c more like this 2011-02-25 16:15:40 -06:00
Jeff Lenk 4020a202d7 doh correction 2011-02-25 15:50:24 -06:00
Jeff Lenk 9a3cf6015b trivial compiler warning fix 2011-02-25 15:39:42 -06:00
Anthony Minessale add9d26ac5 fix regression in video from commit c565501f55 2011-02-25 15:20:04 -06:00
Anthony Minessale d59d41d7b4 add param to jb to try to recapture latency (disabled by default) 2011-02-25 11:59:45 -06:00
Anthony Minessale 61d3c56fde fix jb + no timer situations 2011-02-24 15:29:22 -06:00
Anthony Minessale 1ba1c57eff move jb debug to level 8 2011-02-21 13:28:41 -06:00
Anthony Minessale 38b430f43f FS-3057 2011-02-21 10:51:26 -06:00
Anthony Minessale f8d326de20 FS-3057 tested on linux 2011-02-18 17:26:58 -06:00
Anthony Minessale 097caed43f tolerate dtmf where there is no start packet and only end packets 2011-02-18 16:54:51 -06:00
Anthony Minessale c565501f55 tell rtp stack about what remote payload type to expect when the receiving end follows the stupid SHOULD as WONT and sends a different dynamic payload number than the one in the offer 2011-02-15 16:09:58 -06:00
Anthony Minessale 0bce777a4a fix regression in rtp stack trying to avoid broken clients who send the wrong payload type, we were eating the stun packets in jingle calls 2011-02-14 14:07:46 -06:00
Anthony Minessale 88d410d314 fix uuid_jitterbuffer edge case debugging a non-existant jb causing a seg 2011-02-11 20:15:06 -06:00
Anthony Minessale 36f6218b8b add sanity check on jitterbuffer debug 2011-02-04 10:58:26 -06:00
Anthony Minessale 4ae8282e6c fix possible bad pointer in global vars (please test) 2011-02-02 15:43:26 -06:00
Brian West e0ed0008b1 Fix ZRTP 2011-01-21 15:08:26 -06:00
Michael Jerris 3fa3e11ca2 FS-3002: handle 2833 in do_flush instead of dropping valid dtmf 2011-01-21 16:03:32 -05:00
Anthony Minessale fd984d03bb D'oh Over zealous packet eating 2011-01-20 17:52:54 -06:00
Anthony Minessale b235979766 <jedi wave>You don't need to see this patch</jedi wave> 2011-01-13 12:35:39 -06:00
Anthony Minessale fe1711fdba eat rtp frames with the wrong payload type number 2011-01-12 20:02:49 -06:00
Brian West cf253c35bc zrtp tweak for sas relay 2011-01-11 15:31:40 -06:00
Anthony Minessale 316963c594 treat EINTR returns as a BREAK (now mapped to SWITCH_STATUS_INTR), we appriciate the interrupted syscalls but we would like to continue working properly 2011-01-11 15:09:03 -06:00
Anthony Minessale a9366e4485 doh 2011-01-10 13:20:38 -06:00
Anthony Minessale a8b2840f2b little more on the DTMF commit 2011-01-07 17:53:09 -06:00
Anthony Minessale b3fc001e6c add rtp_bug IGNORE_DTMF_DURATION to speed up dtmf detection of RFC2833 on strange carriers 2011-01-07 16:04:24 -06:00
Anthony Minessale 181b543b0c add auto-jitterbuffer-msec param and auto-disable the jitterbuffer when briding to another channel who also has a jitterbuffer so both legs will disable during a bridge 2011-01-05 16:25:14 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Anthony Minessale 75198fe4cb audio adjustments 2010-12-23 13:18:41 -06:00
Anthony Minessale 34a0ca5096 drop rtp frame that was already replaced with a cng frame 2010-12-22 20:38:57 -06:00
Anthony Minessale 90e58696fe fix dtmf issue with jb on 2010-12-22 12:22:00 -06:00
Anthony Minessale a3b01c195b rtp adjustments when using jitterbuffer 2010-12-21 15:35:43 -06:00
Jeff Lenk 416f6388c3 windows build fixes for last commit 2010-12-15 10:37:57 -06:00
Anthony Minessale 2c8d5d8ec9 use our version for better compat 2010-12-15 10:22:45 -06:00
Anthony Minessale e9958c5b0c more jb work, add debug command and logging (sorry jlenk if this breaks win32) 2010-12-14 23:46:26 -06:00
Anthony Minessale 7e047c3fd1 more ongoing work on jb 2010-12-14 00:15:36 -06:00
Anthony Minessale 009c41d460 add new function to init an empty switch_sockaddr_t to avoid an unnecessary dns lookup on 0.0.0.0 2010-12-11 11:41:19 -06:00
Anthony Minessale d547096164 dramatic jitterbuffer changes 2010-12-10 17:47:46 -06:00
Anthony Minessale 42a4a3dedf revert FS-2859 2010-11-18 18:24:32 -06:00
Anthony Minessale 0a11b9b433 FS-2859 2010-11-18 16:23:01 -06:00
Anthony Minessale 588a5cee03 update 2010-11-10 18:09:04 -06:00
Anthony Minessale b278dd2379 add manual_rtp_bugs to profile and chan var and 3 new RTP bugs SEND_LINEAR_TIMESTAMPS|START_SEQ_AT_ZERO|NEVER_SEND_MARKER
RTP_BUG_SEND_LINEAR_TIMESTAMPS = (1 << 3),

	  Our friends at Sonus get real mad when the timestamps are not in perfect sequence even during periods of silence.
	  With this flag, we will only increment the timestamp when write packets even if they are eons apart.

	RTP_BUG_START_SEQ_AT_ZERO = (1 << 4),

	  Our friends at Sonus also get real mad if the sequence number does not start at 0.
	  Typically, we set this to a random starting value for your saftey.
	  This is a security risk you take upon yourself when you enable this flag.

	RTP_BUG_NEVER_SEND_MARKER = (1 << 5),

	  Our friends at Sonus are on a roll, They also get easily dumbfounded by marker bits.
	  This flag will never send any. Sheesh....
2010-11-10 16:58:36 -06:00
Anthony Minessale 794db40e52 refactor STFU a bit 2010-11-09 11:49:07 -06:00
Marc Olivier Chouinard 9241a35e61 switch_rtp: Show the UUID of the session in the log when sending RFC2833 DTMF packet and when receiving a RTP DTMF 2010-10-22 22:16:12 -04:00
Anthony Minessale 84a383fe0f improve video support for new polycom phones 2010-09-29 14:14:41 -05:00
Michael Jerris 6c1070ea50 FS-2009: fix coredump in rtcp socket handling 2010-09-27 04:35:17 -04:00
Michael Jerris bc30415380 FSRTP-19: Fix SWITCH_IO_FLAG_NOBLOCK needed for mod_sangoma_codec 2010-09-25 10:20:09 -04:00