I'm using mod_spandsp to send fax to different targets. when destination is another freeswitch or elastix everything works fine. but when sending faxes to old fax machines if tiff file contains only 1 page, sending will succeed. but if tiff contains more than 1 page FS keeps sending first page multiple times till I issue hupall and it stops sending(I should mention that sometimes it sends first page 3 times second page 3 times and keeps eating remote fax machine paper roll).
I'm using this command:
originate {fax_ident=$faxidnt,fax_header=$faxhdr,origination_caller_id_number=$callerid,tx_owner_id=$userid}sofia/gateway/fax_outbound/999 &txfax('path')
in php to send faxes. I've set global t38_passthru to true and in spandsp.conf:
<fax-settings>
<param name="use-ecm" value="true"/>
<param name="verbose" value="true"/>
<param name="disable-v17 " value="false"/>
<param name="ident" value="test"/>
<param name="header" value="test"/>
<param name="spool-dir" value="/tmp"/>
<param name="file-prefix" value="faxrx"/>
</fax-settings>
and the logs for spandsp verbose mode:
FreeSWITCH Version 1.3.0+git~20120908T211235Z~36cee285b0 (1.3.0; git at commit 36cee285b0 on Sat, 08 Sep 2012 21:12:35 Z)