Commit Graph

20742 Commits

Author SHA1 Message Date
Travis Cross d2edcad66e Merge Phil Zimmermann's libzrtp as a FreeSWITCH library
Thanks to Phil Zimmermann for the code and for the license exception
we needed to include it.

There remains some build system integration work to be done before
this code will build properly in the FreeSWITCH tree.
2012-03-31 23:42:27 +00:00
Ivo Kutts fcfa41e537 Help libzrtp build without ECC files
More build system work may be needed.
2012-03-31 23:26:07 +00:00
Philip Zimmermann c7e476402a Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH
Thanks to Travis Cross for much of the language here.

Signed-off-by: Philip Zimmermann <prz@mit.edu>
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-03-31 22:56:22 +00:00
Philip Zimmermann 7bacb6d473 Add AGPLv3 license with exception for FreeSWITCH
Thanks to Travis Cross for much of the language here.

Signed-off-by: Philip Zimmermann <prz@mit.edu>
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-03-31 22:56:22 +00:00
Viktor Krikun b3280ae276 Send empty SAS during enrollment and other improvements
(refs #25)
2012-03-31 22:56:22 +00:00
Viktor Krikun 9cd1409047 Add more unit-tests and bug-fixes for random-access ZRTP cache
(refs #24)
2012-03-31 22:56:22 +00:00
Viktor Krikun e8a376a87f First draft implementation of random-access cache
(refs #25)
2012-03-31 22:56:22 +00:00
Viktor Krikun be03cdc27a Add Cmockery unit-testing library as a backend for our automated tests
(closes #26)
2012-03-31 22:56:22 +00:00
Viktor Krikun c74f85f7ab Recheck and implement missing features in Acive-Passive logs
(closes #23)
2012-03-31 22:56:22 +00:00
Viktor Krikun fc97a91993 Add Android make file
(closes #22)
2012-03-31 22:56:21 +00:00
Viktor Krikun 589039481a Minor improvements in OSX build system 2012-03-31 22:56:21 +00:00
Viktor Krikun 58bd25c4bc Move ZRTP_SRTP_HASH_SHA1
ZRTP_SRTP_HASH_SHA1 was moved from public zrtp_hash_id_t to the
private srtp implementation. HMAC SHA1 constant was also renamed to
ZRTP_SRTP_HASH_HMAC_SHA1 in order to raise an error if the user tries
to use an old ZRTP_SRTP_HASH_SHA1 constant in a ZRTP session
configuration.
2012-03-31 22:56:21 +00:00
Viktor Krikun 6c980fb68c Update Xcode projects to the latest version of Xcode 4 2012-03-31 22:56:21 +00:00
Viktor Krikun f605e4e80d Add debug info in order to trace HMAC error in Zfone 2012-03-31 22:56:21 +00:00
Viktor Krikun 8f659bc9d5 Miscellaneous Xcode project change 2012-03-31 22:56:21 +00:00
Viktor Krikun ee5dac01e3 Miscellaneous updates 2012-03-31 22:56:16 +00:00
Viktor Krikun b218edc790 Changes for Visual Studio 2010 support and x64 2012-03-31 18:52:00 +00:00
Viktor Krikun a878a99fc6 Changes for Zfone on Windows x64 2012-03-31 18:51:59 +00:00
Viktor Krikun 50819e6934 Miscellaneous build changes 2012-03-31 18:51:59 +00:00
Viktor Krikun 7a04fbe4fd Windows build config changes 2012-03-31 18:51:59 +00:00
Viktor Krikun 5164d448dc Minor bug fixes per Xcode static analyses tools 2012-03-31 18:51:59 +00:00
Viktor Krikun 35f741d581 Changes to Xcode project files 2012-03-31 18:51:59 +00:00
Viktor Krikun e3831cf26e Increase default cache file path length to 256 characters 2012-03-31 18:51:59 +00:00
Viktor Krikun 5ae7ebc1f2 Fix mistaken NO_ZRTP_QUICK events after Hello received
(closes #20)
2012-03-31 18:51:46 +00:00
Viktor Krikun 5a61e580b9 Add libzrtp beta 2012-03-31 18:37:58 +00:00
Jeff Lenk 350b41fa19 more cleanup for new config changes on VS2008
and VS2010
2012-03-30 22:53:27 -05:00
Anthony Minessale 8618e22c9d FS-4053 try this 2012-03-30 14:24:50 -05:00
Anthony Minessale 2ab1605a88 ZRTP passthru mode code for phil 2012-03-29 18:37:15 -05:00
Ken Rice 172bba7723 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2012-03-29 16:15:27 -05:00
Ken Rice 394a59c512 FS-4042 fix a file path 2012-03-29 16:14:54 -05:00
Anthony Minessale ef9dfe42fc mirror back record-route header in options 2012-03-29 15:58:19 -05:00
Anthony Minessale 7384288ce1 added too many fields to this check 2012-03-29 15:27:42 -05:00
Anthony Minessale 67b65f95d0 FS-4038 --resolve 2012-03-29 12:13:59 -05:00
Anthony Minessale 221b82f1e9 FS-4053 try this 2012-03-29 11:36:07 -05:00
Steve Underwood 13fbaf7e0f Tweaks for spandsp 2012-03-29 23:33:11 +08:00
Anthony Minessale 7c7967fbae FS-4055 --resolve this was caused by corrupted db data, this patch will prevent it in the future 2012-03-29 10:07:34 -05:00
Anthony Minessale 175b6b223a FS-4049 working 2012-03-28 18:45:01 -05:00
Stefan Knoblich a856d81a06 ftmod_misdn: More reworking of b-channel audio tx handling.
Use the amount of audio data received in misdn_read() to determine how many
bytes we need to send to the b-channel (= how much free space is left
in the b-channel tx queue). (This is how libosmo-abis and LCR handle it too.)

A pipe is used as a poll()-able audio tx buffer (filled in misdn_write()):
FTDM_WRITE wait requests are currently poll()-ed on the input side of the pipe,
whereas FTDM_READ and _EVENT requests are poll()-ed on the b-channel socket itself.

For every N-bytes of audio data read from the b-channel in misdn_read(),
we try to get as much out of the tx pipe, convert it into the ISDN_P_B_RAW
format and send it to the b-channel socket.

If there's less than N-bytes left in the pipe, we fill the remaining buffer
with silence to avoid buffer underflows.

B-Channel handling overview:

  - misdn_wait(FTDM_WRITE) on audio pipe

  - misdn_write() put audio data into pipe

  - misdn_wait(FTDM_READ) for next incoming mISDN
    message on b-channel socket

  - misdn_read() handle mISDN event, for PH_DATA_IND:

      - Write data into channel buffer and convert
        to a/u-law using misdn_convert_audio_bits()

      - Try to fetch N-bytes from audio pipe

      - If not enough bytes in pipe: fill remaining space with silence

      - Convert audio to raw format

      - Send to b-channel (PH_DATA_REQ)

Known problems / bugs / further investigation:

   1. Bridge aborted by "Write Buffer 0 bytes Failed!" error from switch_core_io.c.
      This is "fixed" by _not_ setting the b-channel sockfd to non-blocking mode.

   2. Audio glitches (maybe caused by FTDM_WRITE misdn_wait() handling or blocking I/O on sockfd?)

   3. misdn_read() EBUSY error messages from sending data to b-channel sockfd after enabling channel.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-03-28 23:49:55 +02:00
Anthony Minessale d5e7e8491c FS-4049 alt patch 5 2012-03-28 16:00:11 -05:00
Anthony Minessale c4c46eece7 FS-4049 alt patch 4 2012-03-28 15:42:36 -05:00
Anthony Minessale c909ed6cf1 FS-4049 alt patch 3 2012-03-28 15:10:58 -05:00
Anthony Minessale 1932f852ee FS-4049 alt patch 2 2012-03-28 14:51:09 -05:00
Anthony Minessale cf47982e0e FS-4049 alt patch 2012-03-28 14:29:39 -05:00
Anthony Minessale 973a39e07f FS-4049 revert 2012-03-28 14:28:05 -05:00
Anthony Minessale 09bb0bab6a FS-4050 --resolve 2012-03-28 13:52:43 -05:00
Anthony Minessale 80b18bb266 FS-4049 2012-03-28 13:41:48 -05:00
Anthony Minessale fb1d45b4bb FS-4049 try this 2012-03-28 12:43:13 -05:00
Anthony Minessale ce75bf5aaa FS-4025 --resolve 2012-03-28 12:26:29 -05:00
Anthony Minessale 2baed0ab00 FS-4016 --resolve 2012-03-28 12:24:19 -05:00
Anthony Minessale 185f08ca56 revert 19d3e64636 2012-03-28 11:57:21 -05:00