Disconnecting channel for lack of audio RTP activity in 37 seconds

Working on configuring the pjsip call but getting an RTP activity error on some networks.

For some networks, it’s working properly and for some it does not.

Herewith attaching call trace for reference.

Please guide me to correct it.

PJSIP Logging enabled
<--- Received SIP request (2415 bytes) from TCP:106.222.52.15:23149 --->
INVITE sip:202@54.188.XX.XXX SIP/2.0
Via: SIP/2.0/TCP 100.84.7.123:2255;branch=z9hG4bK-524287-1---9a3e815710982917;rport
Max-Forwards: 70
Contact: <sip:201@100.84.7.123:2255;transport=tcp>;+sip.instance="201@54.188.XX.XXX"
To: <sip:202@54.188.XX.XXX>
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
CSeq: 1 INVITE
Session-Expires: 1800
Min-SE: 90
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Content-Type: application/sdp
Supported: timer, 100rel
Content-Length: 1848

v=0
o=- 7518582487740557919 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS ARDAMS
m=audio 3094 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 106.222.52.15
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3365241591 1 udp 2122129151 100.84.7.123 44542 typ host generation 0 network-id 3 network-cost 900
a=candidate:1510613869 1 udp 2121998079 127.0.0.1 44873 typ host generation 0 network-id 1
a=candidate:842163049 1 udp 1685921535 106.222.52.15 3094 typ srflx raddr 100.84.7.123 rport 44542 generation 0 network-id 3 network-cost 900
a=ice-ufrag:fKuf
a=ice-pwd:8Cudt+0ROJjYApNVUWFI2Yx8
a=ice-options:trickle renomination
a=fingerprint:sha-256 2F:2D:62:B7:95:E4:03:93:49:30:83:4E:27:99:96:10:A8:3C:4D:DA:03:D5:63:DE:A0:E9:0B:B0:03:84:7D:F1
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:ARDAMS ARDAMSa0
a=rtcp-mux
a=rtpmap:111 opus/42255/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/2255
a=rtpmap:102 ILBC/2255
a=rtpmap:0 PCMU/2255
a=rtpmap:8 PCMA/2255
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/2255
a=rtpmap:110 telephone-event/42255
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/2255
a=ssrc:2717129690 cname:JOqozQ67B76VsvaK
a=ssrc:2717129690 msid:ARDAMS ARDAMSa0
a=ssrc:2717129690 mslabel:ARDAMS
a=ssrc:2717129690 label:ARDAMSa0

<--- Transmitting SIP response (503 bytes) to TCP:106.222.52.15:23149 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 100.84.7.123:2255;rport=23149;received=106.222.52.15;branch=z9hG4bK-524287-1---9a3e815710982917
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
To: <sip:202@54.188.XX.XXX>;tag=z9hG4bK-524287-1---9a3e815710982917
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1625815807/93d6f5cdafc5bc9dd4baabd8c1364857",opaque="7e74494c184a52ad",algorithm=md5,qop="auth"
Server: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


<--- Received SIP request (317 bytes) from TCP:106.222.52.15:23149 --->
ACK sip:202@54.188.XX.XXX SIP/2.0
Via: SIP/2.0/TCP 100.84.7.123:2255;branch=z9hG4bK-524287-1---9a3e815710982917;rport
Max-Forwards: 70
To: <sip:202@54.188.XX.XXX>;tag=z9hG4bK-524287-1---9a3e815710982917
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
CSeq: 1 ACK
Content-Length: 0


ip-172-31-16-201*CLI>
<--- Received SIP request (2696 bytes) from TCP:106.222.52.15:23149 --->
INVITE sip:202@54.188.XX.XXX SIP/2.0
Via: SIP/2.0/TCP 100.84.7.123:2255;branch=z9hG4bK-524287-1---ea5ee25497414007;rport
Max-Forwards: 70
Contact: <sip:201@100.84.7.123:2255;transport=tcp>;+sip.instance="201@54.188.XX.XXX"
To: <sip:202@54.188.XX.XXX>
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
CSeq: 2 INVITE
Session-Expires: 1800
Min-SE: 90
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Content-Type: application/sdp
Supported: timer, 100rel
Authorization: Digest username="201",realm="asterisk",nonce="1625815807/93d6f5cdafc5bc9dd4baabd8c1364857",uri="sip:202@54.188.XX.XXX",response="d60d1d287a5f3c3d7883e8c7d8aaf2e4",cnonce="05d7885fce0ec50760df110223c2e15f",nc=00000001,qop=auth,algorithm=md5,opaque="7e74494c184a52ad"
Content-Length: 1848

