Summary:ASTERISK-19836: Since change 325816 (T.38-gateway code) ReceiveFAX via T.38 immediately fail. always
Reporter:Kristijan Vrban (vrban)Labels:
Date Opened:2012-05-03 13:00:06Date Closed:2012-06-22 08:48:46
Versions:10.4.0 Frequency of
Environment:Attachments:( 0) fax_fail_debug.txt
Description:Since change 325816 (T.38-gateway code) ReceiveFAX via T.38 immediately fail. always.

do {code}svn merge -c -325816 http://svn.asterisk.org/svn/asterisk/trunk{code} then it's working again
Comments:By: Matt Jordan (mjordan) 2012-05-04 08:13:46.311-0500

We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

Please also attach your sip.conf and extensions.conf.

By: Kristijan Vrban (vrban) 2012-05-04 08:48:50.720-0500

full debug output in: fax_fail_debug.txt

exten => s,1,Noop(>>>>>>> Receive a Fax <<<<<<<)
same => n,Set(faxuid=${CUT(UNIQUEID,.,1)}${CUT(UNIQUEID,.,2)})
same => n,Set(FAXOPT(localstationid)=${orig_dialed_num})
same => n,Answer
same => n,Playtones(ring)
same => n,Wait(1)
same => n,StopPlaytones
same => n,Set(TIMEOUT(absolute)=7200)
same => n,ReceiveFAX(/tmp/fax-${faxuid}.tif,f)
same => n,Hangup

no specific t.38/fax settings. only asterisk defaults

By: Kristijan Vrban (vrban) 2012-05-04 08:56:01.834-0500

so the error is here:

[May  4 15:41:41] DEBUG[32702]: res_fax_spandsp.c:364 t30_phase_e_handler: FAX session '1' entering phase E
[May  4 15:41:41] DEBUG[32702]: res_fax_spandsp.c:381 t30_phase_e_handler: FAX session '1' completed with result: FAILED (The call dropped prematurely)

immediately after t.38 re-INVITE is done, res_fax_spandsp return the "The call dropped prematurely" error.

By: Matt Jordan (mjordan) 2012-05-07 09:01:50.748-0500

It appears as if the endpoint is prematurely terminating the fax session.  A phase 'E' was received from the fax endpoint, which indicates Call Release.  Can you attach a pcap of the packet traffic?

By: Matt Jordan (mjordan) 2012-06-22 08:48:36.429-0500

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines