<div dir="ltr">Dear all,<div><br></div><div>When receiving a fax, the extension is "spawned", despite nothing but positive messages (see below)</div><div><br></div><div>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.</div><div><br></div><div>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 ....</div><div><br></div><div>Any hints ?</div><div><br></div><div>Asterisk output:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>Executing [502@LocalSets:5] <span style="color:rgb(52,187,199)"><b>ReceiveFAX</b></span>("<span style="color:rgb(213,59,211)"><b>DAHDI/4-1</b></span>", "<span style="color:rgb(213,59,211)"><b>/tmp/201409211416.tif</b></span>") in new stack</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>Channel 'DAHDI/4-1' receiving FAX '/tmp/201409211416.tif'</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>Channel 'DAHDI/4-1' FAX session '0' started</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>FAX handle 0: [ 037.139057 ], entering CLOSING state</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>FAX handle 0: [ 037.139097 ], entering CLOSING state</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> -- </b>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'</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b> == </b>Spawn extension (LocalSets, 502, 5) exited non-zero on 'DAHDI/4-1'</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Extensions-snippet</p><p style="margin:0px;font-size:11px;font-family:Menlo"><span style="color:rgb(195,55,32)">exten => </span><span style="color:rgb(52,189,38)">502</span>,<span style="color:rgb(213,59,211)">1</span>,<span style="color:rgb(206,121,36)">Verbose</span>(3,Incoming Fax)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Set</span>(<span style="color:rgb(195,55,32)">FAXDEST</span>=/tmp)</p><p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(52,187,199)"><span style="color:rgb(0,0,0)"> same => n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(195,55,32)">tempfax</span><span style="color:rgb(0,0,0)">=</span>${STRFTIME(,,%C%y%m%d%H%M)}<span style="color:rgb(0,0,0)">)</span></p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Verbose</span>(3,- destination: <span style="color:rgb(195,55,32)">${FAXDEST}</span>/<span style="color:rgb(195,55,32)">${tempfax}</span>.tif)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">ReceiveFax</span>(<span style="color:rgb(195,55,32)">${FAXDEST}</span>/<span style="color:rgb(195,55,32)">${tempfax}</span>.tif)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Verbose</span>(3,- Fax receipt completed with status: <span style="color:rgb(195,55,32)">${FAXSTATUS}</span>)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Verbose</span>(3,converting fax)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">System</span>(/usr/bin/tiff2pdf <span style="color:rgb(195,55,32)">${FAXDEST}</span>/<span style="color:rgb(195,55,32)">${tempfax}</span>.tif -o <span style="color:rgb(195,55,32)">${FAXDEST}</span>/<span style="color:rgb(195,55,32)">${tempfax}</span>.pdf)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Verbose</span>(3,fax converted ... sending fax)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">System</span>(echo "<span style="color:rgb(213,59,211)">[TC]</span> new fax" | mutt -s "TC:fax from <span style="color:rgb(195,55,32)">${CALLERID}</span>" <a href="mailto:myname@mymail.com">myname@mymail.com</a> -F /root/.muttrc -a <span style="color:rgb(195,55,32)">${FAXDEST}</span>/<span style="color:rgb(195,55,32)">${tempfax}</span>.pdf)</p><p style="margin:0px;font-size:11px;font-family:Menlo"> same => n,<span style="color:rgb(206,121,36)">Hangup</span>()</p><p style="margin:0px;font-size:11px;font-family:Menlo">
</p><p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p></div></div>