[asterisk-bugs] [Asterisk 0014258]: app_fax: ReceiveFax fails with more than 1 page.

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 30 14:49:35 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14258 
====================================================================== 
Reported By:                seandarcy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14258
Category:                   Applications/app_fax
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1-beta4 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-16 11:38 CST
Last Modified:              2009-01-30 14:49 CST
====================================================================== 
Summary:                    app_fax: ReceiveFax fails with more than 1 page.
Description: 
1.6.1-beta4: pstn connected to TDM400P. The sender is the office fax (
Brother ) used daily without problems. I can receive faxes with the pstn
hooked up to my fax machine.

A one page fax works fine, but two pages causes an error. Same problem
whether using * built with and using spandsp-0.0.5-pre4 or built with and
using 0.0.6-pre3, but different error messages:

0.0.5-pre4:

    -- Executing [fax at incoming-pstn-line:1] NoOp("DAHDI/4-1", "Fax
Detected") in new stack
    -- Executing [fax at incoming-pstn-line:2] Goto("DAHDI/4-1",
"incoming-fax,s,1") in new stack
    -- Goto (incoming-fax,s,1)
    -- Executing [s at incoming-fax:1] Set("DAHDI/4-1",
"FAXFILE=/var/spool/asterisk/fax/200901161227-0") in new stack
    -- Executing [s at incoming-fax:2] ReceiveFAX("DAHDI/4-1",
"/var/spool/asterisk/fax/200901161227-0.tif") in new stack
[Jan 16 12:28:58] WARNING[24687]: app_fax.c:177 phase_e_handler: Error
transmitting fax. result=49: The call dropped prematurely.
[Jan 16 12:28:58] WARNING[24687]: app_fax.c:644 transmit: Transmission
error
  == Spawn extension (incoming-fax, s, 2) exited non-zero on 'DAHDI/4-1'

0.0.6-pre3:

    -- Executing [s at incoming-fax:1] Set("DAHDI/4-1",
"FAXFILE=/var/spool/asterisk/fax/200901161136-0") in new stack
    -- Executing [s at incoming-fax:2] ReceiveFAX("DAHDI/4-1",
"/var/spool/asterisk/fax/200901161136-0.tif") in new stack
[Jan 16 11:37:35] WARNING[6584]: app_fax.c:177 phase_e_handler: Error
transmitting fax. result=13: Unexpected message received.
[Jan 16 11:37:35] WARNING[6584]: app_fax.c:647 transmit: Transmission
failed
    -- Executing [s at incoming-fax:3] Hangup("DAHDI/4-1", "") in new stack

On the sending machine, no error for one page faxes, for two pages "Poor
line condition"
====================================================================== 

---------------------------------------------------------------------- 
 (0099151) pj (reporter) - 2009-01-30 14:49
 http://bugs.digium.com/view.php?id=14258#c99151 
---------------------------------------------------------------------- 
I have similar problem with Asterisk SVN-trunk-r171528 and
libspandsp1-0.0.5-0.pre4.1

I'm receiving fax via SIP channel, using codec alaw

Is there some way, how to debug similar problems with fax transmission?
it ends with following error:

[Jan 30 21:40:02] WARNING[28027]: app_fax.c:222 phase_e_handler: Error
transmitting fax. result=49: The call dropped prematurely.
[Jan 30 21:40:02] WARNING[28027]: app_fax.c:689 transmit: Transmission
error


core show channel:

           Type: SIP
       UniqueID: 1233347938.561
      Caller ID: 0950516569
 Caller ID Name: (N/A)
    DNID Digits: 1#530507
       Language: cz
          State: Up (6)
          Rings: 0
  NativeFormats: 0x8 (alaw)
    WriteFormat: 0x40 (slin)
     ReadFormat: 0x40 (slin)
 WriteTranscode: Yes
  ReadTranscode: Yes
1st File Descriptor: 14
      Frames in: 3394
     Frames out: 2026
 Time to Hangup: 0
   Elapsed Time: 0h0m47s
  Direct Bridge: <none>
Indirect Bridge: <none>
 --   PBX   --
        Context: prijem_faxu
      Extension: s
       Priority: 5
     Call Group: 0
   Pickup Group: 0
    Application: ReceiveFAX
           Data: /var/spool/asterisk/fax/20090130-213904.tif
    Blocking in: ast_waitfor_nandfds
      Variables:
FAXMODE=audio
FAXERROR=Channel problems
FAXSTATUS=FAILED
FAXFILE=/var/spool/asterisk/fax/20090130-213904 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-30 14:49 pj             Note Added: 0099151                          
======================================================================




More information about the asterisk-bugs mailing list