Configure fax send and received calls T38

I have configured asterisk to send and received fax with install tiff and spandsp for asterisk 13.20.
My fax calls get failed with error 488. Trace showing that it has been sent reply 488 for t38 invite by other ends.

Can anyone please help me to succeed in my fax call testing. Here I attaching my pcap file as well.

You waited only an hour before posting on this again. This is considered rude as people live in different places in the world with different timezones, so some may be asleep.

You will also need to provide the configuration (sip.conf or pjsip.conf) and information about the network layout (which is Asterisk) and what exactly you are trying to do.

Hi Sorry for that. Here I attaching you the sip.conf of my asterisk.

what I am trying to do is make fax call(T38) from asterisk. I was able to run other asterisks successful. but in here I am getting T38 invite from other end instead of my T38 Invite.

And for that invite it send 488 Error.

[general]
dtmfmode = rfc2833
srvlookup=yes
udpbindaddr=0.0.0.0 ; listen for UDP requests on all interfaces
directmedia = no
insecure=port,invite
canreinvite=yes
progressinband=never
allowguest=no
alwaysauthreject=yes
faxdetect = yes
t38pt_udptl = yes,redundancy
prematuremedia = yes

session-timers=originate
session-expires=3600
session-minse=180
session-refresher=uac

;========================================================
;===========START CLIENT SIP CONFIGURATIONS =============
;========================================================

;=========================================================
;============END OF CLIENT SIP CONFIGURATIONS=============
;=========================================================

[sipfax-1012common]
type=peer
context=fromArptelTrunk
host=92.63.153.53
nat=yes
disallow=all
allow=ulaw
allow=alaw

[trunk-loopbackA]
type=peer
host=127.0.0.1
username=RRB
secret=apples
context=incomingA
disallow=all
allow=ulaw
allow=alaw
allow=g729

[trunk-loopbackB]
type=peer
host=127.0.0.1
username=RRA
secret=apples
context=incomingB
disallow=all
allow=ulaw
allow=alaw
allow=g729

This is the asterisk console output where the calls failed.

