[Asterisk-Users] I can't receive multiple pages with spandsp

Marco Maiolini marcomaiolini at inwind.it
Tue Mar 7 09:31:45 MST 2006


Hi all,

I'trying to use spandsp (app_rxfax) to receive faxes. 

When there are more than one page, the system creates a tiff file with only the first page and the other are lost, even if the full log says:


Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: ==============================================================================
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Pages transferred:  1
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Image size:         1728 x 1118
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Image resolution    7700 x 3850
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Transfer Rate:      9600
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Bad rows            0
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Longest bad row run 0
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Compression type    1
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: Image size (bytes)  0
Mar  7 17:17:42 DEBUG[5876] app_rxfax.c: ==============================================================================

Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: ==============================================================================
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Pages transferred:  2
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Image size:         1728 x 1117
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Image resolution    7700 x 3850
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Transfer Rate:      9600
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Bad rows            0
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Longest bad row run 0
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Compression type    1
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: Image size (bytes)  0
Mar  7 17:18:13 DEBUG[5876] app_rxfax.c: ==============================================================================

Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: ==============================================================================
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Fax successfully received.
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Remote station id: 3002
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Local station id:  
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Pages transferred: 2
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Image resolution:  7700 x 3850
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: Transfer Rate:     9600
Mar  7 17:18:16 DEBUG[5876] app_rxfax.c: ==============================================================================


In extensions.conf I have:

exten => 1080,1,NoOp(Entro nel context from-FAX)
exten => 1080,2,Answer
exten => 1080,3,Macro(ricezionefax)
exten => 1080,4,system(tiff2ps -2 -a -e -z -w 8 -h 10.5 ${FAXFILE} | lpr -Pprn011 at srv67) ;;;I send the fax to my printer
exten => 1080,5,Hangup

and

[macro-ricezionefax]    
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
exten => s,2,rxfax(${FAXFILE})
exten => s,102,Goto(2)

Is this a problem of spandsp (I'm using spandsp-0.0.2pre25)
or is there an error in my configuration?

Thanks in advance,

Marco.




More information about the asterisk-users mailing list