[Asterisk-Users] spandsp

Jon Bebeau jbebeau at 1nettw.net
Thu Aug 19 08:56:50 MST 2004


Hello Simone,

Here's the text from a my post earlier this week (below).  Seems that (at
least) William G and I are having the same problem sending.  I started out
with Fedora core 2 some months ago but had problems with Asterisk back then.
As it seems you're not now, and if RxFax seems to work for you, I'll try
moving to Fedora.  Can you fill me in on:

1) Where did you get the C headers from (what dir).
2) What HW are you using (processor, motherboard)
3) Verify you are successful faxing out (RxFax).

My earlier post regarding specific RxFax errors follows......

I'm trying to install the RxFax in Asterisk.  After much trouble getting
app_rxfax.c (and friends) compiles and installed into Asterisk (thanks to
the many asterisk-users messages) it did get it installed.  I have been
unable to receive a legible fax.  app_rxfax provides lots of debugging
information but none useful to me.  I was hoping that someone has an idea
what might be going on.

Asterisk version: Asterisk CVS-HEAD-08/12/04 ... on a i686 Linux (RedHat 9
2.4.20-31.9smp)
PC is a Tyan with P4 3.06Ghz hyperthreading
The spandsp is a recent download from 8/12/2004
I'm testing with a T1-PRI only (no analog cards), sending a fax from an HO
d135 all-in-one and tried a second Brothers "dumb" fax with the same
results.

Everything was compiled today and the non-fax asterisk is running just fine.

Here's what appears to be a problem: Fax3Decode2D: Warning, (FakeInput):
Line length mismatch at scanline 0 (got 3198, expected 1728).

Any help would be nice.

Jon

Here's the console log for the fax receive:

    -- Executing Answer("Zap/11-1", "") in new stack
    -- Accepting call from '8131231234' to '8133214321' on channel 0/11,
span 1
    -- Executing SetVar("Zap/11-1",
"FAXFILE=/var/spool/asterisk-fax/1092770077.3.tif") in new stack
    -- Executing RxFAX("Zap/11-1",
"/var/spool/asterisk-fax/1092770077.3.tif") in new stack
Changed from phase 0 to 1
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
<<< TSI: 43 34 34 32 39 20 38 36 39 20 20 20 20 20 20 20 20 20 20 20 20
TSI without final frame tag
Remote fax gave TSI as: "123 1234"
<<< DCS: 83 00 86 f0 80 80 00
DCS with final frame tag
In state 9
DCS:
Can receive fax
Selected data signalling rate: V.29, 9600bps
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 1649.53 (6)
Fast carrier down
Fast carrier up
Coarse carrier frequency 1700.08 (66)
Training error 5.417056
Training succeeded (constellation mismatch 9.565170)
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
Coarse carrier frequency 1700.10 (66)
Training error 4.295272
Training succeeded (constellation mismatch 7.705514)
Fast carrier trained
Fast carrier down
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 0 (got
3198, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 1 (got 0,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 4 (got
1729, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 5 (got
2347, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 6 (got
1729, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 7 (got
1989, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 8 (got
2222, expected 1728).
Fax3Decode2D: (FakeInput): Uncompressed data (not supported) at scanline 10
(x 4).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 10 (got 4,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 12 (got
2124, expected 1728).
Fax3Decode2D: (FakeInput): Bad code word at scanline 13 (x 483).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 13 (got 483,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 14 (got
1789, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 15 (got
2002, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 17 (got
2462, expected 1728).
Fax3Decode2D: (FakeInput): Bad code word at scanline 18 (x 0).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 18 (got 0,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 20 (got
3282, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 21 (got
2632, expected 1728).
Fax3Decode2D: (FakeInput): Bad code word at scanline 23 (x 29).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 23 (got 29,
expected 1728).
Fax3Decode2D: (FakeInput): Bad code word at scanline 24 (x 29).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 24 (got 29,
expected 1728).
Fax3Decode2D: (FakeInput): Uncompressed data (not supported) at scanline 25
(x 27).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 25 (got 27,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 26 (got
1729, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 28 (got
1859, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 29 (got 49,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 34 (got
1796, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 35 (got
1749, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 36 (got
2196, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 37 (got
1729, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 39 (got
3113, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 40 (got
3194, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 42 (got
2725, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 44 (got
2230, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 45 (got
1729, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 47 (got
2815, expected 1728).
Fax3Decode2D: (FakeInput): Bad code word at scanline 48 (x 705).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 48 (got 705,
expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 50 (got
1999, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 54 (got
1869, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 56 (got
2184, expected 1728).
Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 57 (got 0,
expected 1728).
Page 1 of /var/spool/asterisk-fax/1092770077.3.tif:
58 rows received
0 total bad rows
0 max consecutive bad rows
Changed from phase 5 to 3
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
    -- Channel 0/11, span 1 got hangup
    -- Hungup 'Zap/11-1'
Aug 17 15:18:45 NOTICE[1106410288]: chan_zap.c:7050 pri_dchannel: PRI got
event: 6 on Primary D-channel of
span 1
Aug 17 15:18:45 NOTICE[1106410288]: chan_zap.c:7050 pri_dchannel: PRI got
event: 6 on Primary D-channel of
span 1
Aug 17 15:18:45 NOTICE[1106410288]: chan_zap.c:7050 pri_dchannel: PRI got
event: 6 on Primary D-channel of
span 1

----- Original Message ----- 
From: "Simone Ricci" <simone.ricci at cwnet.it>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, August 19, 2004 10:40 AM
Subject: Re: [Asterisk-Users] spandsp


> FWI, I'm using it very successfully. Where's your problem?
> My system is running Fedora Core 2, libtiff and libtiff-devel as
> provided by distro (installed with apt-get, version 3.5.7). I've got to
> add some headers in /usr/include to get it work: tiffiop.h, tif_dir.h
> and ports.h
>
> Hope this helps.
>
> Cheers,
> Simone.
>
> Jon Bebeau ha scritto:
>
> > Seth,
> >
> > Are you using SpanDSP to receive faxes ???  I'm unable to get SpanDSP to
> > receive correctly and others I'm talking to (off list) are too.  Can you
> > list the set of sources your using (libtiff and audio) for us?
> >
> > Thanks
> > Jon
>
> _______________________________________________
> 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
>





More information about the asterisk-users mailing list