[Asterisk-Users] RxFax - Fast carrier training failed

Mike Benoit ipso at snappymail.ca
Thu Jun 17 13:33:13 MST 2004


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", "EMAILADDR=ipso at snappymail.ca") 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 ipso at snappymail.ca  ") in new stack
> >TIFFOpen: /var/spool/asterisk-fax/1087447538.0.tif: Cannot open.
> >
> >  
> >
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Mike Benoit <ipso at snappymail.ca>




More information about the asterisk-users mailing list