Steve Underwood
d434bfa86f
Better tun the use of open_memstream to safe versions of glibc
2013-08-19 22:49:03 +08:00
Jeff Lenk
84e4b38be3
FS-5690 --resolve with bizarre workaround
2013-08-18 17:26:13 -05:00
Steve Underwood
b346bf56f5
Some tweaks to colour FAXing and some alterations to the supervisory tones
...
tables.
2013-08-19 02:04:13 +08:00
Steve Underwood
56725ad2f2
Tweaks for colour FAXing
2013-08-19 01:38:02 +08:00
Steve Underwood
6daf132081
Removed unnecessary fseeks from T.42, and change tried a test with different
...
default T.42 illuminant, to see if the colours suit screens better.
2013-08-17 03:42:04 +08:00
Steve Underwood
d4d2d988a3
Added missing headers to the spandsp Makefile.am
2013-08-16 22:21:17 +08:00
Steve Underwood
dfc34d5a96
Some new FAX related variables introduced, to allow access to colour FAXing.
...
This should be treated as experimental right now.
2013-08-16 10:22:23 +08:00
Moises Silva
10908a0a8d
Merge remote-tracking branch 'origin/master' into ftdm_em_playback
2013-08-14 15:57:15 -04:00
Moises Silva
9d5f14a15d
freetdm: Fix longstanding minor bug in ftdm_span_send_signal causing dial-regex in Analog modules to not work
...
The return status of the signal callback was not being passed to the signaling module delivering the signal
2013-08-14 15:53:51 -04:00
Michael Jerris
1cd58ddba8
FS-5564: fix gcc extension for unsigned char bitfield type
2013-08-13 15:40:33 -04:00
Steve Underwood
a3c1cf0577
Fixed inclusion of a header file that isn't actually finished.
2013-08-09 00:25:18 +08:00
Steve Underwood
365fc08719
Changed spandsp from using TRUE and FALSE to using C99 true and false. It seems
...
like the quirks we used to get using those with C++ have gone away.
2013-08-08 21:40:28 +08:00
Seven Du
5c7d1ab8d7
fix spandsp build
2013-08-08 09:05:31 +08:00
Anthony Minessale
14ca0b5498
FS-5655 --resolve
2013-08-07 20:40:25 +05:00
Steve Underwood
df669f700a
A cleanup of FAX image size/resolution matching accuracy. Squashing of bi-level
...
images should now be correct. This is now close to supporting grey scale and
colour.
2013-08-06 02:38:06 +08:00
Steve Underwood
13e8532398
Hopefully all the spandsp functions now use custom allocation routines
2013-08-06 01:17:05 +08:00
Steve Underwood
799402dd5b
More movements of spandsp to the sue of custom allocation routines
2013-08-06 01:10:48 +08:00
Steve Underwood
d5e4089c22
Moved a lot of spandsp to the use of custom allocation functions
2013-08-06 00:49:15 +08:00
Steve Underwood
7c744ce1d8
Added custom allocation functions to spandsp
2013-08-05 23:50:28 +08:00
Jeff Lenk
b71fe0031d
FS-5655 try this
2013-07-31 21:45:18 -05:00
Anthony Minessale
143b1c44eb
rebuild
2013-07-29 16:07:34 -05:00
Anthony Minessale
d00c8a6abf
FS-5641 --resolve
2013-07-29 16:07:03 -05:00
Jeff Lenk
4fc8bc7696
more fixes for last commit
2013-07-27 22:13:47 -05:00
Jeff Lenk
7e1418d634
add missing
2013-07-27 11:28:08 -05:00
Jeff Lenk
734d5f57ca
add missing to last commit
2013-07-27 10:43:04 -05:00
Jeff Lenk
ee0383f03c
add missing cielab_luts to spandsp build
2013-07-27 10:40:06 -05:00
Travis Cross
6a5595b049
Improve our .gitignore files
...
Avoid ignoring files actually in our tree, and ignore some generated
files that were not being ignored previously.
2013-07-27 03:41:11 +00:00
Travis Cross
5ca2276711
Remove autogenerated file from tree
...
This file is specifically ignored by our .gitignore. Brian added this
ignore on 2013-06-06 but neglected to remove the file. I've now
bulid-tested without the file to be sure that it is indeed generated
correctly and so can be removed safely.
2013-07-27 03:41:10 +00:00
Anthony Minessale
bc851de200
FS-5642 FS-5556 --resolve I have not tested this yet for the connect but I fixed the seg for sure which was an outstanding issue in 5556 reopen 5642 if connect still doesnt work
2013-07-26 11:27:45 -05:00
Steve Underwood
3ae87091e1
Reworked some of the definition names and values in preparation for
...
colour FAX
2013-07-24 11:58:36 +08:00
Steve Underwood
b6a4e392f8
More tweaks to spandsp
2013-07-24 03:25:42 +08:00
Steve Underwood
7c90396294
More tweaks to spandsp
2013-07-24 02:19:40 +08:00
Steve Underwood
1912bf013a
Tweaks
2013-07-24 01:48:28 +08:00
Steve Underwood
43e2f86c0f
More tweaks to spandsp
2013-07-24 01:38:07 +08:00
Steve Underwood
9046143f2b
Cleanup of some T.4 functions which are obsolete
2013-07-24 00:46:47 +08:00
Steve Underwood
1f43148015
Added some missing definitions to a spandsp header
2013-07-24 00:32:53 +08:00
Steve Underwood
c1e5175290
Tweaks to spandsp
2013-07-24 00:21:23 +08:00
Steve Underwood
c741332dcd
Spandsp tweaks
2013-07-23 20:44:46 +08:00
Steve Underwood
cb4e31b6cf
Tweaks to spandsp
2013-07-22 18:48:35 +08:00
Anthony Minessale
2e74cf79fc
FS-5617 --resolve
2013-07-19 13:29:05 -05:00
Steve Underwood
6716623d1a
Various tweaks to spandsp
2013-07-19 15:40:22 +08:00
Anthony Minessale
e201bb01ea
FS-5610 --resolve
2013-07-15 16:57:55 -05:00
Jeff Lenk
d134f71747
FS-5598 --resolve
2013-07-13 11:49:37 -05:00
Anthony Minessale
c14d9c436e
FS-5575 --resolve
2013-07-12 14:43:18 -05:00
Nathan Neulinger
719e0329bc
add files to spandsp ignore list
2013-07-12 10:16:32 -05:00
Anthony Minessale
5dbf2b3cf7
refactor some video code
2013-07-11 17:38:24 -05:00
Anthony Minessale
30d5ecf9f7
FS-5445 --resolve this was actually just missing one word from the code as seen in the similar code in the core, the same mistake was made there where the compiler is not smart enough to see the mutually exclusive logical paths this code is specific to spontaneously creating an array in a single set like set foo[12]=val which would be totally broken if that line were commented
2013-07-10 10:26:08 -05:00
Jeff Lenk
5fc2bc9993
FS-5588 --resolve windows compiler fixes
2013-07-09 07:53:56 -05:00
Anthony Minessale
94f3b90040
use static buffer and nonblocking socket in websocket client
2013-07-08 08:25:45 -05:00
Ken Rice
22baa51acc
FS-2816 --resolve
2013-07-06 22:04:06 -05:00
Steve Underwood
20531a097a
Added a "nation" parameter to v18_init(), in preparation for automoding.
2013-07-03 02:39:09 +08:00
Anthony Minessale
d2a2e4ce15
FS-5568 --resolve the real problem is that L=-1 is not valid because the L param is about how many times to generate the output while generating the tone so -1 is impossible because it can never end to let you hear it. The real fix is to not allow -1 loops=-1 is the correct way to do this because that is parsed after the tone is generated and repeats the entire thing. Doing something like L=100 actually generates the whole slinear audio 100 times into memore where loops=100 only generates the little snippet and repeats it after it was generated.
2013-07-02 08:44:47 -05:00
Jeff Lenk
a52a604fbb
FS-5527 fix compiler error windows
2013-06-28 11:05:27 -05:00
Anthony Minessale
dac93d7936
FS-5527 --resolve
2013-06-28 10:42:06 -05:00
Anthony Minessale
b2e06346d4
some more ws transport tweaks
2013-06-27 14:04:13 -05:00
Anthony Minessale
a26ab6e3e0
fix ssl connect race
2013-06-26 23:10:19 -04:00
Anthony Minessale
afc18668f3
tweak sip ws code to avoid double free
2013-06-26 12:43:54 -04:00
Moises Silva
f9007fb2b6
freetdm: Added E & M logic for routing success and fail regex parameters
2013-06-26 00:16:11 -04:00
Moises Silva
bd4a5914dc
freetdm: Override regular media with ringback in E&M when a ringback file is specified
2013-06-26 00:10:04 -04:00
Moises Silva
626dd2551a
mod_freetdm: Expose new ringback E&M parameters in the XML config
2013-06-25 23:41:59 -04:00
Moises Silva
cc6ee0322e
Added ability to play a wav file as ringback tone during the COLLECT state of E&M signaling module
...
This is configured through 2 new parameters:
ringback-during-collect=yes|no
ringback-file=<wav file path>
You may not want to use this if your E&M lines are connected to traditional phones, otherwise
you will hear ringback tone while pressing digits. This is mostly useful with old switches that do
not provide ringback tone but the user is already done dialing (perhaps the signaling was converted from
ISDN to E&M and the full number was received in a single SETUP message)
2013-06-25 22:19:24 -04:00
Anthony Minessale
20f3b7d1b7
update
2013-06-25 09:28:55 -05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Anthony Minessale
da0c0c0e4a
revert 02c329da33
and put proper fix
2013-06-24 08:31:06 -05:00
Moises Silva
e5f2282fe1
OPENZAP-215 --resolve
...
The state FTDM_CHANNEL_STATE_RINGING is not used when there is media available. We have
FTDM_CHANNEL_PROGRESS_MEDIA for that, therefore the pri_acknowledge() call should not set
the info argument to avoid sending an indication of media to the other end, as that may cause
the other end to not generate any ringing tone and at that moment we will not be generating
any ringing tone either and the caller will hear only silence
2013-06-23 21:52:31 -04:00
Jeff Lenk
02c329da33
fix compiler warning
2013-06-20 14:27:32 -05:00
Anthony Minessale
469bcc562d
fix gcc bug patch
2013-06-20 10:50:33 -05:00
Anthony Minessale
c01fa0e1cf
newer gcc does not like when you use out of bounds array indexes to access other elements in a struct (at least at -O2)
2013-06-20 10:16:35 -05:00
Anthony Minessale
66239f15b0
comment out broken test
2013-06-20 10:16:35 -05:00
Steve Underwood
50bd4801d2
Fixed NEON detection and added AVX2 detection to spandsp
2013-06-20 23:53:53 +08:00
Anthony Minessale
a71b199de4
fix ref counting issue in tcp,tls,wss transports
2013-06-19 21:54:58 -05:00
Anthony Minessale
633dcd46b6
yay for bugs
2013-06-19 12:26:45 -05:00
Jeff Lenk
f37467e054
FS-5507 this should fix but I'm not sure its the proper thing
2013-06-17 08:51:56 -05:00
Anthony Minessale
9a87ec6a52
disable dialog matching for subscribe reqs so it always uses a new handle to avoid conflicting with notify transactions
...
Conflicts:
libs/sofia-sip/.update
2013-06-12 23:48:39 -05:00
Anthony Minessale
4240526ce3
add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device
2013-06-05 11:20:11 -05:00
Brian West
b4ed2f55bf
Up this buffer to prevent boxes from locking up if they receive more than 1000 bytes.
2013-06-04 17:10:05 -05:00
Jeff Lenk
6739889f65
OPENZAP-214 --resolve
2013-06-03 17:27:04 -05:00
Stefan Knoblich
6ca5a02656
FreeTDM: handle_core_command() clean up
...
Use uint64_t and FTDM_UINT64_FMT for flagval and "%u" for unsigned int.
Extend invalid channel id check to cover chan_id == 0 case.
Use ftdm_strlen_zero() and ftdm_array_len() instead of open-coding them.
Move some variables from global scope into local subcommand scope.
Various other little format string and variable naming fixes.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-02 03:02:14 +02:00
Stefan Knoblich
23c2c751bd
FreeTDM: Move I/O interface lookup code into common ftdm_global_get_io_interface()
...
Auto-loading can be toggled by setting the new autoload parameter
to FTDM_FALSE/FTDM_TRUE.
Update ftdm_span_create() and ftdm_api_execute() to use the new code.
NOTE: Auto-loading of missing I/O interfaces remains enabled in both cases,
but I guess we should disable it for ftdm_api_execute().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-02 02:56:44 +02:00
Stefan Knoblich
85e2eaaf58
FreeTDM: Fix "ftdm core flags/spanflags" with flag names
...
"x >> 1" is _NOT_ the reverse of "1 << x"...
Use code from Sean Eron Andersen's "Bit Twiddling Hacks"
(=> http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog )
to compute the log2 value (= position in the enum) of the bitflag.
This preserves the current behaviour, which is rather odd because
it is based on the position of the value in the enum, not its
actual (bit flag) value.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-01 22:30:45 +02:00
Stefan Knoblich
e857527a3b
FreeTDM: Rewrite "ftdm core" print_* functions (to use new span iterator)
...
Simplify code by using shared string constants using bool (0/1) index,
!!-operator and negation-via-XOR.
Future optimization: Preallocate and re-use of iterators, to avoid
repeatedly allocating and freeing of memory.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-01 22:19:16 +02:00
Stefan Knoblich
5154bd847b
ftmod_libpri: Fix channel iterator memory leak
...
Keep the original iterator around to be able to actually free it
after use.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-01 21:09:48 +02:00
Stefan Knoblich
4bc05eae68
FreeTDM: Add span iterator
...
Part of my ongoing effort to split ftdm_io.c into more manageable pieces.
This change (along with others in the future) allows decoupling of the
span registry and its users, in preparation of moving all span related
functions and data structures into ftdm_span.c.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-01 15:20:51 +02:00
Stefan Knoblich
9da0183352
FreeTDM: Remove unused local 'interfaces' variable
...
Zero-filled, but never used otherwise (and static), drop it.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2013-05-31 19:26:36 +02:00
Steve Underwood
88587ec03b
Minor tweaks from cleaning up spandsp
2013-06-01 01:05:08 +08:00
Brian West
a55d70ed62
add kirk wireless servers to safe as they do not do rport
2013-05-31 11:54:05 -05:00
Jeff Lenk
24c13adfaf
FS-5483 --resolve
2013-05-29 09:32:24 -05:00
Steve Underwood
4fba20c787
Something stupid that way went
2013-05-29 17:00:57 +08:00
Steve Underwood
3ea625c6ae
More movement towards colour FAXing
2013-05-29 14:47:48 +08:00
Steve Underwood
3519e0f4c3
More tweaks towards colour FAXing
2013-05-29 10:07:08 +08:00
Steve Underwood
3b595efc60
More tweaks towards colour FAXing
2013-05-29 09:53:56 +08:00
Steve Underwood
0b6c53217a
Moves towards colour FAX
2013-05-29 09:31:58 +08:00
Travis Cross
d7b139f3b4
Avoid dereferencing potential null value
2013-05-28 03:55:48 +00:00
Travis Cross
3217442d0e
Remove assignment without effect
2013-05-28 03:46:53 +00:00
Travis Cross
e887cecb5e
Avoid dereferencing potential null value
2013-05-28 03:41:44 +00:00
Travis Cross
2dea51ad58
Handle potential malloc failure better
2013-05-28 03:40:58 +00:00
Travis Cross
ef13a63447
Fix unlikely memory leak in ESL
2013-05-28 03:01:49 +00:00
Travis Cross
a5397e5980
Remove assignment without effect in fs_cli
2013-05-27 21:07:56 +00:00
Travis Cross
f00b77597f
Avoid dangling reference at end of fs_cli
...
Not that it really matters since we're returning to the OS momentarily
at that point anyway.
2013-05-27 21:07:52 +00:00
Jeff Lenk
757b792324
FS-5479 --resolve
2013-05-27 09:21:43 -05:00