Txfx problem

I have installed tiff-3.7.1 and spandsp-0.0.2pre26 in my asterisk(1.2.7) server. But when i can fax out several pages tif file using txfx, it will stop fax autoly. Follow is the warning prompt:

[root@PE860A userscript]# ./faxout.php
[root@PE860A userscript]# Feb 27 18:40:50 NOTICE[20408]: channel.c:2422 __ast_request_and_dial: Don’t know what to do with control frame 15
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 292 (0x124) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40002 (0x9c42) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40006 (0x9c46) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40007 (0x9c47) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40008 (0x9c48) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 292 (0x124) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40002 (0x9c42) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40006 (0x9c46) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40007 (0x9c47) encountered.
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 40008 (0x9c48) encountered.
Fax3Decode2D: Warning, /var/spool/asterisk/fax-outgoing/1.tif: Premature EOL at scanline 0 (got 0, expected 1728).
TIFFReadDirectory: Warning, /var/spool/asterisk/fax-outgoing/1.tif: unknown field with tag 292 (0x124) encountered.
Fax3Decode2D: Warning, /var/spool/asterisk/fax-outgoing/1.tif: Premature EOF at scanline 0 (x 0).
Fax3Decode2D: Warning, /var/spool/asterisk/fax-outgoing/1.tif: Premature EOL at scanline 0 (got 0, expected 1728).
Feb 27 18:41:23 NOTICE[20408]: pbx_spool.c:279 attempt_thread: Call completed to ZAP/g1/131

Below attach the faxout.php for your reference.

#!/usr/local/bin/php -q

<? $basep="/var/spool/asterisk/outgoing"; $channel="Channel: ZAP/g1/131\n"; $channel.="MaxRetries: 1\n"; $channel.="WaitTime: 20\n"; $channel.="Application: txfax\n"; $channel.="Data: /var/spool/asterisk/fax-outgoing/1.tif|caller\n"; $channel.="Set: LOCALSTATIONID=82984228SZ"; ($fp=fopen("$basep/9131.call", "aw+")) or die("Error in Writting File!"); fwrite($fp, $channel); fclose($fp); ?>

wait for your support. thanks

What is the specifications of the tif file you are using?

I use 204x196 resolution with A4 paper size and everything works fine.