Commit Graph

22034 Commits

Author SHA1 Message Date
Stefan Knoblich 548222f9f3 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-08-15 13:34:22 +02:00
Stefan Knoblich 431f7dd6bf 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-08-15 12:52:28 +02:00
Seven Du 376f137392 Fix rtp payload number and possibly other params, since we ALWAYS use PCMU all params should be hardcoded 2012-08-15 14:35:42 +08:00
Brian West 90ce980c61 STFU already 2012-08-14 21:10:43 -05:00
Anthony Minessale 0d05762085 FS-4079 revert 4ef9b3fe56 2012-08-14 17:06:02 -05:00
Anthony Minessale ed09914642 add email function to js 2012-08-14 11:10:26 -05:00
Steve Underwood 0b763a6286 Merge branch 'master' of git.freeswitch.org:freeswitch 2012-08-14 22:33:17 +08:00
Steve Underwood e30406cea6 Improvements to image translation 2012-08-14 22:32:30 +08:00
Stefan Knoblich eca5c0ad73 FreeSWITCH: Add WIN32 strerror_s() variant to custom switch_strerror_r() helper function and fix more strerror_r() users.
Convert mod_xml_cdr, mod_json_cdr and mod_conference to the new function.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 14:54:06 +02:00
Stefan Knoblich 8bcf3b4fb8 FreeSWITCH: Add switch_strerror_r() to fix problems with XSI and GNU variants of strerror_r().
GNU variant of strerror_r() returns char *, while the XSI version returns int.

To make things worse, glibc ships both and added a unused result warning
in recent versions (2.16) causing the build to fail.

Add our own custom wrapper that always returns a pointer to the message buffer
and additionally make XSI versions of strerror_r() GNU compatible by
returning "Unknown error xxx" if no error message is available.

Fixes:
    src/switch_rtp.c: In function 'rtp_common_read':
    src/switch_rtp.c:3313:15: error: ignoring return value of 'strerror_r',
    declared with attribute warn_unused_result [-Werror=unused-result]
    cc1: all warnings being treated as errors

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 14:11:44 +02:00
Jeff Lenk 3d9d42b798 FS-4517 --resolve 2012-08-13 21:31:46 -05:00
Jeff Lenk a293512f60 FS-4219 --resolve 2012-08-13 21:30:10 -05:00
William King 26cefbdb87 Fixing issue with which xml pointer used. oops. 2012-08-13 14:45:47 -07:00
Anthony Minessale a073221a6a building stub module 2012-08-13 15:50:52 -05:00
Anthony Minessale fa5113557b stub for mod_html5 2012-08-13 15:20:41 -05:00
Anthony Minessale 61ab0b8878 libwebsocket inline configure 2012-08-13 14:29:04 -05:00
Anthony Minessale a05e414c41 fix libwebsocket build 2012-08-13 14:15:06 -05:00
Anthony Minessale 4ef9b3fe56 FS-4079 new patch, please test 2012-08-13 13:48:06 -05:00
William King aad07c6243 Add condition matching capability to only account for one or more subset of channel directions to radius. 2012-08-12 21:13:10 -07:00
Steve Underwood 51691d4c9a Merge branch 'master' of git.freeswitch.org:freeswitch 2012-08-12 22:12:06 +08:00
Steve Underwood 5f12c3dc1c Improvements to T.4 end of image handling, and the related tests.
A lot of tiny tidy up edits
2012-08-12 22:11:06 +08:00
Anthony Minessale 527ad97001 add chatExecute method to events so you can respond from chatplan in js 2012-08-11 18:34:49 -05:00
Moises Silva 6732eae971 Fix typo on rtp.c causing compiler error (FS-4511) 2012-08-11 16:19:11 -04:00
Steve Underwood e69a5a3037 Various little tweaks
A bug in end of image handling fixed, which could mean some T.85 images would
screw up.
2012-08-11 18:32:00 +08:00
Anthony Minessale 618392299b add javascript chatplan app 2012-08-10 20:12:26 -05:00
Stefan Knoblich 2ad2b6d31b 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-10 17:16:05 +02:00
Stefan Knoblich 036063d2a9 mod_freetdm: Fix typo.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-10 17:16:05 +02:00
Jeff Lenk 659c06d356 FS-4219 -- resolve windows version string. thanks Peter 2012-08-10 07:47:10 -05:00
Jeff Lenk 72f1d392fb FS-4504 --resolve 2012-08-09 21:39:28 -06:00
Anthony Minessale 75abcd2099 fix build 2012-08-09 16:27:15 -05:00
Jeff Lenk 6e8736bb06 FS-4504 vs2008 pro still need express 2012-08-09 13:42:21 -05:00
Michael Jerris f044f46250 add apr stub to get the real OS socket 2012-08-09 11:56:29 -05:00
Christopher Rienzo f254f2a5fe Add default configuration example to mod_speex/conf/autoload_configs 2012-08-09 15:57:51 +00:00
Steve Underwood d3c89bae34 Fixed a misplaced #endif that only causes trouble when you hit the right
combination
2012-08-09 22:19:49 +08:00
Steve Underwood d1b45ae65b A couple of typos in spandsp
Improvements to image flattening in spandsp's image translate code
2012-08-09 21:58:22 +08:00
Jeff Lenk a4115a099b FS-4504 vs2010 add libjpeg download dependency 2012-08-09 08:34:26 -05:00
Jeff Lenk a21e4ad681 FS-4504 vs2010 update x64 download settings for libjpeg 2012-08-09 08:31:12 -05:00
Jeff Lenk 3389f32363 FS-4504 - tweak 2012-08-08 21:29:06 -05:00
Jeff Lenk e9ce6ae0e9 FS-4504 vs2010 only - plus mod_sofia fix - anybody want to help with 2008 2012-08-08 21:18:06 -05:00
Michael Jerris 6fa2fd3678 add ws 2012-08-08 17:05:01 -05:00
Anthony Minessale ef5c1256f3 add rtp endpoint contributed by sangoma 2012-08-08 14:46:38 -05:00
Anthony Minessale 210acdd165 FS-4505 --resolve 2012-08-08 10:08:29 -05:00
Anthony Minessale 47f614d40a FS-4507 --resolve 2012-08-08 09:59:36 -05:00
Steve Underwood 9a26b3a8a7 Fixed harmless typos in comments 2012-08-08 21:31:45 +08:00
Steve Underwood 6c037b0c73 Merge branch 'master' of git.freeswitch.org:freeswitch 2012-08-08 21:26:47 +08:00
Steve Underwood 42c5ab08d3 Image translate moves forward a little, towards colour support 2012-08-08 21:26:06 +08:00
Steve Underwood bb96d091fc Tweaks 2012-08-08 21:16:38 +08:00
Daniel Swarbrick f3c1f5aa68 missed this one 2012-08-08 14:14:54 +02:00
Daniel Swarbrick eca609e505 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2012-08-08 14:10:24 +02:00
Daniel Swarbrick 14a6e0cfc2 CGI specifies that REQUEST_URI is relative to the root (and does not include scheme name, hostname, port) 2012-08-08 14:08:31 +02:00