One way audio with PJSIP [on VPN]

I have an Asterisk server on an AWS EC2 Machine.
I have another linux machine connected to a GSM Gateway.
I connected my EC2 machine with my local machine using Wireguard VPN.
I am able to make calls from my Asterisk server through the GSM gateway via the VPN.
I can hear audio on my phone when a call is place. But I cannot hear anything on soft phone.
I am using a webrtc based softphone.

Here are my RTP logs.

Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020561, ts 3373454619, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029894, ts 3373454616, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020562, ts 3373454779, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029895, ts 3373454776, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020563, ts 3373454939, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029896, ts 3373454936, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020564, ts 3373455099, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029897, ts 3373455096, len 000160)

I am really stuck. Would appreciate any kind of help.

Have you configured Asterisk to know it is behind an AWS NAT environment in rtp.conf and pjsip.conf? What is the actual SIP traffic (pjsip set logger on) and corresponding IPs?

This is my pjsip.conf

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
; 43.*.*.* is my EC2 ip.
external_media_address=43.*.*.*  
external_signaling_address=43.*.*.* 
[webrtc_client]
type=aor
max_contacts=1

[webrtc_client_auth]
type=auth
auth_type=userpass
password=***
username=webrtc_client

[webrtc_client]
type=endpoint
aors=webrtc_client
auth=webrtc_client_auth
dtls_auto_generate_cert=yes
context=from-internal
webrtc=yes
disallow=all
allow=ulaw

;--------------------------
[dinstar]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=ulaw
aors=dinstar
auth=dinstar

[dinstar]
type=auth
auth_type=userpass
password=9001
username=9001

[dinstar]
type=aor
; Below is my gateway ip
contact=sip:192.168.250.123:5060```

This is my rtp.conf

[general]
;
; RTP start and RTP end configure start and end addresses
;
; Defaults are rtpstart=5000 and rtpend=31000
;
rtpstart=10000
rtpend=20000
icesupport=yes
rtp_ipv6=no
stunaddr=stun.l.google.com:19302```

Below are logs with pjsip set logger on

<--- Received SIP request (7768 bytes) from WSS:106..*.*.*:60140 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK8260396
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
Call-ID: e5pqimfqedsjts3m5har
CSeq: 8664 INVITE
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7139

v=0
o=- 6270957030215996404 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF
m=audio 64825 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106..*.*.*
a=rtcp:64244 IN IP4 106..*.*.*
a=candidate:637962134 1 udp 2122260223 192.168.251.65 64825 typ host generation 0 network-id 1 network-cost 10
a=candidate:637962134 2 udp 2122260222 192.168.251.65 64244 typ host generation 0 network-id 1 network-cost 10
a=candidate:654767536 2 udp 1686052606 106..*.*.* 64244 typ srflx raddr 192.168.251.65 rport 64244 generation 0 network-id 1 network-cost 10
a=candidate:654767536 1 udp 1686052607 106..*.*.* 64825 typ srflx raddr 192.168.251.65 rport 64825 generation 0 network-id 1 network-cost 10
a=candidate:1486398107 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:1486398107 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:ro8R
a=ice-pwd:LSxOhNkBto1r0vt+FWeP74aH
a=ice-options:trickle
a=fingerprint:sha-256 1A:46:65:52:10:A0:73:47:8D:B6:C4:95:5C:55:A9:BA:5D:CD:43:CD:4B:5E:06:9E:24:86:2F:64:49:CA:27:6E
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=sendrecv
a=msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF f375430a-dfce-466c-986c-21671ccec408
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:3424190506 cname:L050Mg8+dBT82ZUY
a=ssrc:3424190506 msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF f375430a-dfce-466c-986c-21671ccec408
m=video 57680 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106..*.*.*
a=rtcp:62372 IN IP4 106..*.*.*
a=candidate:637962134 1 udp 2122260223 192.168.251.65 57680 typ host generation 0 network-id 1 network-cost 10
a=candidate:637962134 2 udp 2122260222 192.168.251.65 62372 typ host generation 0 network-id 1 network-cost 10
a=candidate:654767536 1 udp 1686052607 106..*.*.* 57680 typ srflx raddr 192.168.251.65 rport 57680 generation 0 network-id 1 network-cost 10
a=candidate:654767536 2 udp 1686052606 106..*.*.* 62372 typ srflx raddr 192.168.251.65 rport 62372 generation 0 network-id 1 network-cost 10
a=candidate:1486398107 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:1486398107 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:ro8R
a=ice-pwd:LSxOhNkBto1r0vt+FWeP74aH
a=ice-options:trickle
a=fingerprint:sha-256 1A:46:65:52:10:A0:73:47:8D:B6:C4:95:5C:55:A9:BA:5D:CD:43:CD:4B:5E:06:9E:24:86:2F:64:49:CA:27:6E
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF ff0f0656-d8b7-4864-b499-77e83902f504
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 980224111 1185597319
a=ssrc:980224111 cname:L050Mg8+dBT82ZUY
a=ssrc:980224111 msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF ff0f0656-d8b7-4864-b499-77e83902f504
a=ssrc:1185597319 cname:L050Mg8+dBT82ZUY
a=ssrc:1185597319 msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF ff0f0656-d8b7-4864-b499-77e83902f504

<--- Transmitting SIP response (521 bytes) to WSS:106..*.*.*:60140 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=60140;received=106..*.*.*;branch=z9hG4bK8260396
Call-ID: e5pqimfqedsjts3m5har
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK8260396
CSeq: 8664 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1697719752/814571958fb69f26fa53e70989a2577e",opaque="000674f710ad61d5",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (533 bytes) from WSS:106..*.*.*:60140 --->
ACK sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK8260396
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK8260396
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
Call-ID: e5pqimfqedsjts3m5har
CSeq: 8664 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0


<--- Received SIP request (8070 bytes) from WSS:106..*.*.*:60140 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK5680359
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
Call-ID: e5pqimfqedsjts3m5har
CSeq: 8665 INVITE
Authorization: Digest algorithm=MD5, username="webrtc_client", realm="asterisk", nonce="1697719752/814571958fb69f26fa53e70989a2577e", uri="sip:123456789@asterisk-serv.ec2.com", response="3f934fa3e86d9fe84642c0094f263da4", opaque="000674f710ad61d5", qop=auth, cnonce="gmjprqr3lrid", nc=00000001
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7139

