Asterisk+SPANDSP (FAX) with TDM400P Do not Work

Dear All,

We just bought TDM400P from Digium to bring our FAX solution to our customer.
According to WIKI pages, we installed Asterisk with SPANDSP patch for FAX support (RXFAX / TXFAX)

Here is our version

  • Fax Machine : CANON FAX-L250
  • OS: CentOS 4 (kernel 2.6.9-5.0.3EL)
  • Downloaded Asterisk,Zaptel,LibPri from CVS per August 17, 2005
  • Downloaded spandsp-0.0.2pre19 from www.soft-switch.org
  • TDM400P with :
    • 1 FXS on channel 1 (signaling with fxoks)
    • 1 FXO on channel 4 (signaling with fxsks)

Here is the Zapata.conf

--------------------------- ZAPATA.CONF ------------------------
faxdetect=both
language=en
context=from-pstn
switchtype=national
signalling=fxo_ks
channel => 1
signalling=fxs_ks
channel => 4
------------------------- ZAPATA.CONF END ----------------------

Here is the extention.conf

-------------------------- EXTENTION.CONF ----------------------
[from-pstn]
exten => s,1,Answer
exten => s,2,AbsoluteTimeout(100)
exten => s,3,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
exten => s,4,SetVar(LOCALHEADERINFO=ITDept)
exten => s,5,SetVar(LOCALSTATIONID=PowerE2E)
exten => s,6,Wait(5)
exten => s,7,txfax(${FAXFILE}|debug)
exten => fax,1,rxfax(${FAXFILE}|debug)
exten => T,1,SoftHangup(Zap/4-1)
------------------------ EXTENTION.CONF END ---------------------

-------------------------- RXFAX debug -------------------------

DIS: 80 00 ce f4 80 80 81 80 80 80 18
T4 timeout in state 9
Sending ident
CSI: 40 45 32 45 72 65 77 6f 50 20 20 20 20 20 20 20 20 20 20 20 20
DIS:
Prefer 256 octet blocks
Can receive fax
Supported data signalling rates: V.27ter and V.29
R8x7.7lines/mm and/or 200x200pels/25.4mm
2D coding
Scan line length: 215mm
Recording length: Unlimited
Receiver’s minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85
R8x15.4lines/mm
Minimum scan line time for higher resolutions: T15.4 = T7.7
North American Letter (215.9mm x 279.4mm)
North American Legal (215.9mm x 355.6mm)
DIS: 80 00 ce f4 80 80 81 80 80 80 18
HDLC underflow in state 9
Changed from phase 4 to 3
Slow carrier up
T2 timeout
Start receiving document
Changed from phase 3 to 4
Sending ident
CSI: 40 45 32 45 72 65 77 6f 50 20 20 20 20 20 20 20 20 20 20 20 20
DIS:
Prefer 256 octet blocks
Can receive fax
Supported data signalling rates: V.27ter and V.29
R8x7.7lines/mm and/or 200x200pels/25.4mm
2D coding
Scan line length: 215mm
Recording length: Unlimited
Receiver’s minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85
R8x15.4lines/mm
Minimum scan line time for higher resolutions: T15.4 = T7.7
North American Letter (215.9mm x 279.4mm)
North American Legal (215.9mm x 355.6mm)
----------------------- RXFAX debug END --------------------------------

For RXFAX testing I did:

Fax Machine (CANON FAX-L250) —> PSTN —> TDM400P (FXO port) —> Asterisk

The result:

  • Asterisk detected there is fax coming and jump to fax extension.
  • Asterisk doesn’t create tiff file on specified directory (see RXFAX debug
    log).
  • Look on RXFAX debug log, there is no “OK” word on 2D coding,
    R8x15.4lines/mm.
  • Fax machine disconnected.

Question:

  • Why Asterisk cannot receive the fax?
  • Do I need to do specific configuration in zaptel.conf / zapata.conf ?
  • We are in China, is there any country specific configuration?
  • The last, If I have to debug myself, how to enable full debug on asterisk and spandsp?

Before, thank you for your support.

Regards,

Halomoan