== Connect attempt from ‘127.0.0.1’ unable to authenticate
– Called 11111571988982340@fax-tx7200
– Executing [11111571988982340@fax-tx7200:1] Answer(“Local/11111571988982340@fax-tx7200-00000003;2”, “”) in new stack
– Local/11111571988982340@fax-tx7200-00000003;1 answered
– Executing [1287974952587100@00001trunk02-ulaw:1] Goto(“Local/11111571988982340@fax-tx7200-00000003;1”, “00001trunk02-default,1287974952587100,1”) in new stack
– Goto (00001trunk02-default,1287974952587100,1)
– Executing [1287974952587100@00001trunk02-default:1] SIPAddHeader(“Local/11111571988982340@fax-tx7200-00000003;1”, “x-CustomCallId: 571988982340”) in new stack
– Executing [1287974952587100@00001trunk02-default:2] SIPAddHeader(“Local/11111571988982340@fax-tx7200-00000003;1”, “x-ChanName: Local/11111571988982340@fax-tx7200-00000003;1”) in new stack
– Executing [1287974952587100@00001trunk02-default:3] Monitor(“Local/11111571988982340@fax-tx7200-00000003;1”, “wav,571988982340,i”) in new stack
– Executing [1287974952587100@00001trunk02-default:4] Set(“Local/11111571988982340@fax-tx7200-00000003;1”, “CALLERID(num)=221338509675”) in new stack
– Executing [1287974952587100@00001trunk02-default:5] Set(“Local/11111571988982340@fax-tx7200-00000003;1”, “MYEXT=1287974952587100”) in new stack
– Executing [1287974952587100@00001trunk02-default:6] Goto(“Local/11111571988982340@fax-tx7200-00000003;1”, “s-np,20”) in new stack
– Goto (00001trunk02-default,s-np,20)
– Executing [s-np@00001trunk02-default:20] Goto(“Local/11111571988982340@fax-tx7200-00000003;1”, “s-ulaw,40”) in new stack
– Goto (00001trunk02-default,s-ulaw,40)
– Executing [s-ulaw@00001trunk02-default:40] Dial(“Local/11111571988982340@fax-tx7200-00000003;1”, “SIP/1287974952587100@00001trunk02-g711u,35,L(180000)|D(:0)”) in new stack
– Setting call duration limit to 180.000 seconds.
== Using SIP RTP CoS mark 5
– Called SIP/1287974952587100@00001trunk02-g711u
– Executing [11111571988982340@fax-tx7200:2] Wait(“Local/11111571988982340@fax-tx7200-00000003;2”, “2”) in new stack
> 0x7f7ff8015260 – Strict RTP learning after remote address set to: 81.93.219.39:31920
– SIP/00001trunk02-g711u-00002ed7 is making progress passing it to Local/11111571988982340@fax-tx7200-00000003;1
> 0x7f7ff8015260 – Strict RTP switching to RTP target address 81.93.219.39:31920 as source
– SIP/00001trunk02-g711u-00002ed7 is ringing
– Executing [11111571988982340@fax-tx7200:3] Set(“Local/11111571988982340@fax-tx7200-00000003;2”, “T38CALL=1”) in new stack
– Executing [11111571988982340@fax-tx7200:4] Set(“Local/11111571988982340@fax-tx7200-00000003;2”, “FAXOPT(ecm)=yes”) in new stack
– Executing [11111571988982340@fax-tx7200:5] Set(“Local/11111571988982340@fax-tx7200-00000003;2”, “ACTIONID=571988982340”) in new stack
– Executing [11111571988982340@fax-tx7200:6] Set(“Local/11111571988982340@fax-tx7200-00000003;2”, “FILENAME=11111”) in new stack
– Executing [11111571988982340@fax-tx7200:7] SendFAX(“Local/11111571988982340@fax-tx7200-00000003;2”, “/opt/sipdialer/fax/11111,dz”) in new stack
– Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ sending FAX:
– /opt/sipdialer/fax/11111
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 000.306795 ], channel sent 15 frames (300 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 000.520206 ], stack sent 25 frames (500 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 001.166798 ], channel sent 43 frames (860 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 002.206793 ], channel sent 52 frames (1040 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 003.520214 ], stack sent 150 frames (3000 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 004.020206 ], stack sent 25 frames (500 ms) of energy.
> 0x7f7ff8015260 – Strict RTP learning complete - Locking on source address 81.93.219.39:31920
– SIP/00001trunk02-g711u-00002ed7 answered Local/11111571988982340@fax-tx7200-00000003;1
– Sending DTMF ‘0’ to the calling party.
– Channel SIP/00001trunk02-g711u-00002ed7 joined ‘simple_bridge’ basic-bridge <7ca0e9cc-ed7d-45c4-8971-fb6654ec568d>
– Channel Local/11111571988982340@fax-tx7200-00000003;1 joined ‘simple_bridge’ basic-bridge <7ca0e9cc-ed7d-45c4-8971-fb6654ec568d>
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 007.020212 ], stack sent 150 frames (3000 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 007.520207 ], stack sent 25 frames (500 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 008.586840 ], channel sent 296 frames (5920 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 008.766854 ], channel sent 9 frames (180 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 008.826877 ], channel sent 3 frames (60 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 008.906890 ], channel sent 4 frames (80 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 008.946820 ], channel sent 2 frames (40 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 010.520210 ], stack sent 150 frames (3000 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 011.020206 ], stack sent 25 frames (500 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 011.846116 ], channel sent 141 frames (2820 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 012.245091 ], channel sent 20 frames (400 ms) of silence.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 012.488605 ], channel sent 12 frames (240 ms) of energy.
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 012.683855 ], channel sent 10 frames (200 ms) of silence.
== Using UDPTL CoS mark 5
> 0x7f7ff8015260 – Strict RTP learning after remote address set to: 81.93.219.39:31958
Channel ‘Local/11111571988982340@fax-tx7200-00000003;2’ fax session ‘3’, [ 012.928197 ], channel sent 12 frames (240 ms) of energy.
– Channel SIP/00001trunk02-g711u-00002ed7 left ‘simple_bridge’ basic-bridge <7ca0e9cc-ed7d-45c4-8971-fb6654ec568d>
– Channel Local/11111571988982340@fax-tx7200-00000003;1 left ‘simple_bridge’ basic-bridge <7ca0e9cc-ed7d-45c4-8971-fb6654ec568d>
== Spawn extension (00001trunk02-default, s-ulaw, 40) exited non-zero on ‘Local/11111571988982340@fax-tx7200-00000003;1’
== Spawn extension (fax-tx7200, 11111571988982340, 7) exited non-zero on ‘Local/11111571988982340@fax-tx7200-00000003;2’
– Executing [h@fax-tx7200:1] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxStatus : FAILED”) in new stack
– Executing [h@fax-tx7200:2] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxStatusString : The call dropped prematurely”) in new stack
– Executing [h@fax-tx7200:3] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxError : The call dropped prematurely”) in new stack
– Executing [h@fax-tx7200:4] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, "RemoteStationID : ") in new stack
– Executing [h@fax-tx7200:5] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxPages : 0”) in new stack
– Executing [h@fax-tx7200:6] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxBitRate : 14400”) in new stack
– Executing [h@fax-tx7200:7] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, “FaxResolution : 0x0”) in new stack
– Executing [h@fax-tx7200:8] NoOp(“Local/11111571988982340@fax-tx7200-00000003;2”, "FaxResolutioraten : ") in new stack
– Executing [h@fax-tx7200:9] UserEvent(“Local/11111571988982340@fax-tx7200-00000003;2”, “FAXRate|actionId=571988982340|bitrate=14400|pages=0|errstring=The call dropped prematurely|err=The call dropped prematurely|faxstatus=FAILED”) in new stack

