The issue with the fax machine not answering was actually a physical wiring issue (crosstalk with another line, its an old building) that is now resolved.
Though the above shouldn't have affected RxFax from receiving a fax, (since the FXO card plugs directly in to the demark) I decided to disable the rx/tx gains and try sending a fax again. On one line, it failed with a freq. of 1860. So I tried a different line and it seemed to work a little better. It received the fax, wrote the .tif file, but the .tif file is completely screwed up (looked like the fax was squished into the first 1/4 of the page). That was Try #1, Try #2 went a lot faster (picked a less complex page to fax) but still, the resulting .tif file is just a bunch of lines and dots. Completely unrecognizable. Is this a problem on my end, or is spandsp just not playing nice with my fax machine? Is there something I can do to help debug the issue? Try #1: --------------------- -- Executing RxFAX("Zap/2-1", "/var/spool/asterisk-fax/1087528729.1. tif") in new stack Changed from phase 0 to 1 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 20 DIS: 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 01 HDLC underflow in state 9 Changed from phase 4 to 3 T4 timeout in state 9 Changed from phase 3 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 20 DIS: 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 01 T2 timeout Start receiving document Sending ident >>> CSI: 40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 DIS: 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 01 HDLC underflow in state 9 Changed from phase 4 to 3 Slow carrier up <<< DCS: 83 00 c6 f0 80 80 00 DCS with final frame tag In state 9 DCS: Can receive fax Selected data signalling rate: V.29, 9600bps R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Minimum scan line time: 0ms Minimum scan line time for higher resolutions: T15.4 = T7.7 Get at 9600 Changed from phase 3 to 5 Fast carrier up Coarse carrier frequency 1780.88 (4) Fast carrier down Fast carrier up Coarse carrier frequency 1700.17 (66) Training error 5.640709 Training succeeded (constellation mismatch 24.460726) Fast carrier trained Fast carrier down Changed from phase 5 to 4 Start rx document - compression 2 Start rx page >>> CFR: 84 HDLC underflow in state 5 Post trainability Changed from phase 4 to 5 Fast carrier up Fast carrier down Fast carrier up Coarse carrier frequency 1700.02 (66) Training error 4.341901 Training succeeded (constellation mismatch 13.961693) Fast carrier trained Fax3Decode2D: (FakeInput): Bad code word at scanline 0 (x 1132). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 0 (got 1132, expected 1728). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 1 (got 135, expected 1728). Page 1 of /var/spool/asterisk-fax/1087528729.1.tif: 2312 rows received 0 total bad rows 0 max consecutive bad rows Rx page end detected Changed from phase 5 to 3 Slow carrier up Slow carrier down Slow carrier up <<< EOP: 2f EOP with final frame tag In state 5 Changed from phase 3 to 4 >>> MCF: 8c HDLC underflow in state 8 Changed from phase 4 to 3 Slow carrier up <<< DCN: fb DCN with final frame tag In state 8 Disconnecting Changed from phase 3 to 7 Changed from phase 7 to 8 Jun 17 20:20:40 WARNING[1199823792]: pbx.c:1875 ast_pbx_run: Timeout, but no rule 't' in context 'fax' -- Executing System("Zap/2-1", "/usr/local/sbin/mailfax /var/spool/ asterisk-fax/1087528729.1.tif [EMAIL PROTECTED] ymail.ca ") in new stack ESP Ghostscript 7.07.2: Unrecoverable error, exit code 1 Try #2: ----------------- -- Executing RxFAX("Zap/2-1", "/var/spool/asterisk-fax/1087533965.3. 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 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 20 DIS: 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 01 HDLC underflow in state 9 Changed from phase 4 to 3 Slow carrier up <<< DCS: 83 00 c6 f0 80 80 00 DCS with final frame tag In state 9 DCS: Can receive fax Selected data signalling rate: V.29, 9600bps R8x7.7lines/mm and/or 200x200pels/25.4mm OK 2D coding OK Scan line length: 215mm Recording length: A4 (297mm) Minimum scan line time: 0ms Minimum scan line time for higher resolutions: T15.4 = T7.7 Get at 9600 Changed from phase 3 to 5 Fast carrier up Coarse carrier frequency 1654.21 (4) Fast carrier down Fast carrier up Coarse carrier frequency 1700.11 (66) Training error 6.866837 Training succeeded (constellation mismatch 13.592167) Fast carrier trained Fast carrier down Changed from phase 5 to 4 Start rx document - compression 2 Start rx page >>> CFR: 84 HDLC underflow in state 5 Post trainability Changed from phase 4 to 5 Fast carrier up Fast carrier down Fast carrier up Coarse carrier frequency 1700.11 (66) Training error 15.050116 Training succeeded (constellation mismatch 18.914549) Fast carrier trained Page 1 of /var/spool/asterisk-fax/1087533965.3.tif: 2316 rows received 0 total bad rows 0 max consecutive bad rows Rx page end detected Changed from phase 5 to 3 Slow carrier up Slow carrier down Slow carrier up <<< EOP: 2f EOP with final frame tag In state 5 Changed from phase 3 to 4 >>> MCF: 8c HDLC underflow in state 8 Changed from phase 4 to 3 Slow carrier up <<< DCN: fb DCN with final frame tag In state 8 Disconnecting Changed from phase 3 to 7 Changed from phase 7 to 8 -- Executing System("Zap/2-1", "/usr/local/sbin/mailfax /var/spool/ asterisk-fax/1087533965.3.tif [EMAIL PROTECTED] ") in new stack ESP Ghostscript 7.07.2: Unrecoverable error, exit code 1 On Thu, 2004-06-17 at 13:33 -0700, Mike Benoit wrote: > Good question Steve. My setup is basically: > > Fax Machine -> PSTN -> X100P -> Asterisk -> RxFax > > I'm not even sure, does Asterisk do encoding if its not sending the call > to a SIP device, or over IAX? > > In the mean time I configured Asterisk to send faxes to a SIP extension > (SPA-2000) and it receives faxes just fine. Though for some reason the > fax machine doesn't know the line is ringing, but if I manually answer, > the fax comes through just fine. > > This setup was: > > Fax Machine -> PSTN -> X100P -> Asterisk -> SPA-2000 (alaw) -> Fax > Machine > > One other thing to note, I have two FXO cards in the Asterisk box, > connected to two PSTN lines, I dialing both numbers to send the fax, and > the Coarse carrier frequency varied quite a bit between both lines. One > line as I showed you was 1832 and the other line was 1785.79. Both lines > resulted in the same outcome though, no fax was received. > > > On Fri, 2004-06-18 at 00:25 +0800, Steve Underwood wrote: > > Hi Mike, > > > > To get something like: > > > > Coarse carrier frequency 1832.96 (4) > > Training error 927.702492 > > Training failed (convergence failed) > > > > something is horribly wrong. The carrier should be 1700Hz, not 1832.96Hz :-) > > > > Do you have a codec mismatch, or are you using a codec other than u-law > > or A-law? Sometimes the slow control messages will get through the wrong > > modem, but the fast modem for the images never will. > > > > Regards, > > Steve > > > > > > Mike Benoit wrote: > > > > >I'm trying to send a fax to my asterisk box, however shortly after > > >connecting the fax machine reports a "communication error" and hangs up. > > >Below is the error I get from RxFax: Fast carrier training failed > > > > > >Nothing is written to the file system as far as the tiff is concerned. > > > > > >Any ideas on how to fix this? Thanks > > > > > >---- > > > > > >Sending Fax Machine: HP PSC 2000 Series 2210 Printer/Fax/Copier/Scanner > > > > > >Asterisk: CVS-HEAD-06/14/04-15:43:15 > > > > > >SpanDSP: spandsp-0.0.1k > > > > > >FXO Card: X100P > > > > > >Interesting zapata.conf lines: > > >--------------- > > >echocancel=yes > > >echocancelwhenbridged=yes > > >echotraining=yes > > >rxgain=10.5 > > >txgain=-4.5 > > >faxdetect=incoming > > > > > >Log: > > >--------------- > > >Jun 16 21:45:40 NOTICE[1199700912]: callerid.c:239 callerid_feed: > > >Caller*ID failed checksum > > >Jun 16 21:45:43 NOTICE[1199700912]: chan_zap.c:4951 ss_thread: Got event > > >2 (Ring/Answered)... > > > -- Executing Answer("Zap/2-1", "") in new stack > > > -- Executing Wait("Zap/2-1", "1") in new stack > > > -- Executing DigitTimeout("Zap/2-1", "5") in new stack > > > -- Set Digit Timeout to 5 > > > -- Executing ResponseTimeout("Zap/2-1", "10") in new stack > > > -- Set Response Timeout to 10 > > > -- Executing SetMusicOnHold("Zap/2-1", "default") in new stack > > > -- Executing SetCallerID("Zap/2-1", "") in new stack > > > -- Executing SetCIDName("Zap/2-1", "") in new stack > > > -- Executing BackGround("Zap/2-1", "thank-you-for-calling") in new > > >stack > > > -- Playing 'thank-you-for-calling' (language 'en') > > > -- Redirecting Zap/2-1 to fax extension > > > == Spawn extension (mainmenu, fax, 0) exited non-zero on 'Zap/2-1' > > > -- Executing Goto("Zap/2-1", "fax|699|1") in new stack > > > -- Goto (fax,699,1) > > > -- Executing Macro("Zap/2-1", "faxreceive") in new stack > > > -- Executing SetVar("Zap/2-1", "FAXFILE=/var/spool/asterisk- > > >fax/1087447538.0.tif") in new stack > > > -- Executing SetVar("Zap/2-1", "[EMAIL PROTECTED]") in > > >new stack > > > -- Executing RxFAX("Zap/2-1", "/var/spool/asterisk-fax/1087447538.0. > > >tif") in new stack > > >Changed from phase 0 to 1 > > >Slow carrier up > > >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 20 > > >>>> > > >>>> > > >DIS: > > >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 01 > > >>>> > > >>>> > > >HDLC underflow in state 9 > > >Changed from phase 4 to 3 > > >Slow carrier up > > ><<< DCS: 83 00 c6 f0 80 80 00 > > >DCS with final frame tag > > >In state 9 > > >DCS: > > >Can receive fax > > >Selected data signalling rate: V.29, 9600bps > > >R8x7.7lines/mm and/or 200x200pels/25.4mm OK > > >2D coding OK > > >Scan line length: 215mm > > >Recording length: A4 (297mm) > > >Minimum scan line time: 0ms > > >Minimum scan line time for higher resolutions: T15.4 = T7.7 > > >Get at 9600 > > >Changed from phase 3 to 5 > > >Fast carrier up > > >Coarse carrier frequency 1832.96 (4) > > >Training error 927.702492 > > >Training failed (convergence failed) > > >Fast carrier training failed > > > -- Executing System("Zap/2-1", "/usr/local/sbin/mailfax /var/spool/ > > >asterisk-fax/1087447538.0.tif [EMAIL PROTECTED] ") in new stack > > >TIFFOpen: /var/spool/asterisk-fax/1087447538.0.tif: Cannot open. > > > > > > > > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users -- Mike Benoit <[EMAIL PROTECTED]> _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users