[Asterisk-Users] Re: SpanDSP TXFax and multipage faxes problems

Nenad Radosavljevic nenadr at deltaplan.co.yu
Fri May 13 03:49:26 MST 2005


Hi !

Does anyone managed to send multipage faxes (in single TIFF file) with
app_txfax from spandsp package (i'm using 0.0.2pre18, libtiff 3.7.1)?

If so, I'm interested in format of TIFF file that has been sent sent
succesfully (tiffinfo <fax-filename>).

I'm having problems with app_txfax, sending first page successfuly 99 % of
the time, but never managed to send second or third page (treid sending to
Panasonic fax and to app_rxfax on other Asterisk through the PSTN).
Receiving FAX machine hangs up after first page it got (no errors reported)
and app_txfax is holding channel for ever (until soft hangup Zap/XX).

Here is my tiffinfo on 3 sample files I have tried to fax (on all three only
first page being received):

LOW-RES fax file (204xx98):

lowres:/var/spool/asterisk/fax-out# tiffinfo FAX68.TIF
TIFF Directory at offset 0x9160
  Image Width: 1728 Image Length: 1173
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 1173
  Planar Configuration: single image plane
  Page Number: 0-3
  Group 3 Options: EOL padding (4 = 0x4)
TIFF Directory at offset 0x11eb6
  Image Width: 1728 Image Length: 1173
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 1173
  Planar Configuration: single image plane
  Page Number: 1-3
  Group 3 Options: EOL padding (4 = 0x4)
TIFF Directory at offset 0x16e3e
  Image Width: 1728 Image Length: 1173
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 1173
  Planar Configuration: single image plane
  Page Number: 2-3
  Group 3 Options: EOL padding (4 = 0x4)

same file HI-RES (204x196) :

pbx:/var/spool/asterisk/fax-out# tiffinfo FAX67.TIF
TIFF Directory at offset 0x128e8
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2347
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 2347
  Planar Configuration: single image plane
  Page Number: 0-3
  Group 3 Options: EOL padding (4 = 0x4)
TIFF Directory at offset 0x24a6c
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2347
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 2347
  Planar Configuration: single image plane
  Page Number: 1-3
  Group 3 Options: EOL padding (4 = 0x4)
TIFF Directory at offset 0x2ed84
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 2347
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Samples/Pixel: 1
  Rows/Strip: 2347
  Planar Configuration: single image plane
  Page Number: 2-3
  Group 3 Options: EOL padding (4 = 0x4)


Here is tiffinfo of sample fax TIFF file that I have found looking for the
TIFF/FAX specification - this one doesn't go either !


pbx:/var/spool/asterisk/fax-out# tiffinfo SAMPLEF.TIF
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32860
(0x805c) encountered.
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32861
(0x805d) encountered.
TIFF Directory at offset 0x62cf
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 852
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Date & Time: "1990:01:05 14:14:38"
  Document Name: "C:\EFAX\EXAMPLE.TXT"
  Image Description: "FAX"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 852
  Planar Configuration: single image plane
  Page Number: 0-3
  Software: EFax Version 2.2d74
  Tag 32860: Tiff Ver 2.0
  Tag 32861: 555-5555
  Group 3 Options: EOL padding (4 = 0x4)
  Fax Data: clean (0 = 0x0)
  Bad Fax Lines: 0
  Consecutive Bad Fax Lines: 0
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32860
(0x805c) encountered.
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32861
(0x805d) encountered.
TIFF Directory at offset 0x7fd9
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 292
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Date & Time: "1990:01:05 14:14:39"
  Document Name: "C:\EFAX\EXAMPLE.TXT"
  Image Description: "FAX"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 292
  Planar Configuration: single image plane
  Page Number: 1-3
  Software: EFax Version 2.2d74
  Tag 32860: Tiff Ver 2.0
  Tag 32861: 555-5555
  Group 3 Options: EOL padding (4 = 0x4)
  Fax Data: clean (0 = 0x0)
  Bad Fax Lines: 0
  Consecutive Bad Fax Lines: 0
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32860
(0x805c) encountered.
TIFFReadDirectory: Warning, SAMPLEF.TIF: unknown field with tag 32861
(0x805d) encountered.
TIFF Directory at offset 0xab2f
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 1728 Image Length: 577
  Resolution: 204, 98 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Date & Time: "1990:01:05 14:14:39"
  Document Name: "C:\EFAX\EXAMPLE.TXT"
  Image Description: "FAX"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 577
  Planar Configuration: single image plane
  Page Number: 2-3
  Software: EFax Version 2.2d74
  Tag 32860: Tiff Ver 2.0
  Tag 32861: 555-5555
  Group 3 Options: EOL padding (4 = 0x4)
  Fax Data: clean (0 = 0x0)
  Bad Fax Lines: 0
  Consecutive Bad Fax Lines: 0


Regards,
            Nenad Radosavljevic






More information about the asterisk-users mailing list