Interesting.. I can negotiation T38 from the Carrier, also I'm sending a new fax on every test so it isn't cached. Also there isn't any conversion once kazoo sees the tiff format. I sometimes get the "Far end cant receive image of this size" but I use the default tif file included with the windows fax and scan app, as well as tif samples from online. Here is a full FS log:
v=0
o=FreeSWITCH 1445247383 1445247385 IN IP4 FS-IP
s=FreeSWITCH
c=IN IP4 FS-IP
t=0 0
m=image 32488 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxFillBitRemoval
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:2000
a=T38FaxMaxDatagram:400
a=T38FaxUdpEC:t38UDPRedundancy
2015-10-19 18:37:55.973547 [DEBUG] sofia_glue.c:1232 sofia/sipinterface_
1/8555555555@provider sending invite version: 1.4.15 64bit
Local SDP:
v=0
o=FreeSWITCH 1445247383 1445247385 IN IP4 FS-IP
s=FreeSWITCH
c=IN IP4 FS-IP
t=0 0
m=image 32488 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxFillBitRemoval
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:2000
a=T38FaxMaxDatagram:400
a=T38FaxUdpEC:t38UDPRedundancy
2015-10-19 18:37:55.973547 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:37:55.973547 [DEBUG] sofia.c:6614 Channel sofia/sipinterface_
1/8555555555@provider entering state [calling][0]
2015-10-19 18:37:56.033550 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:37:56.033550 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:37:56.053556 [DEBUG] sofia.c:6614 Channel sofia/sipinterface_
1/8555555555@provider entering state [completing][200]
2015-10-19 18:37:56.053556 [DEBUG] sofia.c:6624 Remote SDP:
v=0
o=Sansay-VSXi 188 2 IN IP4 provider
s=Session Controller
c=IN IP4 4.55.xx.x
t=0 0
m=image 21016 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:262
a=T38FaxMaxDatagram:176
a=T38FaxUdpEC:t38UDPRedundancy
2015-10-19 18:37:56.053556 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:37:56.053556 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:37:56.053556 [DEBUG] sofia.c:6614 Channel sofia/sipinterface_
1/8555555555@provider entering state [ready][200]
2015-10-19 18:37:56.053556 [DEBUG] switch_core_media.c:7719 Remote address:port [4.55.xx.x:21016] has not changed.
2015-10-19 18:37:56.053556 [DEBUG] switch_core_media.c:7719 Remote address:port [4.55.xx.x:21016] has not changed.
2015-10-19 18:37:56.053556 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 No signal is present
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 A signal is present
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 HDLC signal status is Carrier up (-2) in state T
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 HDLC signal status is Framing OK (-6) in state T
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from phase A_CNG to B_RX
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set rx type 4
2015-10-19 18:38:02.213565 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set tx type 0
2015-10-19 18:38:03.853568 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Type CSI - CRC OK (clean)
2015-10-19 18:38:03.853568 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Stop none (0 remaining)
2015-10-19 18:38:03.853568 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Rx: CSI without final frame tag
2015-10-19 18:38:03.853568 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Rx: ff 03 40 6e 77 6f 6e 6b 6e 75 20 20 20 20 20 20 20 20 20 20 20 20 20
2015-10-19 18:38:03.853568 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Remote gave CSI as: "unknown"
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Type DIS - CRC OK, sig end (clean)
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Stop none (0 remaining)
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Rx: DIS with final frame tag
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Rx: ff 13 80 00 ee f8 80 80 91 80 80 80 18
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Rx final frame in state T
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Queuing phase B_TX
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 DIS:
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= Store and forward Internet fax (T.37): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Real-time Internet fax (T.38): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 0...= 3G mobile network: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= V.8 capabilities: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= Preferred octets: 256 octets
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= Ready to transmit a fax document (polling): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..1.= Can receive fax: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..10 11..= Supported data signalling rates: V.27 ter, V.29, and V.17
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .1.. ....= R8x7.7lines/mm and/or 200x200pels/25.4mm: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= 2-D coding: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..00= Recording width: 215mm +- 1%
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 10..= Recording length: Unlimited
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .111 ....= Receiver's minimum scan line time: 0ms at 3.85 l/mm; T7.7 = T3.85
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= Compressed/uncompressed mode: Compressed
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Error correction mode (ECM): Non-ECM
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= T.6 coding: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= "Field not valid" supported: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= Multiple selective polling: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Polled sub-address: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 0...= T.43 coding: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ...0 ....= Plane interleave: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= Voice coding with 32kbit/s ADPCM (Rec. G.726): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= Reserved for the use of extended voice coding set: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...1= R8x15.4lines/mm: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= 300x300pels/25.4mm: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= R16x15.4lines/mm and/or 400x400pels/25.4mm: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 0...= Inch-based resolution preferred: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ...1 ....= Metric-based resolution preferred: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= Minimum scan line time for higher resolutions: T15.4 = T7.7
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= Selective polling: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= Sub-addressing: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= Password: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Ready to transmit a data file (polling): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ...0 ....= Binary file transfer (BFT): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= Document transfer mode (DTM): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= Electronic data interchange (EDI): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= Basic transfer mode (BTM): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Ready to transfer a character or mixed mode document (polling): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 0...= Character mode: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= Mixed mode (Annex E/T.4): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= Processable mode 26 (Rec. T.505): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= Digital network capability: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Duplex capability: Half only
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 0...= JPEG coding: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ...0 ....= Full colour mode: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= 12bits/pel component: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 1... ....= Extension indicator: Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ...0= No subsampling (1:1:1): Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... ..0.= Custom illuminant: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... .0..= Custom gamut range: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .... 1...= North American Letter (215.9mm x 279.4mm): Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ...1 ....= North American Legal (215.9mm x 355.6mm): Set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 ..0. ....= Single-progression sequential coding (Rec. T.85) basic: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 .0.. ....= Single-progression sequential coding (Rec. T.85) optional L0: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 0... ....= Extension indicator: Not set
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:334 === Negotiation Result =======================================================
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:335 Remote station id: unknown
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:336 Local station id: +1 (514) xxx-xxxx
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:337 Transfer Rate: 14400
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:339 ECM status off
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:340 remote country:
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:341 remote vendor:
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:342 remote model:
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:344 ==============================================================================
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Trying to send file '/usr/share/freeswitch/http_cache/82/339468-7690-11e5-b71c-ffa3c10b9591.tiff'
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Start sending document
2015-10-19 18:38:04.293569 [WARNING] mod_spandsp_fax.c:293 WARNING T.30 Cannot negotiate an image format
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Status changing to 'Bad TIFF/F header - incorrect values in fields'
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Flushing queued phase B_TX
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Queuing phase D_TX
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from state T to C
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Tx: DCN with final frame tag
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Tx: ff 13 fb
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 HDLC signal status is Carrier down (-1) in state C
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from phase B_RX to D_TX
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set rx type 0
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set tx type 4
2015-10-19 18:38:04.293569 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 No signal is present
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Send complete in phase D_TX, state C
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Send complete in phase D_TX, state C
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Starting final pause before disconnecting
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from phase D_TX to E
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set rx type 0
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set tx type 1
2015-10-19 18:38:05.473547 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from state C to B
/exit2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Send complete in phase E, state B
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:513 ==============================================================================
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:525 Fax processing not successful - result (46) Bad TIFF/F header - incorrect values in fields.
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:530 Remote station id: unknown
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:531 Local station id: +1 (514) xxx-xxxx
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:532 Pages transferred: 0
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:534 Total fax pages: 1
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:535 Image resolution: 0x0
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:536 Transfer Rate: 14400
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:538 ECM status off
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:539 remote country:
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:540 remote vendor:
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:541 remote model:
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:543 ==============================================================================
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from state B to CALL_FINISHED
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Changing from phase E to CALL_FINISHED
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set rx type 9
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T Set tx type 9
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.38T FAX exchange complete
2015-10-19 18:38:06.793552 [DEBUG] mod_spandsp_fax.c:293 FLOW T.30 Call completed
2015-10-19 18:38:08.113559 [DEBUG] switch_core_session.c:1053 Send signal sofia/sipinterface_
1/8555555555@provider [BREAK]
2015-10-19 18:38:08.113559 [DEBUG] switch_core_codec.c:246 sofia/sipinterface_
1/8555555555@provider Restore previous codec PCMU:0.
2015-10-19 18:38:08.113559 [NOTICE] sofia.c:952 Hangup sofia/sipinterface_
1/8555555555@provider [CS_EXECUTE] [NORMAL_CLEARING]