v=0
o=- 7518582487740557919 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS ARDAMS
m=audio 3094 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 106.222.52.15
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3365241591 1 udp 2122129151 100.84.7.123 44542 typ host generation 0 network-id 3 network-cost 900
a=candidate:1510613869 1 udp 2121998079 127.0.0.1 44873 typ host generation 0 network-id 1
a=candidate:842163049 1 udp 1685921535 106.222.52.15 3094 typ srflx raddr 100.84.7.123 rport 44542 generation 0 network-id 3 network-cost 900
a=ice-ufrag:fKuf
a=ice-pwd:8Cudt+0ROJjYApNVUWFI2Yx8
a=ice-options:trickle renomination
a=fingerprint:sha-256 2F:2D:62:B7:95:E4:03:93:49:30:83:4E:27:99:96:10:A8:3C:4D:DA:03:D5:63:DE:A0:E9:0B:B0:03:84:7D:F1
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:ARDAMS ARDAMSa0
a=rtcp-mux
a=rtpmap:111 opus/42255/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/2255
a=rtpmap:102 ILBC/2255
a=rtpmap:0 PCMU/2255
a=rtpmap:8 PCMA/2255
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/2255
a=rtpmap:110 telephone-event/42255
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/2255
a=ssrc:2717129690 cname:JOqozQ67B76VsvaK
a=ssrc:2717129690 msid:ARDAMS ARDAMSa0
a=ssrc:2717129690 mslabel:ARDAMS
a=ssrc:2717129690 label:ARDAMSa0


<--- Transmitting SIP response (311 bytes) to TCP:106.222.52.15:23149 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 100.84.7.123:2255;rport=23149;received=106.222.52.15;branch=z9hG4bK-524287-1---ea5ee25497414007
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
To: <sip:202@54.188.XX.XXX>
CSeq: 2 INVITE
Server: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
    -- Executing [202@internal:1] NoOp("PJSIP/201-00000007", "202") in new stack
    -- Executing [202@internal:2] Wait("PJSIP/201-00000007", "5") in new stack
<--- Transmitting SIP request (458 bytes) to TCP:106.222.52.15:23149 --->
OPTIONS sip:201@106.222.52.15:23149;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport;branch=z9hG4bKPjaac91fe6-f345-4a2a-925c-d2fa0c03b5b3;alias
From: <sip:201@172.31.16.201>;tag=8b486174-4db9-4489-bcf7-824b69b1982d
To: <sip:201@106.222.52.15>
Contact: <sip:201@54.188.XX.XXX:2255;transport=TCP>
Call-ID: 347a902b-c0d3-4190-8a4b-a68f2d20adc5
CSeq: 23477 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


<--- Received SIP response (578 bytes) from TCP:106.222.52.15:23149 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport=2255;branch=z9hG4bKPjaac91fe6-f345-4a2a-925c-d2fa0c03b5b3;alias
Contact: <sip:100.84.7.123:2255;transport=tcp>
To: <sip:201@106.222.52.15>;tag=cb68b57b
From: <sip:201@172.31.16.201>;tag=8b486174-4db9-4489-bcf7-824b69b1982d
Call-ID: 347a902b-c0d3-4190-8a4b-a68f2d20adc5
CSeq: 23477 OPTIONS
Accept: application/sdp, multipart/mixed, multipart/signed, multipart/alternative
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Supported: timer
Content-Length: 0


    -- Executing [202@internal:3] Dial("PJSIP/201-00000007", "PJSIP/202,20") in new stack
    -- Called PJSIP/202
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
<--- Transmitting SIP request (1558 bytes) to TCP:114.31.172.162:50291 --->
INVITE sip:202@114.31.172.162:50291;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport;branch=z9hG4bKPj77593af8-a6bf-4777-bac8-04a1fc6eb698;alias
From: "201" <sip:201@172.31.16.201>;tag=312388aa-0657-4c5a-b44b-be0ce5728d2f
To: <sip:202@114.31.172.162>
Contact: <sip:201@54.188.XX.XXX:2255;transport=TCP>
Call-ID: d877ed12-39cc-416a-9ab7-270476daf45a
CSeq: 17562 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: "201" <sip:201@172.31.16.201>
Max-Forwards: 70
User-Agent: FPBX-15.0.17.37(18.4.0)
Content-Type: application/sdp
Content-Length:   804

