Problems with FAX receiving - Asterisk 1.6

Helo,

Card: TE420P
Line: PRI/E1

I have got problem with receiving fax. I can receive some FAX but most of them cause one of that errors:

[Oct 28 13:20:39] WARNING[29604]: app_fax.c:124 span_message: WARNING T.30 Non-ECM carrier not found [Oct 28 13:20:41] WARNING[29604]: app_fax.c:173 phase_e_handler: Error transmitting fax. result=26: Carrier lost during fax receive.

I dont have echo cancelation. When i was using Asterisk 1.4 and spandsp with rxfax application i got the same errors so it’s not this version of asterisk related.

My extensions.conf:
exten => fax,1,Answer()
exten => fax,n,Wait(3)
exten => fax,n,ReceiveFAX(/home/files/faxes/${UNIQUEID}.tif)
exten => fax,n,Hangup()

chan_dahdi.conf:

[trunkgroups] [channels] faxdetect=no context=default switchtype=euroisdn signalling=pri_cpe rxwink=300 ; Atlas seems to use long (250ms) winks usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=no echocancelwhenbridged=no rxgain=4.0 txgain=4.0 group=1 callgroup=1 pickupgroup=1 immediate=no callerid="Invigo.pl" <422920200> ;Masked group=0,11 context=default switchtype=euroisdn signalling=pri_cpe channel => 1-15,17-31 group= context=default group=0,12 context=default switchtype = euroisdn signalling = pri_cpe channel => 32-46,48-62 group= context=default group=0,13 context=default switchtype = euroisdn signalling = pri_cpe channel => 63-77,79-93 group= context=default group=0,14 context=default switchtype = euroisdn signalling = pri_cpe channel => 94-108,110-124 group= context=default

I recommend on using IAXmodem and hylafax…
iaxmodem.sourceforge.net/

cheers,
stoffell