[asterisk-users] Problem with ReceiveFax

Larry Moore lmoore at starwon.com.au
Mon Mar 12 06:49:47 CDT 2012


On 12/03/2012 5:27 PM, Ishfaq Malik wrote:
> On Fri, 2012-03-02 at 15:32 +0000, Ishfaq Malik wrote:
>
> I've tried this with the f option on receiveFax but it still isn't
> working. Any insight would be helpful as this is driving me a bit potty
>
>    == Using UDPTL CoS mark 5
>    == Using SIP RTP CoS mark 5
>      -- Executing [200 at local:1] Goto("SIP/588-00000000", "fax-in,s,1")
>      -- Goto (fax-in,s,1)
>      -- Executing [s at fax-in:1] Answer("SIP/588-00000000", "")
>      -- Executing [s at fax-in:2] Wait("SIP/588-00000000", "3")
>      -- Executing [s at fax-in:3] Set("SIP/588-00000000", "FAXFILE=/tmp/fax-588-20120312-092231.tiff")
>      -- Executing [s at fax-in:4] ReceiveFAX("SIP/588-00000000", "/tmp/fax-588-20120312-092231.tiff,f")
>      -- Channel 'SIP/588-00000000' receiving FAX '/tmp/fax-588-20120312-092231.tiff'
> [2012-03-12 09:22:34] WARNING[4529]: res_fax.c:1508 receivefax_t38_init: channel 'SIP/588-00000000' refused to negotiate T.38
>      -- Channel 'SIP/588-00000000' FAX session '0' started
> [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8740 process_sdp: Unsupported SDP media type in offer: audio 0 RTP/AVP 8
> [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8827 process_sdp: Failing due to no acceptable offer found
> [2012-03-12 09:22:44] ERROR[4529]: res_fax.c:1344 generic_fax_exec: channel 'SIP/588-00000000' FAX session '0' failure, reason: 'fax session timed-out' (TIMEOUT)
>      -- Executing [s at fax-in:5] Hangup("SIP/588-00000000", "")
>    == Spawn extension (fax-in, s, 5) exited non-zero on 'SIP/588-00000000'
>      -- Executing [h at fax-in:1] NoOP("SIP/588-00000000", "###       FAXSTATUS: FAILED")
>      -- Executing [h at fax-in:2] NoOP("SIP/588-00000000", "###        FAXERROR: TIMEOUT")
>      -- Executing [h at fax-in:3] NoOP("SIP/588-00000000", "###         FAXMODE: ")
>      -- Executing [h at fax-in:4] NoOP("SIP/588-00000000", "###        FAXPAGES: 0")
>      -- Executing [h at fax-in:5] NoOP("SIP/588-00000000", "###      FAXBITRATE: ")
>      -- Executing [h at fax-in:6] NoOP("SIP/588-00000000", "###   FAXRESOLUTION: ")
>      -- Executing [h at fax-in:7] NoOP("SIP/588-00000000", "### REMOTESTATIONID: ")
>      -- Executing [h at fax-in:8] System("SIP/588-00000000", "mail -s FaxToEmail ish at -net.co.uk<  /tmp/fax-588-20120312-092231.tiff")
>      -- FAX handle 0: [ 040.001588 ], entering CLOSING state
>      -- Channel 'SIP/588-00000000' FAX session '0' is complete, result: 'FAILED' (FAX_NO_FAX), error: 'T1_TIMEOUT', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''
>
> Thanks in Advance
>

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
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?


In my sip.conf I have the following;

[general]
.
.
.
faxdetect=cng
t38pt_udptl=yes,redundancy,maxdatagram=400
;t38pt_usertpsource=yes
.
.
.
[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.



More information about the asterisk-users mailing list