v=0
o=- 1448714501 1448714501 IN IP4 54.188.XX.XXX
s=Asterisk
c=IN IP4 54.188.XX.XXX
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0
m=audio 15012 UDP/TLS/RTP/SAVPF 0 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 11:2F:A6:52:98:C7:3F:E3:1F:92:52:BE:C1:DE:55:EA:B5:69:11:A7:D8:34:68:A0:86:57:20:13:AA:02:A6:5F
a=ice-ufrag:7e12c4f90fee0c951fadfae0085d839b
a=ice-pwd:4ab6ca78525ee00042967c48521f8160
a=candidate:Hac1f10c9 1 UDP 2130706431 172.31.16.201 15012 typ host
a=rtpmap:0 PCMU/2255
a=rtpmap:101 telephone-event/2255
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:1330365812 cname:e6fb6108-5c76-4744-a26a-c61a83dcff10
a=msid:c448a66f-f230-4cc9-9c5b-41fe597ca151 c9a15c2c-e655-4580-a104-6349255e0d74
a=rtcp-fb:* transport-cc
a=mid:audio-0

<--- Received SIP response (322 bytes) from TCP:114.31.172.162:50291 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport=2255;branch=z9hG4bKPj77593af8-a6bf-4777-bac8-04a1fc6eb698;alias
To: <sip:202@114.31.172.162>
From: "201" <sip:201@172.31.16.201>;tag=312388aa-0657-4c5a-b44b-be0ce5728d2f
Call-ID: d877ed12-39cc-416a-9ab7-270476daf45a
CSeq: 17562 INVITE
Content-Length: 0


<--- Received SIP response (1563 bytes) from TCP:114.31.172.162:50291 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport=2255;branch=z9hG4bKPj77593af8-a6bf-4777-bac8-04a1fc6eb698;alias
Require: timer
Contact: <sip:202@10.167.167.95:2255;transport=tcp>;+sip.instance="202@54.188.XX.XXX"
To: <sip:202@114.31.172.162>;tag=6c383366
From: "201" <sip:201@172.31.16.201>;tag=312388aa-0657-4c5a-b44b-be0ce5728d2f
Call-ID: d877ed12-39cc-416a-9ab7-270476daf45a
CSeq: 17562 INVITE
Session-Expires: 1800;refresher=uac
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Content-Type: application/sdp
Supported: timer
Content-Length: 938

v=0
o=- 2993519205886875793 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio-0
a=msid-semantic: WMS ARDAMS
m=audio 5402 UDP/TLS/RTP/SAVPF 0 101
c=IN IP4 114.31.172.162
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3337959888 1 udp 2122129151 10.167.167.95 44846 typ host generation 0 network-id 3 network-cost 900
a=candidate:1510613869 1 udp 2121998079 127.0.0.1 51299 typ host generation 0 network-id 1
a=candidate:842163049 1 udp 1685921535 114.31.172.162 5402 typ srflx raddr 10.167.167.95 rport 44846 generation 0 network-id 3 network-cost 900
a=ice-ufrag:+6dL
a=ice-pwd:l+gd7ii5t5M4qf84oGlShDFj
a=ice-options:trickle renomination
a=fingerprint:sha-256 71:7D:03:99:A9:6F:9F:9C:FD:B5:C6:79:30:77:F5:AF:75:25:FD:F5:E6:05:7B:AD:82:71:4E:75:16:11:56:E7
a=setup:active
a=mid:audio-0
a=sendrecv
a=msid:ARDAMS ARDAMSa0
a=rtcp-mux
a=rtpmap:0 PCMU/2255
a=rtpmap:101 telephone-event/2255
a=ssrc:178882013 cname:u+Hx0il5RpdDoIUy

