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