Bart Remmerie
2014-Sep-21 12:42 UTC
[asterisk-users] error receiving a fax ... but with a fax that was received without problems
Dear all, When receiving a fax, the extension is "spawned", despite nothing but positive messages (see below) The sending fax considers it a success & the verbose output of asterisk gives a "FAX_SUCCESS" and a "NO_ERROR" error in the ReceiveFax command. The problem is that all the next steps (conversion of the fax to pdf & sending it to a mailbox) are never executed. When I do this manually, there seems nothing wrong with the received file .... Any hints ? Asterisk output: * -- *Executing [502 at LocalSets:5] *ReceiveFAX*("*DAHDI/4-1*", " */tmp/201409211416.tif*") in new stack * -- *Channel 'DAHDI/4-1' receiving FAX '/tmp/201409211416.tif' * -- *Channel 'DAHDI/4-1' FAX session '0' started * -- *FAX handle 0: [ 037.139057 ], entering CLOSING state * -- *FAX handle 0: [ 037.139097 ], entering CLOSING state * -- *Channel 'DAHDI/4-1' FAX session '0' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 1, resolution: '204x196', transfer rate: '14400', remoteSID: '059323634' * == *Spawn extension (LocalSets, 502, 5) exited non-zero on 'DAHDI/4-1' Extensions-snippet exten => 502,1,Verbose(3,Incoming Fax) same => n,Set(FAXDEST=/tmp) same => n,Set(tempfax=${STRFTIME(,,%C%y%m%d%H%M)}) same => n,Verbose(3,- destination: ${FAXDEST}/${tempfax}.tif) same => n,ReceiveFax(${FAXDEST}/${tempfax}.tif) same => n,Verbose(3,- Fax receipt completed with status: ${FAXSTATUS}) same => n,Verbose(3,converting fax) same => n,System(/usr/bin/tiff2pdf ${FAXDEST}/${tempfax}.tif -o ${FAXDEST}/${tempfax}.pdf) same => n,Verbose(3,fax converted ... sending fax) same => n,System(echo "[TC] new fax" | mutt -s "TC:fax from ${CALLERID}" myname at mymail.com -F /root/.muttrc -a ${FAXDEST}/${tempfax} .pdf) same => n,Hangup() -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140921/5ae2e287/attachment.html>
Joshua Colp
2014-Sep-21 12:45 UTC
[asterisk-users] error receiving a fax ... but with a fax that was received without problems
Bart Remmerie wrote:> Dear all,Kia ora,> When receiving a fax, the extension is "spawned", despite nothing but > positive messages (see below) > > The sending fax considers it a success & the verbose output of asterisk > gives a "FAX_SUCCESS" and a "NO_ERROR" error in the ReceiveFax command. > > The problem is that all the next steps (conversion of the fax to pdf & > sending it to a mailbox) are never executed. When I do this manually, > there seems nothing wrong with the received file .... > > Any hints ?After the fax is completed the call is hung up so subsequent dialplan logic does not execute. You need to place the rest in the 'h' extension which is executed upon hangup. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Reasonably Related Threads
- Receiving faxes with spandsp question
- Sending and receiving fax with Digium FFA
- Fax for Asterisk, capable of receiving from website but not from fax machine !!
- Dialplan execution stops on app call even with TryExec (Am I missing something simple?)
- dialplan execution stops after ReceiveFax