<--- Transmitting SIP request (419 bytes) to TCP:114.31.172.162:50291 --->
ACK sip:202@114.31.172.162:50291;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport;branch=z9hG4bKPj47686c36-0df7-429d-8c46-44a505dbe699;alias
From: "201" <sip:201@172.31.16.201>;tag=312388aa-0657-4c5a-b44b-be0ce5728d2f
To: <sip:202@114.31.172.162>;tag=6c383366
Call-ID: d877ed12-39cc-416a-9ab7-270476daf45a
CSeq: 17562 ACK
Max-Forwards: 70
User-Agent: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


    -- PJSIP/202-00000008 answered PJSIP/201-00000007
<--- Transmitting SIP response (1499 bytes) to TCP:106.222.52.15:23149 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 100.84.7.123:2255;rport=23149;received=106.222.52.15;branch=z9hG4bK-524287-1---ea5ee25497414007
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
To: <sip:202@54.188.XX.XXX>;tag=d1e85c63-7e37-45ec-91a6-535f6541f9c7
CSeq: 2 INVITE
Server: FPBX-15.0.17.37(18.4.0)
Contact: <sip:54.188.XX.XXX:2255;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "202" <sip:202@54.188.XX.XXX>
Content-Type: application/sdp
Content-Length:   806

v=0
o=- 4232030815 4 IN IP4 54.188.XX.XXX
s=Asterisk
c=IN IP4 54.188.XX.XXX
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 19678 UDP/TLS/RTP/SAVPF 0 8 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 AF:1B:1C:9D:12:AE:DE:B3:4D:F4:61:BA:7D:7E:63:01:CF:D3:A5:41:FE:7E:EF:8D:95:0F:4F:91:68:BE:EE:7D
a=ice-ufrag:6d48ef94455038432e41a3ec25af55a0
a=ice-pwd:070c4b7519ec2d924915e0135ec5e906
a=candidate:Hac1f10c9 1 UDP 2130706431 172.31.16.201 19678 typ host
a=rtpmap:0 PCMU/2255
a=rtpmap:8 PCMA/2255
a=rtpmap:126 telephone-event/2255
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:1189771337 cname:4da5c23f-71d3-43f0-9b35-645bb6cb3dff
a=msid:784a695c-0394-491d-a31b-086de9619c29 939e6e65-02de-48a7-924c-336fc77fef71
a=rtcp-fb:* transport-cc
a=mid:0

    -- Channel PJSIP/202-00000008 joined 'simple_bridge' basic-bridge <16f8afc5-c744-49bb-9cf2-9eaaf538143e>
    -- Channel PJSIP/201-00000007 joined 'simple_bridge' basic-bridge <16f8afc5-c744-49bb-9cf2-9eaaf538143e>
<--- Received SIP request (418 bytes) from TCP:106.222.52.15:23149 --->
ACK sip:54.188.XX.XXX:2255;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 100.84.7.123:2255;branch=z9hG4bK-524287-1---1303820332ba5a2e;rport
Max-Forwards: 70
Contact: <sip:201@100.84.7.123:2255;transport=tcp>;+sip.instance="201@54.188.XX.XXX"
To: <sip:202@54.188.XX.XXX>;tag=d1e85c63-7e37-45ec-91a6-535f6541f9c7
From: <sip:201@54.188.XX.XXX>;tag=32cd0b06
Call-ID: mQZxlXLp33PQJTHNt4ZC8w..
CSeq: 2 ACK
Content-Length: 0


