Commit Graph

5849 Commits

Author SHA1 Message Date
Steve Underwood ddf85356e3 A line got deleted somewhere along the line. I didn't do it, honest.
Its them damn gremlins.
2012-09-11 14:30:50 -04:00
Jeff Lenk f273fc1b9f FS-4526 --resolve 2012-09-11 14:29:58 -04:00
Jeff Lenk 6f2c1d7627 FS-4543 --resolve thanks Peter 2012-09-11 14:29:58 -04:00
Steve Underwood a82b28c37f Fixed a typo in the fixed point image translate code 2012-09-11 14:29:58 -04:00
Anthony Minessale ad1f0a1288 fix color coding to be OS appropriate 2012-09-11 14:29:58 -04:00
Robert Jongbloed bfe4c17743 Updated mod_opal to latest stable OPAL version.
Enhancements to trace logging, include threads and context ID.

Changed default opal_conf.xml to allow more than just G.711 uLaw and not to clutter log file with debug logs.

Added to opal_conf.xml item for "disable-transcoding".

Updated build/buildopal.sh to use correct ./configure items for PTLib, allow for something other than standard install directory for PTLib/OPAL and be able to easily bind to a specific release of PTLib/OPAL.
2012-09-11 14:29:57 -04:00
Anthony Minessale a7fadffc16 FS-4079 FS-4540 please update to this version 2012-09-11 14:29:57 -04:00
Stefan Knoblich c1f4e7f719 FreeTDM: Add span start/stop callbacks to ftdm_io_interface.
Callbacks are invoked from ftdm_span_start/_stop().
I/O is started before SIG and shut down in reverse order.

This is needed for ftmod_misdn, to move the mISDN message handling
into a separate thread (solving the mISDN socket vs. FreeTDM API issues).

With these callbacks, the I/O thread can be started after the span I/O configuration
has been (successfully) completed and stopped before destroying the span.

NOTE: Both SIG and I/O callbacks are called with the span mutex locked,
so threads created or destroyed synchronously in either of the custom
start/stop functions, can not use ftdm_span_*() functions that lock
the span mutex (e.g. ftdm_span_get_channel_count()).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-09-11 14:29:57 -04:00
Stefan Knoblich 400e6b6447 spandsp: Fix libjpeg checks for --enable-builtin-tiff builds.
The --enable-builtin-tiff option appends libs/tiff-3.8.2/libtiff/libtiff.la
to LIBS, causing the AC_CHECK_LIB([jpeg]...) check to fail, because
libtiff.la does not exist at configure time.

Temporarily store tiff and jpeg libs in TIFF_-/JPEG_LIBS variables and
append them to LIBS after all library checks have run.

Example error output:
    configure:20049: checking for jpeg_start_compress in -ljpeg
    configure:20074: cc -o conftest -O2 -pipe -fno-strict-aliasing    -L/usr/local/lib conftest.c -ljpeg  -lm  /usr/home/ports/net/freeswitch-core-devel/work/freeswitch-1.2.1/libs/tiff-3.8.2/libtiff/libtiff.la >&5
    cc: /usr/home/ports/net/freeswitch-core-devel/work/freeswitch-1.2.1/libs/tiff-3.8.2/libtiff/libtiff.la: No such file or directory

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-09-11 14:29:57 -04:00
Steve Underwood afbdb08fec Improvements to image translation 2012-09-11 14:29:56 -04:00
Anthony Minessale b140bfbf9c stub for mod_html5 2012-09-11 14:29:56 -04:00
Anthony Minessale 35e6368602 libwebsocket inline configure 2012-09-11 14:29:56 -04:00
Anthony Minessale 5a6d3cf43e fix libwebsocket build 2012-09-11 14:29:56 -04:00
Jeff Lenk ffebc6ac9c FS-4504 vs2010 only - plus mod_sofia fix - anybody want to help with 2008 2012-09-11 14:29:56 -04:00
Michael Jerris c920135658 add ws 2012-09-11 14:28:22 -04:00
David Yat Sin 83d0f5055e Fix for NFAS when one of the d-channels are down 2012-09-11 14:25:07 -04:00
Jeff Lenk cdc614a48f FS-4517 --resolve 2012-08-14 00:26:29 -05:00
Jeff Lenk ab6e36283b FS-4219 --resolve 2012-08-14 00:26:24 -05:00
Steve Underwood 790c4d6eaa Improvements to T.4 end of image handling, and the related tests.
A lot of tiny tidy up edits
2012-08-14 00:25:50 -05:00
Steve Underwood 812dacfb5c Various little tweaks
A bug in end of image handling fixed, which could mean some T.85 images would
screw up.
2012-08-14 00:25:22 -05:00
Stefan Knoblich 8a98baa696 ftmod_isdn: Avoid stack smashing buffer overflow in isdn_tones_run().
The len variable can, in certain situations (large burst of incoming non-SLIN audio),
exceed the size of the on-stack frame buffer, which causes ftdm_buffer_read_loop() to
overwrite the dt_buffer pointer.

Use ftdm_min() to make sure len (after conversion to SLIN units) isn't larger
than the frame buffer size.

