[asterisk-users] Problem with ReceiveFax
Ishfaq Malik
ish at pack-net.co.uk
Mon Mar 12 09:53:19 CDT 2012
On Mon, 2012-03-12 at 09:11 -0400, Bryant Zimmerman wrote:
> Looking at the information you have sent in this posting in certainly
> appears that the 'f' option has indeed helped however you have
> another
> matter to overcome.
>
> You may wish to set the following parameters in your peer
> configuration
> for 588.
>
> ignoresdpversion=yes
This one passed me by, thanks for the info
> directmedia=no
>
> I use Spandsp FAX successfully.
>
> I have also attached an analogue Fax Modem to the FXS port on an
> SPA8800
> and an HT-502 and have been able to receive faxes on them when I last
> tested, the SPA8800 like the HT-502 are now in storage.
>
> Looking at the User Guide for the Vigor 2701 there is an option in
> the
> configuration to enable T.38 mode, did you enable it?
Foolishly I hadn't and feel very stupid about that!
>
>
> In my sip.conf I have the following;
>
> [general]
> .
> .
> .
> faxdetect=cng
> t38pt_udptl=yes,redundancy,maxdatagram=400
tried this and ,fec,
> ;t38pt_usertpsource=yes
had this already set
> .
> .
> .
> [903]
> ; Cisco SPA8800 FXS Port 3
> ; Grandstream HT502 FXS Port 1
> ; Analogue FAX Modem attached
> type=friend
> defaultuser=903
> secret=you_guessed_it
> call-limit=2
> disallow=g722
> transport=udp
> qualify=yes
> canreinvite=no
> directmedia=no
> host=dynamic
> context=FAX-T38
> faxdetect=no
>
> Larry.
>
>
>
It's still not working but not throwing any errors at all. I've checked
that the fax machine itself works (actually hoping that it wouldn't and
that would explain my problem) by plugging it into a phone line and it
does.
Now getting the following
== Using UDPTL CoS mark 5
== Using SIP RTP CoS mark 5
-- Executing [200 at local:1] Goto("SIP/588-0000000b", "fax-in,s,1")
-- Goto (fax-in,s,1)
-- Executing [s at fax-in:1] Answer("SIP/588-0000000b", "")
-- Executing [s at fax-in:2] Wait("SIP/588-0000000b", "3")
-- Executing [s at fax-in:3] Set("SIP/588-0000000b", "FAXFILE=/tmp/fax-588-20120312-144800.tiff")
-- Executing [s at fax-in:4] ReceiveFAX("SIP/588-0000000b", "/tmp/fax-588-20120312-144800.tiff,f")
-- Channel 'SIP/588-0000000b' receiving FAX '/tmp/fax-588-20120312-144800.tiff'
-- Channel 'SIP/588-0000000b' FAX session '11' started
-- FAX handle 0: [ 000.000190 ], STAT_EVT_STRT_RX st: IDLE rt: IDLENSRX
-- FAX handle 0: [ 000.000277 ], STAT_EVT_RX_HW_RDY st: WT_RX_HW_RDY rt: RRDYNHRY
-- FAX handle 0: [ 000.000308 ], P30EVN_RECEIVE_STARTED
-- FAX handle 0: [ 000.000341 ], STAT_INFO_CSI
-- FAX handle 0: [ 000.000377 ], STAT_INFO_DIS
-- FAX handle 0: [ 002.174255 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 005.503113 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 005.503170 ], STAT_INFO_CSI
-- FAX handle 0: [ 005.503202 ], STAT_INFO_DIS
-- FAX handle 0: [ 007.669035 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 011.001891 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 011.001943 ], STAT_INFO_CSI
-- FAX handle 0: [ 011.001974 ], STAT_INFO_DIS
-- FAX handle 0: [ 013.169811 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 016.502670 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 016.502723 ], STAT_INFO_CSI
-- FAX handle 0: [ 016.502753 ], STAT_INFO_DIS
-- FAX handle 0: [ 018.668594 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 022.001447 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 022.001496 ], STAT_INFO_CSI
-- FAX handle 0: [ 022.001527 ], STAT_INFO_DIS
-- FAX handle 0: [ 024.169368 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 027.503224 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 027.503282 ], STAT_INFO_CSI
-- FAX handle 0: [ 027.503313 ], STAT_INFO_DIS
-- FAX handle 0: [ 029.669146 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 033.002003 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 033.002054 ], STAT_INFO_CSI
-- FAX handle 0: [ 033.002084 ], STAT_INFO_DIS
-- FAX handle 0: [ 035.169922 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21
-- FAX handle 0: [ 038.502780 ], STAT_EVT_T4_EXP st: WT_DIS_RSP rt: RXXXNFRX
-- FAX handle 0: [ 038.502835 ], STAT_INFO_CSI
-- FAX handle 0: [ 038.502866 ], STAT_INFO_DIS
-- FAX handle 0: [ 040.001719 ], STAT_EVT_T1_EXP st: WT_DIS_RSP rt: WDSRNT1X
-- FAX handle 0: [ 040.001764 ], P30EVN_PHASE_E
-- FAX handle 0: [ 040.001783 ], entering CLOSING state
-- FAX handle 0: [ 040.001798 ], STAT_FRM_DCN
-- FAX handle 0: [ 040.668702 ], STAT_EVT_TX_V21_DONE st: SEND_DCN rt: XDCNNT21
-- FAX handle 0: [ 041.195677 ], STAT_EVT_TX_V21_DONE st: WT_HW_CLS rt: UNEXPECT
-- FAX handle 0: [ 043.170593 ], STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS
-- FAX handle 0: [ 043.170706 ], STAT_SES_COMPLETE
-- FAX handle 0: [ 043.170730 ], P30EVN_COMPLETE
-- Channel 'SIP/588-0000000b' FAX session '11' is complete, result: 'FAILED' (FAX_NO_FAX), error: 'T1_TIMEOUT', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''
-- Executing [s at fax-in:5] Hangup("SIP/588-0000000b", "")
== Spawn extension (fax-in, s, 5) exited non-zero on 'SIP/588-0000000b'
-- Executing [h at fax-in:1] NoOP("SIP/588-0000000b", "### FAXSTATUS: FAILED")
-- Executing [h at fax-in:2] NoOP("SIP/588-0000000b", "### FAXERROR: T1_TIMEOUT")
-- Executing [h at fax-in:3] NoOP("SIP/588-0000000b", "### FAXMODE: ")
-- Executing [h at fax-in:4] NoOP("SIP/588-0000000b", "### FAXPAGES: 0")
-- Executing [h at fax-in:5] NoOP("SIP/588-0000000b", "### FAXBITRATE: 2400")
-- Executing [h at fax-in:6] NoOP("SIP/588-0000000b", "### FAXRESOLUTION: unknown")
-- Executing [h at fax-in:7] NoOP("SIP/588-0000000b", "### REMOTESTATIONID: ")
-- Executing [h at fax-in:8] System("SIP/588-0000000b", "mail -s FaxToEmail ish at pack-net.co.uk < /tmp/fax-588-20120312-144800.tiff")
Thanks for the input so far. I'm going to keep plugging away and if anyone has any insights, they will be gladly appreciated.
Ish
--
Ishfaq Malik
Software Developer
PackNet Ltd
Office: 0161 660 3062
More information about the asterisk-users
mailing list