<--- Received SIP request (852 bytes) from TCP:172.56.42.26:37349 --->
REGISTER sip:54.188.XX.XXX SIP/2.0
Via: SIP/2.0/TCP 192.0.0.2:2255;branch=z9hG4bK-524287-1---4f81cb1f651b3043;rport
Max-Forwards: 70
Contact: <sip:202@192.0.0.2:2255;transport=tcp>;+sip.instance="202@54.188.XX.XXX";methods="INVITE,ACK,CANCEL,OPTIONS,BYE,NOTIFY,SUBSCRIBE,INFO,MESSAGE,PRACK"
To: <sip:202@54.188.XX.XXX>
From: <sip:202@54.188.XX.XXX>;tag=cb68f020
Call-ID: 0rEXk7w6VpiERwao0o75zQ..
CSeq: 3 REGISTER
Expires: 3600
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Supported: timer
Authorization: Digest username="202",realm="asterisk",nonce="1625812551/506ded42dc2a6e2d04a34da77b94efa5",uri="sip:54.188.XX.XXX",response="c05779a44fcbe90bf197b846a25be71a",cnonce="64819f563af72e2298515e071e9b1850",nc=00000002,qop=auth,algorithm=md5,opaque="3ec0812a1fb3dd36"
Content-Length: 0


<--- Transmitting SIP response (512 bytes) to TCP:172.56.42.26:37349 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.0.0.2:2255;rport=37349;received=172.56.42.26;branch=z9hG4bK-524287-1---4f81cb1f651b3043
Call-ID: 0rEXk7w6VpiERwao0o75zQ..
From: <sip:202@54.188.XX.XXX>;tag=cb68f020
To: <sip:202@54.188.XX.XXX>;tag=z9hG4bK-524287-1---4f81cb1f651b3043
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1625815829/0023b2509df1271b2428353f60e0fff4",opaque="7e1e10b6279a6266",stale=true,algorithm=md5,qop="auth"
Server: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


<--- Received SIP request (852 bytes) from TCP:172.56.42.26:37349 --->
REGISTER sip:54.188.XX.XXX SIP/2.0
Via: SIP/2.0/TCP 192.0.0.2:2255;branch=z9hG4bK-524287-1---9ce3503bcffe9c5a;rport
Max-Forwards: 70
Contact: <sip:202@192.0.0.2:2255;transport=tcp>;+sip.instance="202@54.188.XX.XXX";methods="INVITE,ACK,CANCEL,OPTIONS,BYE,NOTIFY,SUBSCRIBE,INFO,MESSAGE,PRACK"
To: <sip:202@54.188.XX.XXX>
From: <sip:202@54.188.XX.XXX>;tag=cb68f020
Call-ID: 0rEXk7w6VpiERwao0o75zQ..
CSeq: 4 REGISTER
Expires: 3600
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Supported: timer
Authorization: Digest username="202",realm="asterisk",nonce="1625815829/0023b2509df1271b2428353f60e0fff4",uri="sip:54.188.XX.XXX",response="994fea97817ced76c4e2f1ce2fe49fbf",cnonce="1c354d4cdbbfe61c82fda46e5450e969",nc=00000001,qop=auth,algorithm=md5,opaque="7e1e10b6279a6266"
Content-Length: 0


    -- Added contact 'sip:202@172.56.42.26:37349;transport=TCP;x-ast-orig-host=192.0.0.2:2255' to AOR '202' with expiration of 3600 seconds
    -- Removed contact 'sip:202@114.31.172.162:50291;transport=TCP;x-ast-orig-host=10.167.167.95:2255' from AOR '202' due to remove existing
<--- Transmitting SIP response (459 bytes) to TCP:172.56.42.26:37349 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.0.0.2:2255;rport=37349;received=172.56.42.26;branch=z9hG4bK-524287-1---9ce3503bcffe9c5a
Call-ID: 0rEXk7w6VpiERwao0o75zQ..
From: <sip:202@54.188.XX.XXX>;tag=cb68f020
To: <sip:202@54.188.XX.XXX>;tag=z9hG4bK-524287-1---9ce3503bcffe9c5a
CSeq: 4 REGISTER
Date: Fri, 09 Jul 2021 07:30:29 GMT
Contact: <sip:202@192.0.0.2:2255;transport=TCP>;expires=3599
Expires: 3600
Server: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


<--- Transmitting SIP request (456 bytes) to TCP:172.56.42.26:37349 --->
OPTIONS sip:202@172.56.42.26:37349;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport;branch=z9hG4bKPj5d9d1366-e14a-462e-aad3-67c98451fd26;alias
From: <sip:202@172.31.16.201>;tag=f21683f6-d99c-4a3a-9388-8d14d9814261
To: <sip:202@172.56.42.26>
Contact: <sip:202@54.188.XX.XXX:2255;transport=TCP>
Call-ID: 2d8014c6-7d10-4eb6-bcc5-c1c3e3fcaae4
CSeq: 11338 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


