Fax not detected

Incoming fax isn’t detected. I know it isn’t a firewall problem since fax worked on the previous installation of Asterisk. I loaded the modules res_fax.so and res_fax_spandsp.so.

Thanks for any suggestions.

sip.con:
faxdetect=yes
t38pt_udptl = yes

extensions.conf:
exten => 15182222222,1,GoTo(OFFICE,15182222222,1)

[OFFICE]
exten => fax,1,Verbose(3,Incoming fax)
same => n,Set(FAXDEST=/tmp)

; put a timestamp on this call so the resulting file is unique

same => n,Set(tempfax=${STRFTIME(,%C%y%m%d%H%M)})
same => n,ReceiveFax(/tmp/${tempfax}.tif)
same => n,System(echo “Attached is the fax sent to you.” | mutt -s “:white_check_mark: NEW FAX RECEIVED” tome@myemail.com -a/tmp/${tempfax}.tif)
same => n,Verbose(3,- Fax receipt completed with status: ${FAXSTATUS})

exten => _15182222222,1,Answer(100)
same => n,wait(3)
same => n,Background(Watson)
same => n,WaitExten()
same => n,Hangup()

CLI:
== Using SIP RTP CoS mark 5
– Executing [15182222222@default:1] Goto(“SIP/Bulkvs-0000331b”, “OFFICE,15182222222,1”) in new stack
– Goto (OFFICE,15182222222,1)
– Executing [15182222222@OFFICE:1] Answer(“SIP/Bulkvs-0000331b”, “100”) in new stack
– Executing [15182222222@OFFICE:2] Wait(“SIP/Bulkvs-0000331b”, “3”) in new stack
– Executing [15182222222@OFFICE:3] BackGround(“SIP/Bulkvs-0000331b”, “Watson”) in new stack
– <SIP/Bulkvs-0000331b> Playing ‘Watson.gsm’ (language ‘en’)
– Executing [15182222222@OFFICE:4] WaitExten(“SIP/Bulkvs-0000331b”, “”) in new stack
– Timeout on SIP/Bulkvs-0000331b, continuing…
– Executing [15182222222@OFFICE:5] Hangup(“SIP/Bulkvs-0000331b”, “”) in new stack
== Spawn extension (OFFICE, 15182222222, 5) exited non-zero on ‘SIP/Bulkvs-0000331b’

Had to change t38pt_udptno = no and all works well.