Hello All ~ Having problems sending and receiving faxes with SpanDSP. I am testing on a simple 2 analog POTS to 2x X100p set up, connecting one line to a Konica 720 fax machine to test, or with other remote fax machines. Voice calls are working pretty well now. Platform is P3/800MHz/256MB/FC1. * recognizes faxes, and passes calls to RxFax and TxFax OK, but 99.9% of the time no fax content is sent or received. (On one occasion coincidentally a junk fax came in successfully while I was testing!). I've reviewed previous posts and but can't find any relevant advice on where to go next, since the fax negotiation seems to go OK so far, but then die (see below), and no content is transmitted. The final error message from RxFax is: Training failed (sequence failed) Would really appreciate some expert advice on what this means and how to fix... Christina. PS: Previous somewhat relevant posts I've been able to find: http://lists.digium.com/pipermail/asterisk-users/2004-June/051143.html http://lists.digium.com/pipermail/asterisk-users/2005-February/090978.html Here's versions I'm using: asterisk CVS-v1-0-02/20/05-17:04:48 spandsp 0.0.1k libtiff 3.5.7 Here's the relevant CLI output: -- Redirecting Zap/1-1 to fax extension == Spawn extension (default, fax, 0) exited non-zero on 'Zap/1-1' -- Executing SetVar("Zap/1-1", "FAXFILE=/var/spool/asterisk-fax/1110134598.7.tif") in new stack -- Executing RxFAX("Zap/1-1", "/var/spool/asterisk-fax/1110134598.7.tif") in new stack Changed from phase 0 to 1 Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Slow carrier up Slow carrier down Start receiving document Changed from phase 1 to 4 Sending ident>>> CSI: 40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20DIS: Preferred octets: 256 Can receive fax Supported data signalling rates: V.27ter and V.29 R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85 R8x15.4lines/mm OK Minimum scan line time for higher resolutions: T15.4 = T7.7>>> DIS: 80 00 ce f0 80 80 01HDLC underflow in state 9 Changed from phase 4 to 3 Slow carrier up Slow carrier down Slow carrier up <<< TSI: 43 32 31 32 31 35 35 35 39 31 35 20 20 20 20 20 20 20 20 20 20 TSI without final frame tag Remote fax gave TSI as: "5195551212" <<< DCS: 83 00 06 00 DCS with final frame tag In state 9 DCS: Can receive fax Selected data signalling rate: V.29, 9600bps Scan line length: 215mm Recording length: A4 (297mm) Minimum scan line time: 20ms Get at 9600 Changed from phase 3 to 5 Fast carrier up Coarse carrier frequency 1741.58 (6) Fast carrier down Fast carrier up Coarse carrier frequency 1700.10 (72) Training error 216.035327 Training failed (convergence failed) Fast carrier training failed Fast carrier down Fast carrier up Training failed (sequence failed) Fast carrier training failed Fast carrier down Fast carrier up Coarse carrier frequency 1699.92 (72) Training error 216.181752 Training failed (convergence failed) Fast carrier training failed Fast carrier down Fast carrier up Training failed (sequence failed) Fast carrier training failed Fast carrier down Fast carrier up Coarse carrier frequency 1699.77 (72) Training error 236.605116 Training failed (convergence failed) Fast carrier training failed Fast carrier down Fast carrier up Training failed (sequence failed) Fast carrier training failed Fast carrier down Fast carrier up Coarse carrier frequency 1759.74 (4) Fast carrier down Fast carrier up Fast carrier down -- Hungup 'Zap/1-1'
Steve Underwood
2005-Mar-06 17:12 UTC
[Asterisk-Users] SpanDSP: Training failed (sequence failed)
CClarke wrote:>Hello All ~ >Having problems sending and receiving faxes with SpanDSP. I am testing on a >simple 2 analog POTS to 2x X100p set up, connecting one line to a Konica 720 >fax machine to test, or with other remote fax machines. Voice calls are >working pretty well now. Platform is P3/800MHz/256MB/FC1. > >* recognizes faxes, and passes calls to RxFax and TxFax OK, but 99.9% of the >time no fax content is sent or received. (On one occasion coincidentally a > >So, you tried at least 1000 tests to get this statistic. Very dedicated. :>junk fax came in successfully while I was testing!). > >I've reviewed previous posts and but can't find any relevant advice on where >to go next, since the fax negotiation seems to go OK so far, but then die (see >below), and no content is transmitted. The final error message from RxFax is: >Training failed (sequence failed) > >Would really appreciate some expert advice on what this means and how to >fix... >Christina. > >PS: Previous somewhat relevant posts I've been able to find: >http://lists.digium.com/pipermail/asterisk-users/2004-June/051143.html >http://lists.digium.com/pipermail/asterisk-users/2005-February/090978.html > >Those don't seem very relevant. There are plenty of posts which are.>Here's versions I'm using: >asterisk CVS-v1-0-02/20/05-17:04:48 >spandsp 0.0.1k >libtiff 3.5.7 > >Try using spandsp-0.0.2pre10. spandsp-0.0.1k is now very old. That shouldn't be very relevant to your problem, since the modems in 0.0.1k usually decode reliably. The ones in 0.0.2pre10 are more tolerant of really bad phone lines, though. Also, I have no intention of supporting 0.0.1k any more. The fast modem isn't training properly. A number of people report this, and there is nothing I can do about it. They have problems in their * setup, which prevents spandsp from getting a clean signal. I really need to put a self-diagnosis feature in spandsp so it can detect and report these problems. Regards, Steve