Also adds are couple more code comments.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 00:25:07 -05:00
Jeff Lenk d1db17b486 FS-4219 -- resolve windows version string. thanks Peter 2012-08-14 00:25:02 -05:00
Jeff Lenk 3a478a61aa FS-4504 vs2008 pro still need express 2012-08-14 00:24:42 -05:00
Steve Underwood adece695cd Fixed a misplaced #endif that only causes trouble when you hit the right
combination
2012-08-14 00:24:02 -05:00
Steve Underwood ae321660d9 A couple of typos in spandsp
Improvements to image flattening in spandsp's image translate code
2012-08-14 00:23:56 -05:00
Jeff Lenk f11d471ff6 FS-4504 - tweak 2012-08-14 00:23:26 -05:00
Jeff Lenk dfad2a14bd FS-4504 vs2010 only - plus mod_sofia fix - anybody want to help with 2008 2012-08-14 00:22:43 -05:00
Steve Underwood 806a994246 Fixed harmless typos in comments 2012-08-14 00:20:12 -05:00
Steve Underwood 1a4f1c97de Image translate moves forward a little, towards colour support 2012-08-14 00:20:03 -05:00
Steve Underwood ffcf6443f0 Tweaks 2012-08-14 00:19:46 -05:00
Steve Underwood 9732411dc8 Someone's been doing something odd to t30.h :-\
(cherry picked from commit 65ffaa8ca9)
2012-08-10 18:03:22 +02:00
Stefan Knoblich f6e0b50cf3 mod_freetdm: Fix typo.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-10 17:21:52 +02:00
SwK 3818cae3e6 Work around for compiler issues on centos 2012-08-07 14:46:23 -04:00
Stefan Knoblich 964d14c012 ftmod_isdn: Fix channel state handling in NT mode w/ early disconnect.
In this particular case: NO_ROUTE_DESTINATION caused by missing context.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-07 17:22:17 +02:00
Stefan Knoblich c6cf92d766 ftmod_isdn: Use ftdm_time_t for dialtone timeout.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-07 17:22:17 +02:00
Steve Underwood a117fd8fa3 Avoid quirky complaints about using the top bit of an integer as an enum 2012-08-07 23:06:17 +08:00
Steve Underwood 3ae2bdf4aa Improvements to dithering down colour and gray scale images to bi-level
images, for images with different illuminants.
2012-08-07 22:34:32 +08:00
Steve Underwood 04e93f4c0b Fix fixed point builds of spandsp, and improve logging of modem performance during tests 2012-08-05 22:20:39 +08:00
Steve Underwood 72566f6a3f Fixed V.22bis fixed point builds 2012-08-05 18:39:41 +08:00
Steve Underwood f088d971f3 Sorted out fixed point builds of the V.22bis modem 2012-08-05 18:38:47 +08:00
Jeff Lenk d1c3f910a6 windows -fix build for recent spandsp changes 2012-08-03 16:46:48 -05:00
Steve Underwood e523076274 FAX T.6 decompression fixed for images with black in the last pixel of lines.
Colour and grey images can down be dithered down to bi-level images for transmission as faxes.
More movement towards T.42 support
2012-08-04 03:45:09 +08:00
Steve Underwood e35221b981 Fixed the way T.85/T.85-L0 selection is handled when decoding DCS messages 2012-08-03 20:26:30 +08:00
Stefan Knoblich ac0eec9de4 ftmod_isdn: Fix set-but-unused warning.
Resolves OPENZAP-189

Fixes:
	src/ftmod/ftmod_isdn/ftmod_isdn.c: In function 'ftdm_isdn_931_34':
	src/ftmod/ftmod_isdn/ftmod_isdn.c:902:21: error: variable 'status' set but not used [-Werror=unused-but-set-variable]

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-03 12:33:40 +02:00
Stefan Knoblich dc1422998a FreeTDM: Add FTDM_XINT64_FMT 64bit hex format string and use it in ftmod_misdn.
Fixes:
  src/ftmod/ftmod_misdn/ftmod_misdn.c: In function 'misdn_handle_mph_information_ind':
  src/ftmod/ftmod_misdn/ftmod_misdn.c:871:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'uint64_t' [-Werror=format]

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-27 14:33:46 +02:00
Stefan Knoblich 5ebc68fb51 ftmod_isdn: Fix per-channel teletone buffer offset wraparound.
Do a "soft" wraparound with modulo, removes the ~0.5s tone glitch.
(Multiply ts.rate (samples) by two to match the offset unit (bytes, 2 per sample).)

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-26 09:14:51 +02:00
Stefan Knoblich 5367b96153 ftmod_isdn: Rework teletone buffer offset handling in isdn_tones_run().
Store the offset in the teletone buffer in the b-channel private data.

An NT-mode setup with ftmod_misdn showed severe (dial-)tone distortions
in a sound editor (330Hz sine wave phase errors), caused by
using a global teletone buffer offset.

Switching to a per-channel offset, that is advanced by the amount
of data actually written to the channel, removes (almost) all
distortions.

There is still a minimal phase error every ~500ms (audible) that
needs more investigating.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-26 01:21:47 +02:00
Stefan Knoblich 7a93ae2d95 FreeTDM: Add ftdm_offset_of() and ftdm_container_of() macros.
Might as well import these too...

ftdm_offset_of() - Get offset of member in structure.

ftdm_container_of() - Get pointer to enclosing structure from pointer to structure member.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:10:35 +02:00
Stefan Knoblich fb57605df7 ftmod_misdn: Drop custom MIN(),MAX(),CLAMP() macros and use the common ones.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:08:51 +02:00
Stefan Knoblich c3d13d5e00 ftmod_libpri: Drop custom MIN() macro and use common ftdm_min()
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:07:39 +02:00