Commit Graph

20 Commits

Author SHA1 Message Date
Karsten Keil 43cd10a657 Better debugging for descriptor leaks and fixing application release leak 2014-09-22 01:35:42 +02:00
Joerg Dorchain 3293be0592 Fix compile error when configured --disable-softdsp 2012-12-05 10:40:19 +01:00
Karsten Keil 5d36b4e2b1 Release FAX call imediately if never received anything
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-17 00:46:18 +02:00
Karsten Keil 9252f4080c Really use refcounting for the dynamic objects
Add listing dangling objects via SIGUSR2.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:36:55 +02:00
Karsten Keil 18e7679a58 Make the current version compatible to recent kernel stuff
Also allow backward compatibility to older standalone kernel drivers.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:36:08 +02:00
Karsten Keil 9f5e9dc1c9 Add dumping status information via SIGUSR1 into the debug file
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:35:54 +02:00
Karsten Keil c594a8bbc1 Fix B-channel thread shutdown
- Add a timeout in the B-channel handler to catch a broken
  downlinks on release
- Do not join the own thread
- pthread functions return error directly, not via errno
- better debug messages

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:47:20 +02:00
Karsten Keil c89f4f31da Release ncci and fax struct on a not successful Fax call
We did lost memory when no fax was tranfered on a fax call.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:46:54 +02:00
Karsten Keil 7994aa6305 More checks and locking to avoid access to released BIlink
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:46:09 +02:00
Karsten Keil 657cfb1e01 Fix error path on failed FaxInit
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:43:14 +02:00
Karsten Keil e1e4b94a01 Fix double NCCI allocation
The capi thread or the B-channel worker thread can create the faxcontext. We need a lock
to protect the operation, sometimes we did create 2 NCCIs.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-13 16:27:17 +02:00
Karsten Keil 84f4346d60 More debug
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 18:42:18 +02:00
Thomas Jarosch 0028a07500 Fix file descriptor leak on error
cppcheck reported:
[capi20/faxl3.c:207]: (error) Resource leak: fd

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-02 16:12:44 +02:00
Karsten Keil db4516611e Set configured faxmodems
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-30 02:39:58 +02:00
Karsten Keil 63c29c32a8 Fix fax issue for 32 bit architectures
Nasty bug and hard to find. On 64 it did work because
the header size is 2 * 32 bit = 64 bit so the pointer to the header
has the same size.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-30 02:14:18 +02:00
Karsten Keil db4bc04f95 Fix crash when no FAX ID was sent
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-21 15:15:43 +01:00
Karsten Keil c98ff662d6 Fix memory leaks
Free all used memory

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-01-30 19:04:52 +01:00
Karsten Keil e1555b96bd Add some tests
- reduce unconditional debug output
2011-11-28 14:34:55 +01:00
Karsten Keil b71e632fd9 Many fixes 2011-11-27 23:03:46 +01:00
Karsten Keil 4c02448833 CAPI20 fax support
- use spandsp
- allows send/receive fax in TIFF format or SFF format (CAPI default)

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-25 16:36:12 +01:00