Skip to main content

Send fax from web portal no longer working

Posted by chris on Thu, 05/20/2010

I had the Send fax option in the web portal working. At some point between MTE 6.0.1.78 and 6.0.1.81 it seems to have broken. When attempting to send either a pdf or tiff, I get the following error:

[May 20 10:19:08] ERROR[26103]: res_fax_digium.c:1749 dgm_fax_start: FAX handle 1: failed to queue document '/tmp/TENANT-EXT-2010-04-20-10-19-03.tiff'

Ghostscript is working properly, as I can upload the pdf and convert it manually. One thing I notice is the system time doesn't match the timestamp in the file name.

Asterisk 1.6.0.15 is running as root, so I don't think it's a permission issue. Any ideas what else to check as to why this is failing?

Chris


Submitted by chris on Thu, 05/20/2010 Permalink

The file is not there. I wasn't sure if the script created and then deleted it or if it just never got created at all.

Chris

Submitted by eeman on Thu, 05/20/2010 Permalink

open up a console and run

watch -n 1 ls -l /tmp/

then while thats running upload a file to fax. see if it ever shows up in the dir

CTRL-C to exit

Submitted by eeman on Thu, 05/20/2010 Permalink

well if the file is created, and dialplan gets to the part where it calls SendFax, then your problem is quite possibly the digium module.

I just confirmed that 6.0.1.81 works on an MTE box running asterisk 1.4.26.3 ..

[root@vpbx01 ~]# asterisk -r | grep fax
-- Attempting call on Local/5023150582@from-inside-bgn for s@tl-faxsend:1 (Retry 1)
-- Executing [s@tl-faxsend:1] Answer("Local/5023150582@from-inside-bgn-c98f,1", "") in new stack
-- Executing [s@tl-faxsend:2] Set("Local/5023150582@from-inside-bgn-c98f,1", "FAXOPT(localstationid)=5025895278") in new stack
-- Executing [s@tl-faxsend:3] Set("Local/5023150582@from-inside-bgn-c98f,1", "FAXOPT(ecm)=yes") in new stack
-- Executing [s@tl-faxsend:4] SendFAX("Local/5023150582@from-inside-bgn-c98f,1", "/tmp/bgn-564-2010-04-20-15-02-15.tiff|") in new stack
[2010-05-20 15:02:35] NOTICE[4133]: res_fax.c:1036 generic_fax_exec: Channel 'SIP/VPBX01-b7506de0' did not return a frame; probably hung up.
== Spawn extension (tl-faxsend, s, 4) exited non-zero on 'SIP/VPBX01-b7506de0'
-- Executing [h@tl-faxsend:1] GotoIf("SIP/VPBX01-b7506de0", "0?hangup") in new stack
-- Executing [h@tl-faxsend:2] GotoIf("SIP/VPBX01-b7506de0", "0?error") in new stack
-- Executing [h@tl-faxsend:3] GotoIf("SIP/VPBX01-b7506de0", "1?sendmail") in new stack
-- Goto (tl-faxsend,h,5)
-- Executing [h@tl-faxsend:5] System("SIP/VPBX01-b7506de0", "REMOTENUMBER=502xxxxxxx CONFSUCCESS=1 FAXFILE=/tmp/bgn-564-2010-04-20-15-02-15.tiff FAXERROR="NO_ERROR" STATUS=SUCCESS EMAILADDR=eeman@somedomain.com REMOTESTATIONID="BluegrassNet" FAXPAGES=1 FAXBITRATE=14400 /usr/local/sbin/faxreport.sh") in new stack
-- Executing [h@tl-faxsend:6] NoOp("SIP/VPBX01-b7506de0", "") in new stack

this seems to rule out dialplan. I have an STE asterisk 1.6.2.8 at home I can test with.

as far as the date being off by a month... yea it looks dumb but its only there to be unique so that there wouldnt be two identical files at the same time.. they get deleted once sent so I'm going to log that as a fairly low priority bug if thats ok :)

Submitted by chris on Mon, 06/07/2010 Permalink

Upgrading both Asterisk and Digium's fax modules resolved this issue. Thanks for the help on this one Erik.