v=0
o=- 6270957030215996404 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF
m=audio 64825 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106..*.*.*
a=rtcp:64244 IN IP4 106..*.*.*
a=candidate:637962134 1 udp 2122260223 192.168.251.65 64825 typ host generation 0 network-id 1 network-cost 10
a=candidate:637962134 2 udp 2122260222 192.168.251.65 64244 typ host generation 0 network-id 1 network-cost 10
a=candidate:654767536 2 udp 1686052606 106..*.*.* 64244 typ srflx raddr 192.168.251.65 rport 64244 generation 0 network-id 1 network-cost 10
a=candidate:654767536 1 udp 1686052607 106..*.*.* 64825 typ srflx raddr 192.168.251.65 rport 64825 generation 0 network-id 1 network-cost 10
a=candidate:1486398107 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:1486398107 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:ro8R
a=ice-pwd:LSxOhNkBto1r0vt+FWeP74aH
a=ice-options:trickle
a=fingerprint:sha-256 1A:46:65:52:10:A0:73:47:8D:B6:C4:95:5C:55:A9:BA:5D:CD:43:CD:4B:5E:06:9E:24:86:2F:64:49:CA:27:6E
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=sendrecv
a=msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF f375430a-dfce-466c-986c-21671ccec408
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:3424190506 cname:L050Mg8+dBT82ZUY
a=ssrc:3424190506 msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF f375430a-dfce-466c-986c-21671ccec408
m=video 57680 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106..*.*.*
a=rtcp:62372 IN IP4 106..*.*.*
a=candidate:637962134 1 udp 2122260223 192.168.251.65 57680 typ host generation 0 network-id 1 network-cost 10
a=candidate:637962134 2 udp 2122260222 192.168.251.65 62372 typ host generation 0 network-id 1 network-cost 10
a=candidate:654767536 1 udp 1686052607 106..*.*.* 57680 typ srflx raddr 192.168.251.65 rport 57680 generation 0 network-id 1 network-cost 10
a=candidate:654767536 2 udp 1686052606 106..*.*.* 62372 typ srflx raddr 192.168.251.65 rport 62372 generation 0 network-id 1 network-cost 10
a=candidate:1486398107 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:1486398107 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:ro8R
a=ice-pwd:LSxOhNkBto1r0vt+FWeP74aH
a=ice-options:trickle
a=fingerprint:sha-256 1A:46:65:52:10:A0:73:47:8D:B6:C4:95:5C:55:A9:BA:5D:CD:43:CD:4B:5E:06:9E:24:86:2F:64:49:CA:27:6E
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF ff0f0656-d8b7-4864-b499-77e83902f504
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 980224111 1185597319
a=ssrc:980224111 cname:L050Mg8+dBT82ZUY
a=ssrc:980224111 msid:KGVhrpEEKGSHmiunWuu9E1coiQzPC2pFBeNF ff0f0656-d8b7-4864-b499-77e83902fďż˝<--- Transmitting SIP response (350 bytes) to WSS:106..*.*.*:60140 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=60140;received=106..*.*.*;branch=z9hG4bK5680359
Call-ID: e5pqimfqedsjts3m5har
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
To: <sip:123456789@asterisk-serv.ec2.com>
CSeq: 8665 INVITE
Server: Asterisk PBX 20.4.0
Content-Length:  0


    -- Executing [123456789@from-internal:1] Dial("PJSIP/webrtc_client-00000002", "PJSIP/123456789@dinstar,,r") in new stack
    -- Called PJSIP/123456789@dinstar
<--- Transmitting SIP response (547 bytes) to WSS:106..*.*.*:60140 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=60140;received=106..*.*.*;branch=z9hG4bK5680359
Call-ID: e5pqimfqedsjts3m5har
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
To: <sip:123456789@asterisk-serv.ec2.com>;tag=3f9285af-d671-4185-b377-cbe5f38586c8
CSeq: 8665 INVITE
Server: Asterisk PBX 20.4.0
Contact: <sip:10.0.0.32:8089;transport=ws>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Content-Length:  0


<--- Transmitting SIP request (941 bytes) to UDP:192.168.250.123:5060 --->
INVITE sip:123456789@192.168.250.123:5060 SIP/2.0
Via: SIP/2.0/UDP 43.*.*.*:5060;rport;branch=z9hG4bKPj80e5f4a6-709f-4e8d-b296-79ad26dff898
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
To: <sip:123456789@192.168.250.123>
Contact: <sip:asterisk@43.*.*.*:5060>
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19116 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
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Type: application/sdp
Content-Length:   235

v=0
o=- 691225532 691225532 IN IP4 43.*.*.*
s=Asterisk
c=IN IP4 43.*.*.*
t=0 0
m=audio 15776 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP response (368 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPj80e5f4a6-709f-4e8d-b296-79ad26dff898;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
To: <sip:123456789@192.168.250.123>
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19116 INVITE
Content-Length: 0


<--- Received SIP response (735 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPj80e5f4a6-709f-4e8d-b296-79ad26dff898;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
To: <sip:123456789@192.168.250.123>;tag=5cbafe955e4aad2b5f22c34c69123ba1
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19116 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Content-Type: application/sdp
Content-Length:   204

v=0
o=host 1101154 1101155 IN IP4 192.168.250.123
s=-
c=IN IP4 192.168.250.123
t=0 0
m=audio 8000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=ptime:20

    -- PJSIP/dinstar-00000003 is making progress passing it to PJSIP/webrtc_client-00000002
<--- Received SIP response (792 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPj80e5f4a6-709f-4e8d-b296-79ad26dff898;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
To: <sip:123456789@192.168.250.123>;tag=5cbafe955e4aad2b5f22c34c69123ba1
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19116 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, UPDATE, NOTIFY, REFER
Content-Type: application/sdp
Content-Length:   204

v=0
o=host 1103541 1103542 IN IP4 192.168.250.123
s=-
c=IN IP4 192.168.250.123
t=0 0
m=audio 8000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=ptime:20

<--- Transmitting SIP request (465 bytes) to UDP:192.168.250.123:5060 --->
ACK sip:123456789@192.168.250.123;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 43.*.*.*:5060;rport;branch=z9hG4bKPja5a1d320-7f55-4ea1-b9c8-32bedd80c00e
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
To: <sip:123456789@192.168.250.123>;tag=5cbafe955e4aad2b5f22c34c69123ba1
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19116 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Length:  0


    -- PJSIP/dinstar-00000003 answered PJSIP/webrtc_client-00000002
<--- Transmitting SIP response (1756 bytes) to WSS:106..*.*.*:60140 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=60140;received=106..*.*.*;branch=z9hG4bK5680359
Call-ID: e5pqimfqedsjts3m5har
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
To: <sip:123456789@asterisk-serv.ec2.com>;tag=3f9285af-d671-4185-b377-cbe5f38586c8
CSeq: 8665 INVITE
Server: Asterisk PBX 20.4.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Contact: <sip:10.0.0.32:8089;transport=ws>
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:  1132

v=0
o=- 2881704948 4 IN IP4 10.0.0.32
s=Asterisk
c=IN IP4 10.0.0.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 16080 UDP/TLS/RTP/SAVPF 0 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 B9:0D:21:F1:21:F1:84:A7:91:6A:01:B3:CD:DF:97:E6:E5:B2:9F:45:7E:D2:41:AB:D3:FA:A4:C4:C7:7E:66:BF
a=ice-ufrag:17f0b3d055ea55ff1783d91660cf74ce
a=ice-pwd:6f80fc0775c28e5e5c7dd1af4cc6eb12
a=candidate:Ha000020 1 UDP 2130706431 10.0.0.32 16080 typ host
a=candidate:Ha050501 1 UDP 2130706431 10.5.5.1 16080 typ host
a=candidate:Hf06d9444 1 UDP 2130706431 fe80::838:62ff:fee7:b6ca 16080 typ host
a=candidate:S2bcd342c 1 UDP 1694498815 43.*.*.* 16080 typ srflx raddr 10.0.0.32 rport 16080
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:1369714124 cname:a06d8a9f-c1a7-4570-8118-837daf46b860
a=msid:a2e0c3ee-45e7-4a77-973c-d2ea62990e69 f2f6528e-26e8-45aa-b449-29ab3dd15832
a=rtcp-fb:* transport-cc
a=mid:0
m=video 0 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116

    -- Channel PJSIP/dinstar-00000003 joined 'simple_bridge' basic-bridge <d0c02ede-fadc-4de8-83a9-9f19f15d4101>
    -- Channel PJSIP/webrtc_client-00000002 joined 'simple_bridge' basic-bridge <d0c02ede-fadc-4de8-83a9-9f19f15d4101>
<--- Received SIP request (484 bytes) from WSS:106..*.*.*:60140 --->
ACK sip:10.0.0.32:8089;transport=ws SIP/2.0
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK7548653
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=3f9285af-d671-4185-b377-cbe5f38586c8
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
Call-ID: e5pqimfqedsjts3m5har
CSeq: 8665 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0


<--- Received SIP request (938 bytes) from UDP:106..*.*.*:59922 --->
REGISTER sip:asterisk-serv.ec2.com:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 106..*.*.*:59922;branch=z9hG4bK-524287-1---331da1fb554c4619;rport
Max-Forwards: 70
Contact: <sip:6001@106..*.*.*:59922;transport=UDP;rinstance=b8bac268efb3b8e3>
To: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>
From: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>;tag=682d0e04
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
CSeq: 145 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.10 v2.10.17.3
Authorization: Digest username="6001",realm="asterisk",nonce="1697719726/ddf4177c349d9cb048d635470b376ee5",uri="sip:asterisk-serv.ec2.com:5060;transport=UDP",response="c781d83d49511351f7e376dce2049744",cnonce="1324936b1c1440a82b102b4b94f3f5cf",nc=00000002,qop=auth,algorithm=MD5,opaque="23aa84bf261bb466"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (542 bytes) to UDP:106..*.*.*:59922 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 106..*.*.*:59922;rport=59922;received=106..*.*.*;branch=z9hG4bK-524287-1---331da1fb554c4619
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
From: <sip:6001@asterisk-serv.ec2.com>;tag=682d0e04
To: <sip:6001@asterisk-serv.ec2.com>;tag=z9hG4bK-524287-1---331da1fb554c4619
CSeq: 145 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1697719779/46e02122d080074375363144d9236aa5",opaque="7baa6bdf33debbca",stale=true,algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (938 bytes) from UDP:106..*.*.*:59922 --->
REGISTER sip:asterisk-serv.ec2.com:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 106..*.*.*:59922;branch=z9hG4bK-524287-1---8578de9d3b089247;rport
Max-Forwards: 70
Contact: <sip:6001@106..*.*.*:59922;transport=UDP;rinstance=b8bac268efb3b8e3>
To: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>
From: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>;tag=682d0e04
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
CSeq: 146 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.10 v2.10.17.3
Authorization: Digest username="6001",realm="asterisk",nonce="1697719779/46e02122d080074375363144d9236aa5",uri="sip:asterisk-serv.ec2.com:5060;transport=UDP",response="d2a01c8844e17c0021015f91246646af",cnonce="8af9e6f30be71abb91a9ebac5e05d7a1",nc=00000001,qop=auth,algorithm=MD5,opaque="7baa6bdf33debbca"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (504 bytes) to UDP:106..*.*.*:59922 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 106..*.*.*:59922;rport=59922;received=106..*.*.*;branch=z9hG4bK-524287-1---8578de9d3b089247
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
From: <sip:6001@asterisk-serv.ec2.com>;tag=682d0e04
To: <sip:6001@asterisk-serv.ec2.com>;tag=z9hG4bK-524287-1---8578de9d3b089247
CSeq: 146 REGISTER
Date: Thu, 19 Oct 2023 12:49:39 GMT
Contact: <sip:6001@106..*.*.*:59922;rinstance=b8bac268efb3b8e3>;expires=59
Expires: 60
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (427 bytes) from UDP:192.168.250.123:5060 --->
BYE sip:asterisk@43.*.*.*:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.250.123;branch=z9hG4bK83f240abb52e8ea48c91e177a17bd448;rport
From: <sip:123456789@192.168.250.123>;tag=5cbafe955e4aad2b5f22c34c69123ba1
To: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
CSeq: 19117 BYE
Supported: replaces
Max-Forwards: 70
Content-Length: 0


<--- Transmitting SIP response (420 bytes) to UDP:192.168.250.123:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.250.123;rport=5060;received=192.168.250.123;branch=z9hG4bK83f240abb52e8ea48c91e177a17bd448
Call-ID: 78dc54c2-ecd7-434f-a0ac-dd2b97873791
From: <sip:123456789@192.168.250.123>;tag=5cbafe955e4aad2b5f22c34c69123ba1
To: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=8d6ce3e2-8572-464a-ac67-905601f87579
CSeq: 19117 BYE
Server: Asterisk PBX 20.4.0
Content-Length:  0


    -- Channel PJSIP/dinstar-00000003 left 'simple_bridge' basic-bridge <d0c02ede-fadc-4de8-83a9-9f19f15d4101>
    -- Channel PJSIP/webrtc_client-00000002 left 'simple_bridge' basic-bridge <d0c02ede-fadc-4de8-83a9-9f19f15d4101>
  == Spawn extension (from-internal, 123456789, 1) exited non-zero on 'PJSIP/webrtc_client-00000002'
<--- Transmitting SIP request (479 bytes) to WSS:106..*.*.*:60140 --->
BYE sip:hsln511o@106..*.*.*:60140;transport=ws;ob SIP/2.0
Via: SIP/2.0/WSS 10.0.0.32:8089;rport;branch=z9hG4bKPj043b98b7-820e-42e8-a0cf-e18f2ceb64dd;alias
From: <sip:123456789@asterisk-serv.ec2.com>;tag=3f9285af-d671-4185-b377-cbe5f38586c8
To: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
Call-ID: e5pqimfqedsjts3m5har
CSeq: 13889 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP response (378 bytes) from WSS:106..*.*.*:60140 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS 10.0.0.32:8089;rport;branch=z9hG4bKPj043b98b7-820e-42e8-a0cf-e18f2ceb64dd;alias
To: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=md43nglvsl
From: <sip:123456789@asterisk-serv.ec2.com>;tag=3f9285af-d671-4185-b377-cbe5f38586c8
Call-ID: e5pqimfqedsjts3m5har
CSeq: 13889 BYE
Supported: outbound
Content-Length: 0```

You’ve configured the transport so it has no knowledge of local networks, it is putting the EC2 public IP address in the SDP for where the remote side should send audio. You would need to set the local_net[1][2] appropriately such that the IP address remains the local one.

[1] https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip.conf.sample#L1086
[2] https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip.conf.sample#L139

Do I need two local_net definitions?
And should I put the EC2 public IP address in the local net?
And what would be the other local_net address?

Also should I define another block as such:

; UDP transport behind NAT
;
;[transport-udp-nat]
;type=transport
;protocol=udp
;bind=0.0.0.0
;local_net=192.0.2.0/24
;external_media_address=203.0.113.1
;external_signaling_address=203.0.113.1

You don’t need another transport. The local_net option specifies the local networks, not the public IP address. For example:

local_net=172.16.1.0/24

If a SIP request is sent to that network, then no substitution occurs and the public IP address would not be put in the SDP.

I can’t tell you what your local networks are.

These are my local networks.
I am using wireguard VPN on 10.5.5.1
My vpn client is connected to 10.5.5.2 through which my gateway is connected on 192.168.250.123
I have tried setting the local_net as 10.0.0.0/24 and 10.5.5.0/24 but I was facing the same issue.

 ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
        inet 10.0.0.32  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::838:62ff:fee7:b6ca  prefixlen 64  scopeid 0x20<link>
        ether 0a:38:62:e7:b6:ca  txqueuelen 1000  (Ethernet)
        RX packets 34885  bytes 6061617 (6.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 33805  bytes 7705950 (7.7 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1208  bytes 131377 (131.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1208  bytes 131377 (131.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 8921
        inet 10.5.5.1  netmask 255.255.255.0  destination 10.5.5.1
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 861  bytes 120212 (120.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6673  bytes 1566636 (1.5 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0```

Did you reload things after changing configuration? And if so, provide a new SIP trace and new configuration.

Yes I did reload.
Here is the new sip trace after setting the local_net=10.5.5.0/24
Still cannot hear the audio on one side.

<--- Received SIP request (7776 bytes) from WSS:106.*.*.*:49720 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK4842731
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 4105 INVITE
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7147

v=0
o=- 1967653567590557863 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk
m=audio 64089 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106.*.*.*
a=rtcp:51748 IN IP4 106.*.*.*
a=candidate:3013846079 1 udp 2122260223 192.168.251.65 64089 typ host generation 0 network-id 1 network-cost 10
a=candidate:3013846079 2 udp 2122260222 192.168.251.65 51748 typ host generation 0 network-id 1 network-cost 10
a=candidate:1638867376 1 udp 1686052607 106.*.*.* 64089 typ srflx raddr 192.168.251.65 rport 64089 generation 0 network-id 1 network-cost 10
a=candidate:1638867376 2 udp 1686052606 106.*.*.* 51748 typ srflx raddr 192.168.251.65 rport 51748 generation 0 network-id 1 network-cost 10
a=candidate:3446425255 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3446425255 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:YoUP
a=ice-pwd:Sgd0rn8ixnKv96kATLVbXliS
a=ice-options:trickle
a=fingerprint:sha-256 1F:61:9B:71:2D:6D:96:93:77:8F:99:0E:98:0A:AD:4F:C9:9B:B2:54:4A:E4:7A:E9:47:A8:75:BF:4B:57:0C:10
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=sendrecv
a=msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk 1d3bf6d5-b3b6-43dc-a015-d7c9eb12ae1b
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:4253574631 cname:LLV6KP4Wbt3FPP73
a=ssrc:4253574631 msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk 1d3bf6d5-b3b6-43dc-a015-d7c9eb12ae1b
m=video 57157 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106.*.*.*
a=rtcp:54125 IN IP4 106.*.*.*
a=candidate:3013846079 1 udp 2122260223 192.168.251.65 57157 typ host generation 0 network-id 1 network-cost 10
a=candidate:3013846079 2 udp 2122260222 192.168.251.65 54125 typ host generation 0 network-id 1 network-cost 10
a=candidate:1638867376 1 udp 1686052607 106.*.*.* 57157 typ srflx raddr 192.168.251.65 rport 57157 generation 0 network-id 1 network-cost 10
a=candidate:1638867376 2 udp 1686052606 106.*.*.* 54125 typ srflx raddr 192.168.251.65 rport 54125 generation 0 network-id 1 network-cost 10
a=candidate:3446425255 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3446425255 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:YoUP
a=ice-pwd:Sgd0rn8ixnKv96kATLVbXliS
a=ice-options:trickle
a=fingerprint:sha-256 1F:61:9B:71:2D:6D:96:93:77:8F:99:0E:98:0A:AD:4F:C9:9B:B2:54:4A:E4:7A:E9:47:A8:75:BF:4B:57:0C:10
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk a489568a-4147-4388-bc8b-b860f8f41e29
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 2605655925 248226841
a=ssrc:2605655925 cname:LLV6KP4Wbt3FPP73
a=ssrc:2605655925 msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk a489568a-4147-4388-bc8b-b860f8f41e29
a=ssrc:248226841 cname:LLV6KP4Wbt3FPP73
a=ssrc:248226841 msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk a489568a-4147-4388-bc8b-b860f8f41e29

<--- Transmitting SIP response (521 bytes) to WSS:106.*.*.*:49720 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=49720;received=106.*.*.*;branch=z9hG4bK4842731
Call-ID: e5pqim2n9ahj3unis2ui
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK4842731
CSeq: 4105 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1697721193/a92279a8b4f4a94285025113c2a7f191",opaque="4eb179501336e13b",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (533 bytes) from WSS:106.*.*.*:49720 --->
ACK sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK4842731
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK4842731
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 4105 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0


<--- Received SIP request (8078 bytes) from WSS:106.*.*.*:49720 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK6724350
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 4106 INVITE
Authorization: Digest algorithm=MD5, username="webrtc_client", realm="asterisk", nonce="1697721193/a92279a8b4f4a94285025113c2a7f191", uri="sip:123456789@asterisk-serv.ec2.com", response="e72392abc25d102339b8d6a81f1b2a25", opaque="4eb179501336e13b", qop=auth, cnonce="tcv753pskn92", nc=00000001
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7147

v=0
o=- 1967653567590557863 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk
m=audio 64089 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106.*.*.*
a=rtcp:51748 IN IP4 106.*.*.*
a=candidate:3013846079 1 udp 2122260223 192.168.251.65 64089 typ host generation 0 network-id 1 network-cost 10
a=candidate:3013846079 2 udp 2122260222 192.168.251.65 51748 typ host generation 0 network-id 1 network-cost 10
a=candidate:1638867376 1 udp 1686052607 106.*.*.* 64089 typ srflx raddr 192.168.251.65 rport 64089 generation 0 network-id 1 network-cost 10
a=candidate:1638867376 2 udp 1686052606 106.*.*.* 51748 typ srflx raddr 192.168.251.65 rport 51748 generation 0 network-id 1 network-cost 10
a=candidate:3446425255 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3446425255 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:YoUP
a=ice-pwd:Sgd0rn8ixnKv96kATLVbXliS
a=ice-options:trickle
a=fingerprint:sha-256 1F:61:9B:71:2D:6D:96:93:77:8F:99:0E:98:0A:AD:4F:C9:9B:B2:54:4A:E4:7A:E9:47:A8:75:BF:4B:57:0C:10
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=sendrecv
a=msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk 1d3bf6d5-b3b6-43dc-a015-d7c9eb12ae1b
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:4253574631 cname:LLV6KP4Wbt3FPP73
a=ssrc:4253574631 msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk 1d3bf6d5-b3b6-43dc-a015-d7c9eb12ae1b
m=video 57157 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106.*.*.*
a=rtcp:54125 IN IP4 106.*.*.*
a=candidate:3013846079 1 udp 2122260223 192.168.251.65 57157 typ host generation 0 network-id 1 network-cost 10
a=candidate:3013846079 2 udp 2122260222 192.168.251.65 54125 typ host generation 0 network-id 1 network-cost 10
a=candidate:1638867376 1 udp 1686052607 106.*.*.* 57157 typ srflx raddr 192.168.251.65 rport 57157 generation 0 network-id 1 network-cost 10
a=candidate:1638867376 2 udp 1686052606 106.*.*.* 54125 typ srflx raddr 192.168.251.65 rport 54125 generation 0 network-id 1 network-cost 10
a=candidate:3446425255 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3446425255 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:YoUP
a=ice-pwd:Sgd0rn8ixnKv96kATLVbXliS
a=ice-options:trickle
a=fingerprint:sha-256 1F:61:9B:71:2D:6D:96:93:77:8F:99:0E:98:0A:AD:4F:C9:9B:B2:54:4A:E4:7A:E9:47:A8:75:BF:4B:57:0C:10
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk a489568a-4147-4388-bc8b-b860f8f41e29
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 2605655925 248226841
a=ssrc:2605655925 cname:LLV6KP4Wbt3FPP73
a=ssrc:2605655925 msid:3V3FrXbOAbXvgHjfLwHwlbGv1tvBz5DCmbEk a489568a-4147-4388-bc8bďż˝<--- Transmitting SIP response (350 bytes) to WSS:106.*.*.*:49720 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=49720;received=106.*.*.*;branch=z9hG4bK6724350
Call-ID: e5pqim2n9ahj3unis2ui
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
To: <sip:123456789@asterisk-serv.ec2.com>
CSeq: 4106 INVITE
Server: Asterisk PBX 20.4.0
Content-Length:  0


    -- Executing [123456789@from-internal:1] Dial("PJSIP/webrtc_client-00000002", "PJSIP/123456789@dinstar,,r") in new stack
    -- Called PJSIP/123456789@dinstar
<--- Transmitting SIP response (547 bytes) to WSS:106.*.*.*:49720 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=49720;received=106.*.*.*;branch=z9hG4bK6724350
Call-ID: e5pqim2n9ahj3unis2ui
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
To: <sip:123456789@asterisk-serv.ec2.com>;tag=77b7c211-c9d7-4229-ad8a-793d6a1ddd8b
CSeq: 4106 INVITE
Server: Asterisk PBX 20.4.0
Contact: <sip:10.0.0.32:8089;transport=ws>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Content-Length:  0


<--- Transmitting SIP request (941 bytes) to UDP:192.168.250.123:5060 --->
INVITE sip:123456789@192.168.250.123:5060 SIP/2.0
Via: SIP/2.0/UDP 43.*.*.*:5060;rport;branch=z9hG4bKPjce2ec9b1-431c-4fa2-a33d-a93cdca72ba0
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
To: <sip:123456789@192.168.250.123>
Contact: <sip:asterisk@43.*.*.*:5060>
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13544 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
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Type: application/sdp
Content-Length:   235

v=0
o=- 948091058 948091058 IN IP4 43.*.*.*
s=Asterisk
c=IN IP4 43.*.*.*
t=0 0
m=audio 14082 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP response (368 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPjce2ec9b1-431c-4fa2-a33d-a93cdca72ba0;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
To: <sip:123456789@192.168.250.123>
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13544 INVITE
Content-Length: 0


<--- Received SIP response (735 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPjce2ec9b1-431c-4fa2-a33d-a93cdca72ba0;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
To: <sip:123456789@192.168.250.123>;tag=95f2630888631d06680cde0244055a1c
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13544 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Content-Type: application/sdp
Content-Length:   204

v=0
o=host 1245244 1245245 IN IP4 192.168.250.123
s=-
c=IN IP4 192.168.250.123
t=0 0
m=audio 8000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=ptime:20

    -- PJSIP/dinstar-00000003 is making progress passing it to PJSIP/webrtc_client-00000002
<--- Received SIP response (792 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 43.*.*.*:5060;rport=5060;branch=z9hG4bKPjce2ec9b1-431c-4fa2-a33d-a93cdca72ba0;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
To: <sip:123456789@192.168.250.123>;tag=95f2630888631d06680cde0244055a1c
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13544 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, UPDATE, NOTIFY, REFER
Content-Type: application/sdp
Content-Length:   204

v=0
o=host 1246535 1246536 IN IP4 192.168.250.123
s=-
c=IN IP4 192.168.250.123
t=0 0
m=audio 8000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=ptime:20

<--- Transmitting SIP request (465 bytes) to UDP:192.168.250.123:5060 --->
ACK sip:123456789@192.168.250.123;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 43.*.*.*:5060;rport;branch=z9hG4bKPja2a90504-ff2a-48d6-b92f-ad9c3190cd49
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
To: <sip:123456789@192.168.250.123>;tag=95f2630888631d06680cde0244055a1c
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13544 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Length:  0


    -- PJSIP/dinstar-00000003 answered PJSIP/webrtc_client-00000002
<--- Transmitting SIP response (1756 bytes) to WSS:106.*.*.*:49720 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=49720;received=106.*.*.*;branch=z9hG4bK6724350
Call-ID: e5pqim2n9ahj3unis2ui
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
To: <sip:123456789@asterisk-serv.ec2.com>;tag=77b7c211-c9d7-4229-ad8a-793d6a1ddd8b
CSeq: 4106 INVITE
Server: Asterisk PBX 20.4.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Contact: <sip:10.0.0.32:8089;transport=ws>
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:  1132

v=0
o=- 2705582247 4 IN IP4 10.0.0.32
s=Asterisk
c=IN IP4 10.0.0.32
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 18934 UDP/TLS/RTP/SAVPF 0 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 AE:FE:C5:55:A4:33:69:05:EF:8A:24:31:17:71:D2:F4:3A:84:C0:D7:21:58:86:3E:2A:40:EC:78:F3:36:AB:8B
a=ice-ufrag:64068cbd7d995f3d71a963cd6ac9b5bd
a=ice-pwd:6e9177df7b11d2fc05be233f5015ebe3
a=candidate:Ha000020 1 UDP 2130706431 10.0.0.32 18934 typ host
a=candidate:Ha050501 1 UDP 2130706431 10.5.5.1 18934 typ host
a=candidate:Hf06d9444 1 UDP 2130706431 fe80::838:62ff:fee7:b6ca 18934 typ host
a=candidate:S2bcd342c 1 UDP 1694498815 43.*.*.* 18934 typ srflx raddr 10.0.0.32 rport 18934
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp-mux
a=ssrc:1312550407 cname:663934b8-4c43-474c-859e-ccbcc3330a85
a=msid:702e6720-831e-4edc-bf39-621e224b0877 088420a5-573a-4453-8ab4-7ba196b61250
a=rtcp-fb:* transport-cc
a=mid:0
m=video 0 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116

    -- Channel PJSIP/dinstar-00000003 joined 'simple_bridge' basic-bridge <7fde2a01-36b6-44d0-b1b8-92c495685f68>
    -- Channel PJSIP/webrtc_client-00000002 joined 'simple_bridge' basic-bridge <7fde2a01-36b6-44d0-b1b8-92c495685f68>
<--- Received SIP request (484 bytes) from WSS:106.*.*.*:49720 --->
ACK sip:10.0.0.32:8089;transport=ws SIP/2.0
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK2317479
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=77b7c211-c9d7-4229-ad8a-793d6a1ddd8b
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 4106 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0


<--- Received SIP request (938 bytes) from UDP:106.*.*.*:59922 --->
REGISTER sip:asterisk-serv.ec2.com:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 106.*.*.*:59922;branch=z9hG4bK-524287-1---fee36d459d377191;rport
Max-Forwards: 70
Contact: <sip:6001@106.*.*.*:59922;transport=UDP;rinstance=b8bac268efb3b8e3>
To: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>
From: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>;tag=682d0e04
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
CSeq: 199 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.10 v2.10.17.3
Authorization: Digest username="6001",realm="asterisk",nonce="1697721159/c32607ea80a3f9f898281c0a76a11f09",uri="sip:asterisk-serv.ec2.com:5060;transport=UDP",response="99860bf192b9ee1f0d9e23d48d637441",cnonce="ff167adaa0c9c5753727b88a5adcced2",nc=00000002,qop=auth,algorithm=MD5,opaque="54eb61ff2f89ab59"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (542 bytes) to UDP:106.*.*.*:59922 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 106.*.*.*:59922;rport=59922;received=106.*.*.*;branch=z9hG4bK-524287-1---fee36d459d377191
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
From: <sip:6001@asterisk-serv.ec2.com>;tag=682d0e04
To: <sip:6001@asterisk-serv.ec2.com>;tag=z9hG4bK-524287-1---fee36d459d377191
CSeq: 199 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1697721213/58e4c92ab95268ddde2d627ab9054e23",opaque="3fee199a43733b16",stale=true,algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (938 bytes) from UDP:106.*.*.*:59922 --->
REGISTER sip:asterisk-serv.ec2.com:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 106.*.*.*:59922;branch=z9hG4bK-524287-1---47a97bf0572fb53a;rport
Max-Forwards: 70
Contact: <sip:6001@106.*.*.*:59922;transport=UDP;rinstance=b8bac268efb3b8e3>
To: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>
From: <sip:6001@asterisk-serv.ec2.com:5060;transport=UDP>;tag=682d0e04
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
CSeq: 200 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.10 v2.10.17.3
Authorization: Digest username="6001",realm="asterisk",nonce="1697721213/58e4c92ab95268ddde2d627ab9054e23",uri="sip:asterisk-serv.ec2.com:5060;transport=UDP",response="ca7a8699accacb7a2ae10d292bf63508",cnonce="d001e8449911fc28dc4db1c77d0e3f74",nc=00000001,qop=auth,algorithm=MD5,opaque="3fee199a43733b16"
Allow-Events: presence, kpml, talk
Content-Length: 0


<--- Transmitting SIP response (504 bytes) to UDP:106.*.*.*:59922 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 106.*.*.*:59922;rport=59922;received=106.*.*.*;branch=z9hG4bK-524287-1---47a97bf0572fb53a
Call-ID: NKaPoSRjTU-FttOmUPdPDA..
From: <sip:6001@asterisk-serv.ec2.com>;tag=682d0e04
To: <sip:6001@asterisk-serv.ec2.com>;tag=z9hG4bK-524287-1---47a97bf0572fb53a
CSeq: 200 REGISTER
Date: Thu, 19 Oct 2023 13:13:33 GMT
Contact: <sip:6001@106.*.*.*:59922;rinstance=b8bac268efb3b8e3>;expires=59
Expires: 60
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (427 bytes) from UDP:192.168.250.123:5060 --->
BYE sip:asterisk@43.*.*.*:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.250.123;branch=z9hG4bK387d612b2aceba681d6018182f19e8db;rport
From: <sip:123456789@192.168.250.123>;tag=95f2630888631d06680cde0244055a1c
To: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
CSeq: 13545 BYE
Supported: replaces
Max-Forwards: 70
Content-Length: 0


<--- Transmitting SIP response (420 bytes) to UDP:192.168.250.123:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.250.123;rport=5060;received=192.168.250.123;branch=z9hG4bK387d612b2aceba681d6018182f19e8db
Call-ID: 9570a6a4-6e07-40eb-ad3a-564963cc98da
From: <sip:123456789@192.168.250.123>;tag=95f2630888631d06680cde0244055a1c
To: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=97d6b588-686b-4272-b9d2-98566d348f9e
CSeq: 13545 BYE
Server: Asterisk PBX 20.4.0
Content-Length:  0


    -- Channel PJSIP/dinstar-00000003 left 'simple_bridge' basic-bridge <7fde2a01-36b6-44d0-b1b8-92c495685f68>
    -- Channel PJSIP/webrtc_client-00000002 left 'simple_bridge' basic-bridge <7fde2a01-36b6-44d0-b1b8-92c495685f68>
  == Spawn extension (from-internal, 123456789, 1) exited non-zero on 'PJSIP/webrtc_client-00000002'
<--- Transmitting SIP request (479 bytes) to WSS:106.*.*.*:49720 --->
BYE sip:hsln511o@106.*.*.*:49720;transport=ws;ob SIP/2.0
Via: SIP/2.0/WSS 10.0.0.32:8089;rport;branch=z9hG4bKPj29295c93-db3d-421c-8634-657898a51c0b;alias
From: <sip:123456789@asterisk-serv.ec2.com>;tag=77b7c211-c9d7-4229-ad8a-793d6a1ddd8b
To: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 26243 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP response (378 bytes) from WSS:106.*.*.*:49720 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS 10.0.0.32:8089;rport;branch=z9hG4bKPj29295c93-db3d-421c-8634-657898a51c0b;alias
To: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=v15gm3epnh
From: <sip:123456789@asterisk-serv.ec2.com>;tag=77b7c211-c9d7-4229-ad8a-793d6a1ddd8b
Call-ID: e5pqim2n9ahj3unis2ui
CSeq: 26243 BYE
Supported: outbound
Content-Length: 0```

This is the IP in use with the dinstar from what I can tell, which is not within the local_net configured and thus is using the external IP address.

Yes you are right.
Should I try configuring local_net=192.168.250.0/24

If that is the network range that it is in, yes.

I tried setting local_net=192.168.250.0/24
But it didn’t work.
Now I am not even able to connect the call.
I get ringing but it ends the call as soon as I pick it up sometimes even before that.

192.168.250.123 is what dinstar my gateway is on.
I am able to ping it from my ec2 machine through wireguard.
This network actually exists on other local machine which connected to the gateway through ethernet.

Here are my sip logs.

<--- Received SIP request (7767 bytes) from WSS:106.*.*.*:51855 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK7499625
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
Call-ID: e5pqi2su43am2n3p5mvv
CSeq: 7904 INVITE
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7138

v=0
o=- 8577870232309360819 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU
m=audio 63582 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106.*.*.*
a=rtcp:60588 IN IP4 106.*.*.*
a=candidate:450558880 1 udp 2122260223 192.168.251.65 63582 typ host generation 0 network-id 1 network-cost 10
a=candidate:450558880 2 udp 2122260222 192.168.251.65 60588 typ host generation 0 network-id 1 network-cost 10
a=candidate:1729063316 1 udp 1686052607 106.*.*.* 63582 typ srflx raddr 192.168.251.65 rport 63582 generation 0 network-id 1 network-cost 10
a=candidate:1729063316 2 udp 1686052606 106.*.*.* 60588 typ srflx raddr 192.168.251.65 rport 60588 generation 0 network-id 1 network-cost 10
a=candidate:3832557364 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3832557364 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:6R64
a=ice-pwd:ICPJyID0dl1hWxNygkEPn9W3
a=ice-options:trickle
a=fingerprint:sha-256 A6:8E:6A:97:93:50:17:5C:34:54:CF:D8:7C:D1:5A:17:21:93:B9:CE:A1:D0:C9:04:78:9D:2F:13:6F:33:24:22
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=sendrecv
a=msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU 13a30077-c532-4ee0-b955-8567125ab93d
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:241691623 cname:htsVIR9yUOw5nyYB
a=ssrc:241691623 msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU 13a30077-c532-4ee0-b955-8567125ab93d
m=video 56976 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106.*.*.*
a=rtcp:62420 IN IP4 106.*.*.*
a=candidate:450558880 1 udp 2122260223 192.168.251.65 56976 typ host generation 0 network-id 1 network-cost 10
a=candidate:450558880 2 udp 2122260222 192.168.251.65 62420 typ host generation 0 network-id 1 network-cost 10
a=candidate:1729063316 1 udp 1686052607 106.*.*.* 56976 typ srflx raddr 192.168.251.65 rport 56976 generation 0 network-id 1 network-cost 10
a=candidate:1729063316 2 udp 1686052606 106.*.*.* 62420 typ srflx raddr 192.168.251.65 rport 62420 generation 0 network-id 1 network-cost 10
a=candidate:3832557364 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3832557364 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:6R64
a=ice-pwd:ICPJyID0dl1hWxNygkEPn9W3
a=ice-options:trickle
a=fingerprint:sha-256 A6:8E:6A:97:93:50:17:5C:34:54:CF:D8:7C:D1:5A:17:21:93:B9:CE:A1:D0:C9:04:78:9D:2F:13:6F:33:24:22
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU fbc34078-53fc-4855-bee2-2ac9dcfbe65e
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 747849229 278144309
a=ssrc:747849229 cname:htsVIR9yUOw5nyYB
a=ssrc:747849229 msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU fbc34078-53fc-4855-bee2-2ac9dcfbe65e
a=ssrc:278144309 cname:htsVIR9yUOw5nyYB
a=ssrc:278144309 msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU fbc34078-53fc-4855-bee2-2ac9dcfbe65e

<--- Transmitting SIP response (521 bytes) to WSS:106.*.*.*:51855 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=51855;received=106.*.*.*;branch=z9hG4bK7499625
Call-ID: e5pqi2su43am2n3p5mvv
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK7499625
CSeq: 7904 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1697721813/c9c44e857d7780d3395553f4d3fb0f81",opaque="00d4541f56a0d40b",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.4.0
Content-Length:  0


<--- Received SIP request (533 bytes) from WSS:106.*.*.*:51855 --->
ACK sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK7499625
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=z9hG4bK7499625
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
Call-ID: e5pqi2su43am2n3p5mvv
CSeq: 7904 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0


<--- Received SIP request (8069 bytes) from WSS:106.*.*.*:51855 --->
INVITE sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK1307087
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
Call-ID: e5pqi2su43am2n3p5mvv
CSeq: 7905 INVITE
Authorization: Digest algorithm=MD5, username="webrtc_client", realm="asterisk", nonce="1697721813/c9c44e857d7780d3395553f4d3fb0f81", uri="sip:123456789@asterisk-serv.ec2.com", response="390970e144b0d7b2ad338d412a95c2d8", opaque="00d4541f56a0d40b", qop=auth, cnonce="b3l4labe37sd", nc=00000001
Contact: <sip:hsln511o@cv81ngn7kof3.invalid;transport=ws;ob>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: ice,replaces,outbound
User-Agent: JsSIP 3.10.0
Content-Length: 7138

v=0
o=- 8577870232309360819 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU
m=audio 63582 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 106.*.*.*
a=rtcp:60588 IN IP4 106.*.*.*
a=candidate:450558880 1 udp 2122260223 192.168.251.65 63582 typ host generation 0 network-id 1 network-cost 10
a=candidate:450558880 2 udp 2122260222 192.168.251.65 60588 typ host generation 0 network-id 1 network-cost 10
a=candidate:1729063316 1 udp 1686052607 106.*.*.* 63582 typ srflx raddr 192.168.251.65 rport 63582 generation 0 network-id 1 network-cost 10
a=candidate:1729063316 2 udp 1686052606 106.*.*.* 60588 typ srflx raddr 192.168.251.65 rport 60588 generation 0 network-id 1 network-cost 10
a=candidate:3832557364 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3832557364 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:6R64
a=ice-pwd:ICPJyID0dl1hWxNygkEPn9W3
a=ice-options:trickle
a=fingerprint:sha-256 A6:8E:6A:97:93:50:17:5C:34:54:CF:D8:7C:D1:5A:17:21:93:B9:CE:A1:D0:C9:04:78:9D:2F:13:6F:33:24:22
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=sendrecv
a=msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU 13a30077-c532-4ee0-b955-8567125ab93d
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:241691623 cname:htsVIR9yUOw5nyYB
a=ssrc:241691623 msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU 13a30077-c532-4ee0-b955-8567125ab93d
m=video 56976 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 114 115 116
c=IN IP4 106.*.*.*
a=rtcp:62420 IN IP4 106.*.*.*
a=candidate:450558880 1 udp 2122260223 192.168.251.65 56976 typ host generation 0 network-id 1 network-cost 10
a=candidate:450558880 2 udp 2122260222 192.168.251.65 62420 typ host generation 0 network-id 1 network-cost 10
a=candidate:1729063316 1 udp 1686052607 106.*.*.* 56976 typ srflx raddr 192.168.251.65 rport 56976 generation 0 network-id 1 network-cost 10
a=candidate:1729063316 2 udp 1686052606 106.*.*.* 62420 typ srflx raddr 192.168.251.65 rport 62420 generation 0 network-id 1 network-cost 10
a=candidate:3832557364 1 tcp 1518280447 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3832557364 2 tcp 1518280446 192.168.251.65 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:6R64
a=ice-pwd:ICPJyID0dl1hWxNygkEPn9W3
a=ice-options:trickle
a=fingerprint:sha-256 A6:8E:6A:97:93:50:17:5C:34:54:CF:D8:7C:D1:5A:17:21:93:B9:CE:A1:D0:C9:04:78:9D:2F:13:6F:33:24:22
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU fbc34078-53fc-4855-bee2-2ac9dcfbe65e
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 red/90000
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 ulpfec/90000
a=ssrc-group:FID 747849229 278144309
a=ssrc:747849229 cname:htsVIR9yUOw5nyYB
a=ssrc:747849229 msid:MZHqrUqkmiUacgEMbLQF2ZyIdakgewn6DCSU fbc34078-53fc-4855-bee2-2ac9dcfbďż˝<--- Transmitting SIP response (350 bytes) to WSS:106.*.*.*:51855 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=51855;received=106.*.*.*;branch=z9hG4bK1307087
Call-ID: e5pqi2su43am2n3p5mvv
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
To: <sip:123456789@asterisk-serv.ec2.com>
CSeq: 7905 INVITE
Server: Asterisk PBX 20.4.0
Content-Length:  0


    -- Executing [123456789@from-internal:1] Dial("PJSIP/webrtc_client-0000000c", "PJSIP/123456789@dinstar,,r") in new stack
    -- Called PJSIP/123456789@dinstar
<--- Transmitting SIP response (547 bytes) to WSS:106.*.*.*:51855 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=51855;received=106.*.*.*;branch=z9hG4bK1307087
Call-ID: e5pqi2su43am2n3p5mvv
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
To: <sip:123456789@asterisk-serv.ec2.com>;tag=26a9e0d7-8c1d-450d-a67c-002e3e250812
CSeq: 7905 INVITE
Server: Asterisk PBX 20.4.0
Contact: <sip:10.0.0.32:8089;transport=ws>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Content-Length:  0


<--- Transmitting SIP request (925 bytes) to UDP:192.168.250.123:5060 --->
INVITE sip:123456789@192.168.250.123:5060 SIP/2.0
Via: SIP/2.0/UDP 10.5.5.1:5060;rport;branch=z9hG4bKPjf0933ddd-8522-4c16-98eb-04a8d53fae09
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=e58d2e8f-b84e-404d-b3b1-4c5b676ee38c
To: <sip:123456789@192.168.250.123>
Contact: <sip:asterisk@10.5.5.1:5060>
Call-ID: 00d54aa0-0c4d-49ad-ad8b-1b5ab8cbc963
CSeq: 19528 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
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Type: application/sdp
Content-Length:   227

v=0
o=- 165024812 165024812 IN IP4 10.5.5.1
s=Asterisk
c=IN IP4 10.5.5.1
t=0 0
m=audio 17562 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP response (364 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.5.5.1:5060;rport=5060;branch=z9hG4bKPjf0933ddd-8522-4c16-98eb-04a8d53fae09;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=e58d2e8f-b84e-404d-b3b1-4c5b676ee38c
To: <sip:123456789@192.168.250.123>
Call-ID: 00d54aa0-0c4d-49ad-ad8b-1b5ab8cbc963
CSeq: 19528 INVITE
Content-Length: 0


<--- Received SIP response (731 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.5.5.1:5060;rport=5060;branch=z9hG4bKPjf0933ddd-8522-4c16-98eb-04a8d53fae09;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=e58d2e8f-b84e-404d-b3b1-4c5b676ee38c
To: <sip:123456789@192.168.250.123>;tag=81fa4358ec02204e437cbae28cdd0abf
Call-ID: 00d54aa0-0c4d-49ad-ad8b-1b5ab8cbc963
CSeq: 19528 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Content-Type: application/sdp
Content-Length:   204

v=0
o=host 1307215 1307216 IN IP4 192.168.250.123
s=-
c=IN IP4 192.168.250.123
t=0 0
m=audio 8000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=ptime:20

    -- PJSIP/dinstar-0000000d is making progress passing it to PJSIP/webrtc_client-0000000c
<--- Received SIP response (501 bytes) from UDP:192.168.250.123:5060 --->
SIP/2.0 480 Temporarily not available
Via: SIP/2.0/UDP 10.5.5.1:5060;rport=5060;branch=z9hG4bKPjf0933ddd-8522-4c16-98eb-04a8d53fae09;received=192.168.250.218
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=e58d2e8f-b84e-404d-b3b1-4c5b676ee38c
To: <sip:123456789@192.168.250.123>;tag=81fa4358ec02204e437cbae28cdd0abf
Call-ID: 00d54aa0-0c4d-49ad-ad8b-1b5ab8cbc963
CSeq: 19528 INVITE
Contact: <sip:123456789@192.168.250.123;transport=UDP>
Supported: replaces
Content-Length: 0


<--- Transmitting SIP request (452 bytes) to UDP:192.168.250.123:5060 --->
ACK sip:123456789@192.168.250.123:5060 SIP/2.0
Via: SIP/2.0/UDP 10.5.5.1:5060;rport;branch=z9hG4bKPjf0933ddd-8522-4c16-98eb-04a8d53fae09
From: "webrtc_client" <sip:webrtc_client@10.0.0.32>;tag=e58d2e8f-b84e-404d-b3b1-4c5b676ee38c
To: <sip:123456789@192.168.250.123>;tag=81fa4358ec02204e437cbae28cdd0abf
Call-ID: 00d54aa0-0c4d-49ad-ad8b-1b5ab8cbc963
CSeq: 19528 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 20.4.0
Content-Length:  0


    -- No one is available to answer at this time (1:0/0/0)
    -- Auto fallthrough, channel 'PJSIP/webrtc_client-0000000c' status is 'NOANSWER'
<--- Transmitting SIP response (543 bytes) to WSS:106.*.*.*:51855 --->
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;rport=51855;received=106.*.*.*;branch=z9hG4bK1307087
Call-ID: e5pqi2su43am2n3p5mvv
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
To: <sip:123456789@asterisk-serv.ec2.com>;tag=26a9e0d7-8c1d-450d-a67c-002e3e250812
CSeq: 7905 INVITE
Server: Asterisk PBX 20.4.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Reason: Q.850;cause=19
Content-Length:  0


<--- Received SIP request (555 bytes) from WSS:106.*.*.*:51855 --->
ACK sip:123456789@asterisk-serv.ec2.com SIP/2.0
Route: <sip:asterisk-serv.ec2.com:8089;transport=ws;lr>
Via: SIP/2.0/WSS cv81ngn7kof3.invalid;branch=z9hG4bK1307087
Max-Forwards: 69
To: <sip:123456789@asterisk-serv.ec2.com>;tag=26a9e0d7-8c1d-450d-a67c-002e3e250812
From: "webrtc_client" <sip:webrtc_client@asterisk-serv.ec2.com>;tag=64i04psm7k
Call-ID: e5pqi2su43am2n3p5mvv
CSeq: 7905 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.10.0
Content-Length: 0```

The SDP now contains this IP address. The dinstar is responding “480 Temporarily not available”. I have no insight into why it is doing that.

My network is like this.
EC2 → VPN server [10.5.5.1] → VPN client [10.5.5.2]
10.5.5.2 is another linux machine connected to the GSM gateway via ethernet [192.168.250.123]
And now I am able to ping 192.168.250.123 from my EC2 because it is connected to the VPN client.

I’m not really sure what you want me to do with that information.

This is my ip route on my EC2. Maybe that’s why dinstar is responding with 480 Unavailable.

ip route on my EC2
default via 10.0.0.1 dev eth0 proto dhcp src 10.0.0.32 metric 100
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.32 metric 100
10.0.0.1 dev eth0 proto dhcp scope link src 10.0.0.32 metric 100
10.0.0.2 dev eth0 proto dhcp scope link src 10.0.0.32 metric 100
10.5.5.0/24 dev wg0 proto kernel scope link src 10.5.5.1
192.168.250.0/24 dev wg0 scope link```

This is my IP route on my local machine [VPN client]

default via 192.168.250.1 dev wlxa42a9545e661 proto static metric 600
default via 192.168.250.123 dev enp2s0 proto static metric 20100
10.5.5.1 dev wg0 scope link
169.254.0.0/16 dev wlxa42a9545e661 scope link metric 1000
192.168.250.0/24 dev enp2s0 proto kernel scope link src 192.168.250.218 metric 100
192.168.250.0/24 dev wlxa42a9545e661 proto kernel scope link src 192.168.250.254 metric 600
192.168.250.0/23 dev wlxa42a9545e661 proto kernel scope link src 192.168.251.9 metric 600

I have added these commands on my VPN client to forward the requests to my VPN server

sysctl -w net.ipv4.ip_forward=1

iptables -t mangle -A PREROUTING -i wg0 -j MARK --set-mark 0x30
iptables -t nat -A POSTROUTING ! -o wg0 -m mark --mark 0x30 -j MASQUERADE
iptables -t mangle -D PREROUTING -i wg0 -j MARK --set-mark 0x30
iptables -t nat -D POSTROUTING ! -o wg0 -m mark --mark 0x30 -j MASQUERADE