Spandsp: multi-page fax sending


#1

I succeded in both installing spandsp and configuring fax reception (either single-page or multi-page).
When I create a .call file and put it in the /var/spool/asterisk/outgoing directory, txfax is launched as expected.
[color=darkred]But my problem is that although single-page are transmitted OK, txfax won’t complete multi-page fax sending (which means multi-page tiff files)[/color].

When sending a simple fax:
[color=green]-- Attempting call on ZAP/G1/0123 for application txfax(/home/guit/libtiffpic/g3test.tif|caller) (Retry 1)
– Requested transfer capability: 0x00 - SPEECH
Feb 27 14:42:04 NOTICE[7241]: channel.c:2416 __ast_request_and_dial: Don’t know what to do with control frame 15

Channel Zap/15-1 was answered.
Launching txfax(/home/guit/libtiffpic/g3test.tif|caller) on Zap/15-1
Feb 27 14:42:14 NOTICE[7241]: chan_zap.c:4639 zt_read: Fax detected, but no fax extension
– Hungup 'Zap/15-1’
Feb 27 14:43:09 NOTICE[7241]: pbx_spool.c:280 attempt_thread: Call completed to ZAP/G1/0123 [/color]

When sending a multi-page fax:
[color=green]-- Attempting call on ZAP/G1/0123 for application txfax(/home/guit/libtiffpic/2xg3test.tif|caller) (Retry 1)
– Requested transfer capability: 0x00 - SPEECH
Feb 27 14:47:28 NOTICE[7278]: channel.c:2416 __ast_request_and_dial: Don’t know what to do with control frame 15

Channel Zap/15-1 was answered.
Launching txfax(/home/guit/libtiffpic/2xg3test.tif|caller) on Zap/15-1
Feb 27 14:47:37 NOTICE[7278]: chan_zap.c:4639 zt_read: Fax detected, but no fax extension
– Channel 0/15, span 1 got hangup request
– Hungup 'Zap/15-1’
Feb 27 14:48:28 NOTICE[7278]: pbx_spool.c:280 attempt_thread: Call completed to ZAP/G1/0123 [/color]

For single-page faxes, 95% are ok
For multi-page faxes, I couldn’t send a single one which was not altered
I’ve done those tests with 2 different fax machines and by using sending/receiving on 2 différents channels of my PRI line
(I’m using a PRI line with 15 channels and a Digium TE110P card)

The fax I’m receiving is somehow altered, but not always the same way:
_ sometimes the 1st page is ok
_ sometimes only 1/3 is ok
_ sometimes only the 2nd page is ok
_ …

in zapata.conf :
echocancel=no
echocancelwhenbridged=no
echotraining=no
faxdetect=both

I’m using:
SuSe 9.0
spandsp-0.0.2pre21
libtiff 3.7.1-7

if it’s useful I can post the debug of txfax or rxfax…

I used different TIFF files for my tests:
_ those received by asterisk from a fax machine
_ those from libtiff library, libtiffpics: g3test.tif
_ a multi-page tif file produced by “tiffcp -c g3:2d:fill g3test.tif g3test.tif”

and for all of them the same symptoms apply.

Thanks a lot for any suggestions

Guillaume
(please excuse my english)