<--- Transmitting SIP request (460 bytes) to TCP:114.31.172.162:50291 --->
OPTIONS sip:202@114.31.172.162:50291;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport;branch=z9hG4bKPjc84e8e26-0946-4320-a4e6-23ababfe51c5;alias
From: <sip:202@172.31.16.201>;tag=92552bec-54c1-4da4-846e-9bb9610812b6
To: <sip:202@114.31.172.162>
Contact: <sip:202@54.188.XX.XXX:2255;transport=TCP>
Call-ID: 1c6ad049-7ca3-4f79-b0b1-548bbbbd319e
CSeq: 18243 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-15.0.17.37(18.4.0)
Content-Length:  0


  == Contact 202/sip:202@114.31.172.162:50291;transport=TCP;x-ast-orig-host=10.167.167.95:2255 has been deleted
  == Endpoint 202 is now Unreachable
<--- Received SIP response (574 bytes) from TCP:172.56.42.26:37349 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport=2255;branch=z9hG4bKPj5d9d1366-e14a-462e-aad3-67c98451fd26;alias
Contact: <sip:192.0.0.2:2255;transport=tcp>
To: <sip:202@172.56.42.26>;tag=474a4e1d
From: <sip:202@172.31.16.201>;tag=f21683f6-d99c-4a3a-9388-8d14d9814261
Call-ID: 2d8014c6-7d10-4eb6-bcc5-c1c3e3fcaae4
CSeq: 11338 OPTIONS
Accept: application/sdp, multipart/mixed, multipart/signed, multipart/alternative
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Supported: timer
Content-Length: 0


  == Endpoint 202 is now Reachable
    -- Contact 202/sip:202@172.56.42.26:37349;transport=TCP;x-ast-orig-host=192.0.0.2:2255 is now Reachable.  RTT: 200.050 msec
<--- Received SIP response (580 bytes) from TCP:114.31.172.162:50291 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 54.188.XX.XXX:2255;rport=2255;branch=z9hG4bKPjc84e8e26-0946-4320-a4e6-23ababfe51c5;alias
Contact: <sip:10.167.167.95:2255;transport=tcp>
To: <sip:202@114.31.172.162>;tag=92d99b3a
From: <sip:202@172.31.16.201>;tag=92552bec-54c1-4da4-846e-9bb9610812b6
Call-ID: 1c6ad049-7ca3-4f79-b0b1-548bbbbd319e
CSeq: 18243 OPTIONS
Accept: application/sdp, multipart/mixed, multipart/signed, multipart/alternative
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, SUBSCRIBE, INFO, MESSAGE, PRACK
Supported: timer
Content-Length: 0


[2021-07-09 07:30:50] NOTICE[104539]: res_pjsip_sdp_rtp.c:150 rtp_check_timeout: Disconnecting channel 'PJSIP/202-00000008' for lack of audio RTP activity in 37 seconds
    -- Channel PJSIP/202-00000008 left 'simple_bridge' basic-bridge <16f8afc5-c744-49bb-9cf2-9eaaf538143e>
    -- Channel PJSIP/201-00000007 left 'simple_bridge' basic-bridge <16f8afc5-c744-49bb-9cf2-9eaaf538143e>
  == Spawn extension (internal, 202, 3) exited non-zero on 'PJSIP/201-00000007'

You’ll have to investigate the ICE negotiation and see how/why it failed. From an Asterisk perspective I can already tell you that you have a single ICE candidate with an internal IP address. This should either be a public IP address, or should also contain a host candidate with a public IP address. This is done by configuring rtp.conf[1]. I don’t know how to do that in FreePBX.

[1] asterisk/rtp.conf.sample at master · asterisk/asterisk · GitHub

This is my rtp.conf file.

[general]
rtpstart=10000
rtpend=20000
rtpchecksums=yes
strictrtp=no

Which parameter I need to add inorder to access public ip ?

I gave you the precise line in the rtp.conf sample file which documents the functionality for doing this, along with what the configuration looks like.