[Asterisk-bsd] app_rxfax

Alex Ayala alex at ayalanetworks.com
Fri Oct 28 18:58:43 CDT 2005


Ok I got Rxfax and Txfax applications to load fine when I start asterisk.
But now I'm having problems getting rxfax to work.  It worked twice and
after that I get nothing when sending a fax to asterisk.  In the logs I
notice this:

-- Executing Wait("IAX2/iaxmixnetworks at iaxmixnetworks/1", "2") in new stack
-- Executing Answer("IAX2/iaxmixnetworks at iaxmixnetworks/1", "") in new stack
-- Executing NVFaxDetect("IAX2/iaxmixnetworks at iaxmixnetworks/1", "") in new
stack
Oct 28 18:22:23 NOTICE[36683]: app_nv_faxdetect.c:215 nv_detectfax_exec:
Redirecting IAX2/iaxmixnetworks at iaxmixnetworks/1 to fax extension
-- Executing Goto("IAX2/iaxmixnetworks at iaxmixnetworks/1", "fax|s|1") in new
stack
-- Goto (fax,s,1)
-- Executing SetVar("IAX2/iaxmixnetworks at iaxmixnetworks/1",
"FAXFILE=/tmp/asterisk-36682-1130538137.0.tif") in new stack
-- Executing SetVar("IAX2/iaxmixnetworks at iaxmixnetworks/1",
"EMAILADDR=blah") in new stack
-- Executing RxFAX("IAX2/iaxmixnetworks at iaxmixnetworks/1", "
/tmp/asterisk-36682-1130538137.0.tif|debug") in new stack
Oct 28 18:22:23 NOTICE[36683]: channel.c:1371 ast_read: Dropping
incompatible voice frame on IAX2/iaxmixnetworks at iaxmixnetworks/1 of format
slin since our native format has changed to ulaw

Changed from phase 1 to 4
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
Slow carrier down
T4 timeout in state 9
Changed from phase 3 to 4
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
T2 timeout
Start receiving document
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
T4 timeout in state 9
Changed from phase 3 to 4
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
T2 timeout
Start receiving document
Changed from phase 3 to 4
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
T4 timeout in state 9
Changed from phase 3 to 4
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
T2 timeout
Start receiving document
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
T4 timeout in state 9
Changed from phase 3 to 4
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
T2 timeout
Start receiving document
Changed from phase 3 to 4
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
Slow carrier down
Slow carrier up
T4 timeout in state 9
Changed from phase 3 to 4
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
T2 timeout
Start receiving document
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



Other times I get training error.  From what I've read around this could be
because of jitter or bad connection?? But why did it work the first two
times and then never again. And no tiff file is created.

This is my extention.conf
exten => s,1,wait(2)
exten => s,2,Answer()
exten => s,3,NVFaxDetect()
exten => s,4,Background(english2)
exten => fax,1,goto(fax,s,1)

[fax]
exten => s,1,SetVar(FAXFILE=/tmp/${UNIQUEID}.tif)
exten => s,2,SetVar(EMAILADDR=blah)
exten => s,3,rxfax(${FAXFILE}|debug)
;exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR}
${CALLERIDN
UM})


I'm using FBSD 5.3, Asterisk 1.09 latest from ports and spandsp 0.0.2-pre18
from ports.  If anyone knows what could be causing the problem please let me
know.

Thanks,

Alex




More information about the Asterisk-BSD mailing list