<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi all,<div><br></div><div>I have problem for receiving fax from multiple page fax that sent from fax machine (analog).</div><div><br></div><div>The error is :  WARNING T.30 Page did not end cleanly</div><div><br></div><div><br></div><div>This is my dialplan</div><div><br></div><div><div>[inboundfax]</div><div>exten => s,1,NoOp(**** FAX RECEIVED from ${CALLERID(num)} ${STRFTIME(${EPOCH},,%c)} ****)</div><div>exten => s,n,Set(FAXOPT(ecm)=yes)</div><div>exten => s,n,Set(FILENAME=fax-FR_${CALLERID(num)}-TO_${CALLERID(dnid)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})</div><div>exten => s,n,Set(FAXFILE=${FILENAME}.tif)</div><div>exten => s,n,Set(PDFFILE=${FILENAME}.pdf)</div><div>exten => s,n,Set(FAXOPT(ecm)=yes)</div><div>exten => s,n,Set(FAXOPT(headerinfo)=Received by MYCOMPANY ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M)})</div><div>exten => s,n,Set(FAXOPT(localstationid)=5555551212)</div><div>exten => s,n,Set(FAXOPT(maxrate)=14400)</div><div>exten => s,n,Set(FAXOPT(minrate)=9600)</div><div>exten => s,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})</div><div>exten => s,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})</div><div>exten => s,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})</div><div>exten => s,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})</div><div>exten => s,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})</div><div>exten => s,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)</div><div>exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})</div><div>exten => s,n,System(/usr/bin/tiff2pdf "/var/spool/asterisk/fax/${FAXFILE}" -o "/var/spool/asterisk/fax/${PDFFILE}")</div><div>exten => s,n,Hangup()</div><div>exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})</div><div>exten => h,n,NoOp(FAXOPT(error) : ${FAXOPT(error)})</div><div>exten => h,n,NoOp(FAXOPT(modem) : ${FAXOPT(modem)})</div><div>exten => h,n,NoOp(FAXOPT(pages) : ${FAXOPT(pages)})</div><div>exten => h,n,NoOp(FAXOPT(rate) : ${FAXOPT(rate)})</div><div>exten => h,n,NoOp(FAXOPT(status) : ${FAXOPT(status)})</div><div>exten => h,n,NoOp(FAXOPT(statusstr) : ${FAXOPT(statusstr)})</div></div><div><br></div><div><br></div><div><br></div><div>And this is my log</div><div><br></div><div><br></div><div><div>  == Using SIP RTP CoS mark 5</div><div>    -- Executing [999@incoming:1] NoOp("SIP/192.168.100.252-00000059", "PUBLIC CONTEXT -- Incoming Call - CID:02153662059 - ANI:02153662059 - DNID:999 - RDNIS:") in new stack</div><div>    -- Executing [999@incoming:2] Set("SIP/192.168.100.252-00000059", "fax2file=yes") in new stack</div><div>    -- Executing [999@incoming:3] Wait("SIP/192.168.100.252-00000059", "4") in new stack</div><div>    -- Executing [999@incoming:4] Answer("SIP/192.168.100.252-00000059", "") in new stack</div><div>       > 0x7ffc5001e090 -- Probation passed - setting RTP source address to <a href="http://192.168.100.252:6990" target="_blank">192.168.100.252:6990</a></div><div>    -- Executing [999@incoming:5] Ringing("SIP/192.168.100.252-00000059", "") in new stack</div><div>    -- Executing [999@incoming:6] Progress("SIP/192.168.100.252-00000059", "") in new stack</div><div>    -- Executing [999@incoming:7] GotoIf("SIP/192.168.100.252-00000059", "1?infax:invoice") in new stack</div><div>    -- Goto (incoming,999,8)</div><div>    -- Executing [999@incoming:8] Gosub("SIP/192.168.100.252-00000059", "inboundfax,s,1") in new stack</div><div>    -- Executing [s@inboundfax:1] NoOp("SIP/192.168.100.252-00000059", "**** FAX RECEIVED from 02153662059 Tue Dec 23 17:45:42 2014 ****") in new stack</div><div>    -- Executing [s@inboundfax:2] Set("SIP/192.168.100.252-00000059", "FAXOPT(ecm)=yes") in new stack</div><div>    -- Executing [s@inboundfax:3] Set("SIP/192.168.100.252-00000059", "FILENAME=fax-FR_02153662059-TO_999-20141223-174542") in new stack</div><div>    -- Executing [s@inboundfax:4] Set("SIP/192.168.100.252-00000059", "FAXFILE=fax-FR_02153662059-TO_999-20141223-174542.tif") in new stack</div><div>    -- Executing [s@inboundfax:5] Set("SIP/192.168.100.252-00000059", "PDFFILE=fax-FR_02153662059-TO_999-20141223-174542.pdf") in new stack</div><div>    -- Executing [s@inboundfax:6] Set("SIP/192.168.100.252-00000059", "FAXOPT(ecm)=yes") in new stack</div><div>    -- Executing [s@inboundfax:7] Set("SIP/192.168.100.252-00000059", "FAXOPT(headerinfo)=Received by MYCOMPANY 2014-12-23 17:45") in new stack</div><div>    -- Executing [s@inboundfax:8] Set("SIP/192.168.100.252-00000059", "FAXOPT(localstationid)=5555551212") in new stack</div><div>    -- Executing [s@inboundfax:9] Set("SIP/192.168.100.252-00000059", "FAXOPT(maxrate)=14400") in new stack</div><div>    -- Executing [s@inboundfax:10] Set("SIP/192.168.100.252-00000059", "FAXOPT(minrate)=9600") in new stack</div><div>    -- Executing [s@inboundfax:11] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(ecm) : yes") in new stack</div><div>    -- Executing [s@inboundfax:12] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(headerinfo) : Received by MYCOMPANY 2014-12-23 17:45") in new stack</div><div>    -- Executing [s@inboundfax:13] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(localstationid) : 5555551212") in new stack</div><div>    -- Executing [s@inboundfax:14] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(maxrate) : 14400") in new stack</div><div>    -- Executing [s@inboundfax:15] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(minrate) : 9600") in new stack</div><div>    -- Executing [s@inboundfax:16] NoOp("SIP/192.168.100.252-00000059", "**** RECEIVING FAX : fax-FR_02153662059-TO_999-20141223-174542.tif ****") in new stack</div><div>    -- Executing [s@inboundfax:17] ReceiveFAX("SIP/192.168.100.252-00000059", "/var/spool/asterisk/fax/fax-FR_02153662059-TO_999-20141223-174542.tif") in new stack</div><div>    -- Channel 'SIP/192.168.100.252-00000059' receiving FAX '/var/spool/asterisk/fax/fax-FR_02153662059-TO_999-20141223-174542.tif'</div><div>  == Using UDPTL CoS mark 5</div><div>[Dec 23 17:46:40] WARNING[13447][C-00000031]: res_fax_spandsp.c:438 spandsp_log: WARNING T.30 Page did not end cleanly</div><div>    -- Executing [s@inboundfax:18] System("SIP/192.168.100.252-00000059", "/usr/bin/tiff2pdf "/var/spool/asterisk/fax/fax-FR_02153662059-TO_999-20141223-174542.tif" -o "/var/spool/asterisk/fax/fax-FR_02153662059-TO_999-20141223-174542.pdf"") in new stack</div><div>       > 0x7ffc5001e090 -- Probation passed - setting RTP source address to <a href="http://192.168.100.252:6990" target="_blank">192.168.100.252:6990</a></div><div>    -- Executing [s@inboundfax:19] Hangup("SIP/192.168.100.252-00000059", "") in new stack</div><div>  == Spawn extension (inboundfax, s, 19) exited non-zero on 'SIP/192.168.100.252-00000059'</div><div>    -- Executing [h@inboundfax:1] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(ecm) : yes") in new stack</div><div>    -- Executing [h@inboundfax:2] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(error) : ") in new stack</div><div>    -- Executing [h@inboundfax:3] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(modem) : V17,V27,V29") in new stack</div><div>    -- Executing [h@inboundfax:4] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(pages) : 3") in new stack</div><div>    -- Executing [h@inboundfax:5] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(rate) : 9600") in new stack</div><div>    -- Executing [h@inboundfax:6] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(status) : SUCCESS") in new stack</div><div>    -- Executing [h@inboundfax:7] NoOp("SIP/192.168.100.252-00000059", "FAXOPT(statusstr) : OK") in new stack</div></div><div><br></div><div><br></div><div>I'd tried searching @ google all day, but cannot find the answer. </div><div><br></div><div><br></div><div>Thanks in advance...</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Ikka</div><div> </div></font></span></div>
</div><br></div>