Chandrakant Solanki
2012-Oct-30 05:49 UTC
[asterisk-users] asterisk 1.8.13 receive fax + call drop
Hi, We are using Asterisk V1.8.13.0, Spandsp FAX Driver: 20090502 044449. Unable to ReceiveFAX. We are using res_fax.so and res_fax_spandsp.so Following is the dialplan. [for-fax] exten => _XX.,1,Goto(example-faxin,s,1) [example-faxin] exten => s,1,Set(E_MAIL=${ODBC_BOLO_FAX_ACTIVE(${DID:2})}) ;exten => s,n,GotoIf($[${ODBCROWS} < 1]?FAXNOTFOUND) ;exten => s,n,GotoIf(${ISNULL(${E_MAIL})}?SERVICENOTFOUND:) exten => s,n,Set(LOCALHEADERINFO= fax termination -www.example.com) exten => s,n,Set(LOCALSTATIONINFO= FAX) exten => s,n,Set(FAXFILE=/tmp/fax_test/${UNIQUEID}.tif) exten => s,n,ReceiveFAX(${FAXFILE}) exten => s,n,Hangup() exten => h,1,NoOp(receivefax completed and status ${FAXSTATUS}) exten => h,n,NoOp(RX: FAXERROR is ${FAXERROR}) exten => h,n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID}) exten => h,n,NoOp(RX: FAXPAGES is ${FAXPAGES}) exten => h,n,NoOp(RX: FAXRESOLUTION is ${FAXRESOLUTION}) exten => h,n,NoOp(RX: FAXBITRATE is ${FAXBITRATE}) exten => h,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS}) exten => h,n,NoOp(RX: PHASESTRING is ${PHASEESTRING}) We got the constantly error :: "The call dropped prematurely". We are not using T.38, we need to send and receive FAX on PSTN only. I am very new to asterisk. Please suggest me to running FAX module without any problem. Let me know if more information required from my end. Sometimes fax receive successfully but at the end it shows failure with same "The call drop prematurely" error and WARNING T.30 Page did not end cleanly. -- Executing [s at example-faxin:4] Set("SIP/52987-00000000", "FAXFILE=/tmp/fax_test/1-1351164952.0.tif") in new stack -- Executing [s at example-faxin:5] ReceiveFAX("SIP/52987-00000000", "/tmp/fax_test/1-1351164952.0.tif") in new stack -- Channel 'SIP/52987-00000000' receiving FAX '/tmp/fax_test/1-1351164952.0.tif' [Oct 25 17:06:34] WARNING[9880]: res_fax_spandsp.c:369 spandsp_log: WARNING T.30 Page did not end cleanly == Spawn extension (example-faxin, s, 5) exited non-zero on 'SIP/52987-00000000' -- Executing [h at example-faxin:1] NoOp("SIP/52987-00000000", "receivefax completed and status FAILED") in new stack -- Executing [h at example-faxin:2] NoOp("SIP/52987-00000000", "RX: FAXERROR is The call dropped prematurely") in new stack -- Executing [h at example-faxin:3] NoOp("SIP/52987-00000000", "RX: REMOTESTATIONID is 30584433 ") in new stack -- Executing [h at example-faxin:4] NoOp("SIP/52987-00000000", "RX: FAXPAGES is 0") in new stack -- Executing [h at example-faxin:5] NoOp("SIP/52987-00000000", "RX: FAXRESOLUTION is 8031x3850") in new stack -- Executing [h at example-faxin:6] NoOp("SIP/52987-00000000", "RX: FAXBITRATE is 9600") in new stack -- Executing [h at example-faxin:7] NoOp("SIP/52987-00000000", "RX: PHASEESTATUS is ") in new stack -- Executing [h at example-faxin:8] NoOp("SIP/52987-00000000", "RX: PHASESTRING is ") in new stack -- Regards, Chandrakant Solanki -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121030/b5385efa/attachment.htm>