I suggest you try a new, simpler context in your extensions.conf that does not involve Local channels, sending DTMF at the start of the call, etc. It might not fix the problem, but it will certainly make it easier to help debug. Also the t38pt_usertpsource option in sip.conf might be useful to you.

what is this means. t38pt_usertpsource?

From the documentation in sip.conf.sample:

;t38pt_usertpsource=yes         ; Use the source IP address of RTP as the destination IP address for UDPTL packets
                                ; if the nat option is enabled. If a single RTP packet is received Asterisk will know the
                                ; external IP address of the remote device. If port forwarding is done at the client side
; then UDPTL will flow to the remote device

Hi

thank you I have tried it but i am getting the same result. is there any thing else to do.

This is my call log

[2019-10-29 11:00:06.103] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 000.044053 ], channel sent 2 frames (40 ms) of silence.
[2019-10-29 11:00:06.103] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:06.579] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 000.520202 ], stack sent 25 frames (500 ms) of energy.
[2019-10-29 11:00:06.744] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:06.744] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:06.763] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:06.783] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 000.724123 ], channel sent 34 frames (680 ms) of energy.
[2019-10-29 11:00:08.543] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 002.484156 ], channel sent 88 frames (1760 ms) of silence.
[2019-10-29 11:00:08.543] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:09.563] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:09.579] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 003.520206 ], stack sent 150 frames (3000 ms) of silence.
[2019-10-29 11:00:09.583] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 003.524207 ], channel sent 52 frames (1040 ms) of energy.
[2019-10-29 11:00:10.079] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 004.020202 ], stack sent 25 frames (500 ms) of energy.
[2019-10-29 11:00:12.467] DTMF[222394][C-00008fe0] channel.c: DTMF begin ‘0’ received on Local/11111572346803757@fax-tx7200-00000024;2
[2019-10-29 11:00:12.467] DTMF[222394][C-00008fe0] channel.c: DTMF begin passthrough ‘0’ on Local/11111572346803757@fax-tx7200-00000024;2
[2019-10-29 11:00:12.568] DTMF[222394][C-00008fe0] channel.c: DTMF end ‘0’ received on Local/11111572346803757@fax-tx7200-00000024;2, duration 100 ms
[2019-10-29 11:00:12.568] DTMF[222394][C-00008fe0] channel.c: DTMF end accepted with begin ‘0’ on Local/11111572346803757@fax-tx7200-00000024;2
[2019-10-29 11:00:12.568] DTMF[222394][C-00008fe0] channel.c: DTMF end passthrough ‘0’ on Local/11111572346803757@fax-tx7200-00000024;2
[2019-10-29 11:00:13.079] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 007.020206 ], stack sent 150 frames (3000 ms) of silence.
[2019-10-29 11:00:13.579] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 007.520144 ], stack sent 25 frames (500 ms) of energy.
[2019-10-29 11:00:15.043] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 008.984239 ], channel sent 251 frames (5020 ms) of silence.
[2019-10-29 11:00:15.043] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:15.083] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 009.024218 ], channel sent 2 frames (40 ms) of energy.
[2019-10-29 11:00:15.083] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:15.283] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 009.224151 ], channel sent 10 frames (200 ms) of silence.
[2019-10-29 11:00:15.283] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:15.323] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 009.264206 ], channel sent 2 frames (40 ms) of energy.
[2019-10-29 11:00:15.323] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:15.363] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 009.304154 ], channel sent 2 frames (40 ms) of silence.
[2019-10-29 11:00:15.363] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:16.579] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 010.520206 ], stack sent 150 frames (3000 ms) of silence.
[2019-10-29 11:00:17.079] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 011.020201 ], stack sent 25 frames (500 ms) of energy.
[2019-10-29 11:00:18.177] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 012.117741 ], channel sent 136 frames (2720 ms) of energy.
[2019-10-29 11:00:18.177] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:18.577] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 012.518011 ], channel sent 20 frames (400 ms) of silence.
[2019-10-29 11:00:18.577] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:18.731] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:18.731] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier up (-2) in state T
[2019-10-29 11:00:18.952] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Framing OK (-6) in state T
[2019-10-29 11:00:18.952] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 Changing from phase A_CNG to B_RX
[2019-10-29 11:00:18.952] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX Set rx type 4
[2019-10-29 11:00:18.952] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX Set tx type 0
[2019-10-29 11:00:18.977] VERBOSE[222394][C-00008fe0] res_fax.c: Channel ‘Local/11111572346803757@fax-tx7200-00000024;2’ fax session ‘36’, [ 012.917775 ], channel sent 20 frames (400 ms) of energy.
[2019-10-29 11:00:18.977] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 HDLC signal status is Carrier down (-1) in state T
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 Status changing to ‘The call dropped prematurely’
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 Changing from state T to CALL_FINISHED
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 Changing from phase B_RX to CALL_FINISHED
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX Set rx type 9
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX FAX exchange complete
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX Set tx type 9
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW FAX FAX exchange complete
[2019-10-29 11:00:19.022] FAX[222394][C-00008fe0] res_fax.c: FLOW T.30 Call completed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.