Fax over asterisk, problem? TIFF FORMAT!!

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Fax over asterisk, problem? TIFF FORMAT!!

Postby cavicchi » Wed Jul 30, 2008 3:59 pm

I am trying since a looot of time to send faxes from asterisk, but I have a lot of problems, actually ONE problem, i cannot find the correct compression of the tiff file

i always receive wrong formatted fax, can you tell me how you solved the problem?

NOT email to fax... but from a file... i need to do that from FILE not from EMAIL.

maybe something wrong in the .call file??

my call file looks like


Code: Select all
Channel: Zap/g1/XXXXXXXXw,30
MaxRetries: 0
WaitTime: 10
Application: txfax
Data: xxxxxxxxxxxxxxxx.tif|caller


this is the tiffinfo of the file i try to send...

Code: Select all
TIFF Directory at offset 0x8 (8)
  Image Width: 1728 Image Length: 2287
  Resolution: 204, 196 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT Group 3
  Photometric Interpretation: min-is-white
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2287
  Planar Configuration: single image plane
  Group 3 Options: (0 = 0x0)
  Fax Data: clean (0 = 0x0)


thank you...
cavicchi
Newsterisk
 
Posts: 28
Joined: Tue Jul 29, 2008 2:55 pm
Location: San Diego

Postby Dovid » Thu Jul 31, 2008 2:52 am

The faxing is very specific on what tiff format it will accept. I had to convert many tiff files till I got the right one. My idea would be to have an incoming fax and then send it out. See if that works. If it does you know the exact tiff format that you need.
Dovid
Salt of the Asterisk
 
Posts: 1452
Joined: Sun Oct 23, 2005 5:28 am
Location: Lakewood, NJ, USA

Postby cavicchi » Thu Jul 31, 2008 12:46 pm

it doesnt work that way... already tried... anyway...


i updated my libtiff and now seems to work for the first page... but the problem is that... for multipage fax the second page is all messed up

I guess the problem is spandsp... still 2pre26... today i will try an update :|
cavicchi
Newsterisk
 
Posts: 28
Joined: Tue Jul 29, 2008 2:55 pm
Location: San Diego

Postby Dovid » Thu Jul 31, 2008 6:00 pm

I had the same issue with multiple pages. Never worked on solving it since the project went on hold.
Dovid
Salt of the Asterisk
 
Posts: 1452
Joined: Sun Oct 23, 2005 5:28 am
Location: Lakewood, NJ, USA

Postby cavicchi » Thu Jul 31, 2008 6:04 pm

that's encouraging :D

anyway i just recompiled spandsp to devel 4 ... and now I am having trouble with txfax... compiling!...

so I will keep you updated!
cavicchi
Newsterisk
 
Posts: 28
Joined: Tue Jul 29, 2008 2:55 pm
Location: San Diego

Postby Dovid » Thu Jul 31, 2008 6:24 pm

Let us know. It will save me a lot of gray hairs ;) . Time for some one else to grow them ;)
Dovid
Salt of the Asterisk
 
Posts: 1452
Joined: Sun Oct 23, 2005 5:28 am
Location: Lakewood, NJ, USA

Postby cavicchi » Fri Aug 01, 2008 10:20 am

ok... an update

fax*CLI> core show version
Asterisk 1.4.20.1 built by root @ fax.xxx.eu on a i386 running FreeBSD on 2008-07-31 23:02:36 UTC

i updated with pain my asterisk on the operative machine... and...

[root@fax 18:01:33 /usr/local/etc/rc.d]# pkg_info
asterisk-1.4.20.1_1 An Open Source PBX and telephony toolkit
asterisk-addons-1.4.6_2 GPL modules for the Asterisk Open Source PBX
asterisk-agx-1.4.2 AGX Extra Addons for Asterisk
spandsp-devel-0.0.4.p15 A DSP library and software FAX machine
libpri-1.4.1 A C implementation of the Primary Rate ISDN specification
libpri-bristuff-1.2.3 A C implementation of the Primary Rate ISDN specification
tiff-3.8.1 Tools and library routines for working with TIFF images

XXXXXX.call
Code: Select all
Channel: Zap/g1/XXXXXXXXXw,30
CallerID: Matteo <02-XXXXXXX>
MaxRetries: 3
WaitTime: 10
retryTime: 5
SetVar: LOCALHEADERINFO=Asterisk Testing by Teo
Application: txfax
Data: xxxxxxxxxxxx.tif|caller|debug|ecm


I sent my first fax that actually worked... and then i tried again and again... and it worked! :) with 2 3 4 and more pages... no more messed up

the only problem is when i sent a fax to a friend of mine from asterisk to some other service fax to mail... he got a trunkated fax... and the same fax (same tif origin) once 1,5 pages (instead of 4) and second time 2,5 pages... mmmm very strange

actually there is still a problem with the TxFax
[Aug 1 01:38:42] WARNING[74902]: /usr/ports/net/asterisk-agx/work/agx-ast-addons/app_txfax.c:438 txfax_exec: Transmission loop error
just that it closes the connection (at the end of sending) and it hangs more seconds because it starts a loop... I maybe need to recompile the package and check the source... but this doesnt seem to affect the real process!!
cavicchi
Newsterisk
 
Posts: 28
Joined: Tue Jul 29, 2008 2:55 pm
Location: San Diego

Postby sethsdad0627 » Fri Dec 19, 2008 10:40 am

I can send faxes fine from received TIFF files, but can't make generated tiff files that will send - this is the tiffinfo from the rxfax that will send
tiffinfo fax1.tif
TIFF Directory at offset 0xb2ae (45742)
Image Width: 1728 Image Length: 1075
Resolution: 204, 98 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 3
Photometric Interpretation: min-is-white
FillOrder: lsb-to-msb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: (infinite)
Planar Configuration: single image plane
Page Number: 0-1
ImageDescription: 2143242455
Software: spandsp
DateTime: 2008/11/05 15:08:55
HostComputer: debsastpbx
Group 3 Options: 2-d encoding+EOL padding (5 = 0x5)
Fax Data: receiver regenerated (1 = 0x1)
Bad Fax Lines: 1
Consecutive Bad Fax Lines: 1
Fax Receive Time: 28 secs
Fax DCS: 00 45 1E


This is the tiffinfo from the one that wont - generated with command
convert -compress fax -monochrome -units pixelsperinch -resample 204x98 filea.pdf filea4.tif

tiffinfo filea4.tif
TIFF Directory at offset 0x1e0b02 (1968898)
Image Width: 2709 Image Length: 1685
Resolution: 204, 98 pixels/inch
Bits/Sample: 16
Compression Scheme: PackBits
Photometric Interpretation: min-is-black
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 1
Planar Configuration: single image plane
DocumentName: filea4.tif
Software: ImageMagick 6.4.0 06/07/08 Q16 http://www.imagemagick.org


Still playing with convert switches to try to come up with solution
sethsdad0627
Oldsterisk
 
Posts: 208
Joined: Tue Nov 04, 2008 9:15 am


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest