Asterisk 18 webrtc in docker

I tried to configure Asterisk 18 in docker with WebRTC and SIP
I have peers - 501, 502 - WebRTC (Chrome Browser), 1003 - Zoiper

10.7.97.171 - docker host IP
10.5.152.12 - clients IP (501 502 1003)
172.17.0.27 - asterisk in docker

rtp.conf

[general]
rtpstart=10050
rtpend=10100

icesupport=true
stunaddr=stun.l.google.com:19302


http.conf

text[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089

tlscertfile=/etc/asterisk/keys/my_domain-peer.pem
tlsprivatekey=/etc/asterisk/keysmy_domain-key.pem


pjsip.conf

[transport-jigasi]
type = transport
protocol = udp
bind = 0.0.0.0:5160
external_media_address=10.7.97.171
external_signaling_address=10.7.97.171

[jigasi_auth]
type = auth
auth_type = userpass
password = dddddddddddddd
username = jigasi

[jigasi]
type = aor
max_contacts = 1
remove_existing = yes

[jigasi]
type = endpoint
transport = transport-jigasi
context = public
direct_media = no
disallow = all
allow = ulaw
allow = speex
auth = jigasi_auth
aors = jigasi
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes

[1003]
type = auth
username = 1003
password = 1234

[1003]
type = endpoint
transport = transport-jigasi
context = public
dtmf_mode=rfc4733
auth = 1003
outbound_auth = 1003
aors = 1003
disallow = all
allow = g722
allow = speex
allow = alaw
[1004]
type = aor
max_contacts = 1



[502]
type=aor
max_contacts=5
remove_existing=yes

[502]
type=auth
auth_type=userpass
username=502
password=webrtc_client ;

[502]
type=endpoint
dtmf_mode=rfc4733
aors=502
auth=502
dtls_auto_generate_cert=yes
webrtc=yes
direct_media = no
; Setting webrtc=yes is a shortcut for setting the following options:
; use_avpf=yes
; media_encryption=dtls
; dtls_verify=fingerprint
; dtls_setup=actpass
; ice_support=yes
; media_use_received_transport=yes
; rtcp_mux=yes
context=public
disallow=all
allow=g722, speex,opus,ulaw

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0


extensions.conf

[public]
exten => 1003,1,Dial(PJSIP/1003,10)
exten => jigasi,1,Dial(PJSIP/jigasi,10)
exten => 501,1,Dial(PJSIP/501,10)
exten => 502,1,Dial(PJSIP/502,10)


When I call from 502 (webrtc) to 1003 it works fine and the sound goes both ways

success call from 502 to 1003
-- Added contact 'sip:9qlp9nhl@10.5.152.12:41044;transport=ws;x-ast-orig-host=jqtvs5k9ie78.invalid:0' to AOR '502' with expiration of 600 seconds

<— Transmitting SIP response (496 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK1737204
Call-ID: 0reku46bg2kn1nmlfpd3
From: sip:502@my.domain.net;tag=rg6gd4phqj
To: sip:502@my.domain.net;tag=z9hG4bK1737204
CSeq: 3 REGISTER
Date: Mon, 18 Mar 2024 20:15:19 GMT
Contact: sip:mn7stugv@qiu4it0jrnv1.invalid;transport=ws;expires=118
Contact: sip:9qlp9nhl@jqtvs5k9ie78.invalid;transport=ws;expires=599
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41044 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK2404885
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=2vbp0qmvkp
CSeq: 1 OPTIONS
Call-ID: 0rekuqsk9kpar0pkve1f
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (801 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK4746306
Call-ID: 0reku6ivo6rcmtibas0n
From: sip:502@my.domain.net;tag=3vssp2ku5g
To: sip:502@my.domain.net;tag=z9hG4bK4746306
CSeq: 2 OPTIONS
Accept: application/xpidf+xml, application/cpim-pidf+xml, application/dialog-info+xml, application/pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/sdp, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (2178 bytes) from WSS:10.5.152.12:41044 —>
INVITE sip:1003@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK8569743
To: sip:1003@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=cgttupilb1
CSeq: 1 INVITE
Call-ID: 0reku7oc329lkhvr86to
Max-Forwards: 70
Contact: sip:9qlp9nhl@jqtvs5k9ie78.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Type: application/sdp
Content-Length: 1675

v=0
o=- 8713593786049119125 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 41c57e10-e226-4aa0-96ce-41d897286727
m=audio 55546 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 172.23.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:4259692166 1 udp 2122260223 172.23.0.1 55546 typ host generation 0 network-id 1
a=candidate:2746971354 1 udp 2122194687 10.5.152.12 43699 typ host generation 0 network-id 2
a=candidate:1580867998 1 udp 2122129151 172.17.0.1 52294 typ host generation 0 network-id 3
a=candidate:3875661938 1 udp 2122063615 192.168.1.96 35092 typ host generation 0 network-id 4 network-cost 10
a=ice-ufrag:b+V5
a=ice-pwd:UYZVQd//QW1KA9/dozqeUzTl
a=ice-options:trickle
a=fingerprint:sha-256 D3:5A:E3:70:52:8C:8F:2F:00:79:A4:FA:FC:FE:44:28:84:F2:2A:ED:83:87:FA:90:5B:67:84:02:1F:40:9D:24
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
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:41c57e10-e226-4aa0-96ce-41d897286727 2ca441cc-d23b-4640-b1c8-e3572e69beb2
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:40419412 cname:FOs0P3mO9L/yoRRO
a=ssrc:40419412 msid:41c57e10-e226-4aa0-96ce-41d897286727 2ca441cc-d23b-4640-b1c8-e3572e69beb2

<— Transmitting SIP response (472 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK8569743
Call-ID: 0reku7oc329lkhvr86to
From: sip:502@my.domain.net;tag=cgttupilb1
To: sip:1003@my.domain.net;tag=z9hG4bK8569743
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710792927/e95ca4608d9b1abc2818347ae7834a3b”,opaque=“0ba6150b3dac5941”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (303 bytes) from WSS:10.5.152.12:41044 —>
ACK sip:1003@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK8569743
To: sip:1003@my.domain.net;tag=z9hG4bK8569743
From: sip:502@my.domain.net:8089;tag=cgttupilb1
Call-ID: 0reku7oc329lkhvr86to
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0

<— Received SIP request (2461 bytes) from WSS:10.5.152.12:41044 —>
INVITE sip:1003@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK8666530
To: sip:1003@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=cgttupilb1
CSeq: 2 INVITE
Call-ID: 0reku7oc329lkhvr86to
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username=“502”, realm=“asterisk”, nonce=“1710792927/e95ca4608d9b1abc2818347ae7834a3b”, uri=“sip:1003@my.domain.net:8089”, response=“ae220a8d148b9079eb05b6a102a690af”, opaque=“0ba6150b3dac5941”, qop=auth, cnonce=“i4b0h77d2bum”, nc=00000001
Contact: sip:9qlp9nhl@jqtvs5k9ie78.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Type: application/sdp
Content-Length: 1675

v=0
o=- 8713593786049119125 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 41c57e10-e226-4aa0-96ce-41d897286727
m=audio 55546 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 172.23.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:4259692166 1 udp 2122260223 172.23.0.1 55546 typ host generation 0 network-id 1
a=candidate:2746971354 1 udp 2122194687 10.5.152.12 43699 typ host generation 0 network-id 2
a=candidate:1580867998 1 udp 2122129151 172.17.0.1 52294 typ host generation 0 network-id 3
a=candidate:3875661938 1 udp 2122063615 192.168.1.96 35092 typ host generation 0 network-id 4 network-cost 10
a=ice-ufrag:b+V5
a=ice-pwd:UYZVQd//QW1KA9/dozqeUzTl
a=ice-options:trickle
a=fingerprint:sha-256 D3:5A:E3:70:52:8C:8F:2F:00:79:A4:FA:FC:FE:44:28:84:F2:2A:ED:83:87:FA:90:5B:67:84:02:1F:40:9D:24
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
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:41c57e10-e226-4aa0-96ce-41d897286727 2ca441cc-d23b-4640-b1c8-e3572e69beb2
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:40419412 cname:FOs0P3mO9L/yoRRO
a=ssrc:40419412 msid:41c57e10-e226-4aa0-96ce-41d897286727 2ca441cc-d23b-4640-b1c8-e3572e69beb2

<— Transmitting SIP response (301 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK8666530
Call-ID: 0reku7oc329lkhvr86to
From: sip:502@my.domain.net;tag=cgttupilb1
To: sip:1003@my.domain.net
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Content-Length: 0

-- Executing [1003@public:1] Dial("PJSIP/502-00000038", "PJSIP/1003,10") in new stack
-- Called PJSIP/1003

<— Transmitting SIP request (999 bytes) to UDP:10.5.152.12:46083 —>
INVITE sip:1003@10.5.152.12:46083;transport=UDP;rinstance=812a4c0a0d178f44 SIP/2.0
Via: SIP/2.0/UDP 10.7.97.171:5160;rport;branch=z9hG4bKPjCtYn00Z8hUY3RrWN9yLkN6o8jhzU2F29
From: sip:502@172.17.0.27;tag=PoGkCT7sOu2oBhjEx9N1Cl1QwgCHOvNK
To: sip:1003@10.5.152.12;rinstance=812a4c0a0d178f44
Contact: sip:asterisk@10.7.97.171:5160
Call-ID: D6zKgsCme2P3zCoU5tOGj8mFP7Yf8hBb
CSeq: 29140 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 18.20.2
Content-Type: application/sdp
Content-Length: 287

v=0
o=- 1051440799 1051440799 IN IP4 10.7.97.171
s=Asterisk
c=IN IP4 10.7.97.171
t=0 0
m=audio 10068 RTP/AVP 9 110 8 101
a=rtpmap:9 G722/8000
a=rtpmap:110 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

<— Received SIP response (320 bytes) from UDP:10.5.152.12:46083 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.7.97.171:5160;rport=5160;branch=z9hG4bKPjCtYn00Z8hUY3RrWN9yLkN6o8jhzU2F29
To: sip:1003@10.5.152.12;rinstance=812a4c0a0d178f44
From: sip:502@172.17.0.27;tag=PoGkCT7sOu2oBhjEx9N1Cl1QwgCHOvNK
Call-ID: D6zKgsCme2P3zCoU5tOGj8mFP7Yf8hBb
CSeq: 29140 INVITE
Content-Length: 0

<— Received SIP response (525 bytes) from UDP:10.5.152.12:46083 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.7.97.171:5160;rport=5160;branch=z9hG4bKPjCtYn00Z8hUY3RrWN9yLkN6o8jhzU2F29
Contact: sip:1003@10.5.152.12:46083
To: sip:1003@10.5.152.12;rinstance=812a4c0a0d178f44;tag=0feb8957
From: sip:502@172.17.0.27;tag=PoGkCT7sOu2oBhjEx9N1Cl1QwgCHOvNK
Call-ID: D6zKgsCme2P3zCoU5tOGj8mFP7Yf8hBb
CSeq: 29140 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.13 v2.10.18.3
Allow-Events: presence, kpml, talk
Content-Length: 0

<— Received SIP response (933 bytes) from UDP:10.5.152.12:46083 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.7.97.171:5160;rport=5160;branch=z9hG4bKPjCtYn00Z8hUY3RrWN9yLkN6o8jhzU2F29
Require: timer
Contact: sip:1003@10.5.152.12:46083
To: sip:1003@10.5.152.12;rinstance=812a4c0a0d178f44;tag=0feb8957
From: sip:502@172.17.0.27;tag=PoGkCT7sOu2oBhjEx9N1Cl1QwgCHOvNK
Call-ID: D6zKgsCme2P3zCoU5tOGj8mFP7Yf8hBb
CSeq: 29140 INVITE
Session-Expires: 1800;refresher=uac
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
User-Agent: Z 5.5.13 v2.10.18.3
Allow-Events: presence, kpml, talk
Content-Length: 327

v=0
o=Z 0 419883602 IN IP4 10.5.152.12
s=Z
c=IN IP4 10.5.152.12
t=0 0
m=audio 47670 RTP/AVP 9 106 0 8 3 101 98
a=rtpmap:106 opus/48000/2
a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:98 telephone-event/48000
a=fmtp:98 0-16
a=sendrecv

   > 0x7f8084ede1b0 -- Strict RTP learning after remote address set to: 10.5.152.12:47670
   > 0x7f8084ede1b0 -- Strict RTP switching to RTP target address 10.5.152.12:47670 as source

Got RTP packet from 10.5.152.12:47670 (type 95, seq 044387, ts 1826982922, len 000001)
<— Transmitting SIP request (398 bytes) to UDP:10.5.152.12:46083 —>
ACK sip:1003@10.5.152.12:46083 SIP/2.0
Via: SIP/2.0/UDP 10.7.97.171:5160;rport;branch=z9hG4bKPj2kcaWhr.5Jx0fbq6QlH2UoH446cE.Dms
From: sip:502@172.17.0.27;tag=PoGkCT7sOu2oBhjEx9N1Cl1QwgCHOvNK
To: sip:1003@10.5.152.12;rinstance=812a4c0a0d178f44;tag=0feb8957
Call-ID: D6zKgsCme2P3zCoU5tOGj8mFP7Yf8hBb
CSeq: 29140 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 18.20.2
Content-Length: 0

Got RTP packet from 10.5.152.12:47670 (type 09, seq 044388, ts 1826982922, len 000160)
– PJSIP/1003-00000039 answered PJSIP/502-00000038
> 0x7f8084eee0f0 – Strict RTP learning after remote address set to: 172.23.0.1:55546
<— Transmitting SIP response (1504 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK8666530
Call-ID: 0reku7oc329lkhvr86to
From: sip:502@my.domain.net;tag=cgttupilb1
To: sip:1003@my.domain.net;tag=VQuwunw4h9QBHaZp2qFc4-BQrTJWQOOg
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Contact: sip:172.17.0.27:8089;transport=ws
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 931

v=0
o=- 3196208021 4 IN IP4 172.17.0.27
s=Asterisk
c=IN IP4 172.17.0.27
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 0
m=audio 10058 UDP/TLS/RTP/SAVPF 9 111 0 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 F1:99:72:48:9F:3B:42:8A:07:A3:1A:08:92:01:36:B4:20:01:C1:94:99:29:00:BF:EB:24:9C:20:39:CF:89:A6
a=ice-ufrag:56e6e06272c9043d5006edca65b993dd
a=ice-pwd:11337e2e4adc359118eb59650e2f74b8
a=candidate:Hac11001b 1 UDP 2130706431 172.17.0.27 10058 typ host
a=candidate:Sc1203e80 1 UDP 1694498815 193.32.62.128 29278 typ srflx raddr 172.17.0.27 rport 10058
a=rtpmap:9 G722/8000
a=rtpmap:111 opus/48000/2
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:60
a=sendrecv
a=rtcp-mux
a=ssrc:982564934 cname:4dd213be-d05c-48e3-8186-1422f4c06206
a=msid:44474a52-892b-4f94-865f-5f0f84dfaa36 0986de85-f7a3-423f-8d4f-dc51d84a1f95
a=rtcp-fb:* transport-cc
a=mid:0

-- Channel PJSIP/1003-00000039 joined 'simple_bridge' basic-bridge <ae2334fe-e2ca-47ed-adc6-8f1ecacdef7b>
-- Channel PJSIP/502-00000038 joined 'simple_bridge' basic-bridge <ae2334fe-e2ca-47ed-adc6-8f1ecacdef7b>

Got RTP packet from 10.5.152.12:47670 (type 09, seq 044389, ts 1826983082, len 000160)
Sent RTP packet to 172.23.0.1:55546 (type 09, seq 031779, ts 1826983080, len 000160)
Got RTP packet from 10.5.152.12:47670 (type 09, seq 044390, ts 1826983242, len 000160)
Sent RTP packet to 172.23.0.1:55546 (type 09, seq 031780, ts 1826983240, len 000160)
<— Received SIP request (373 bytes) from WSS:10.5.152.12:41044 —>
ACK sip:172.17.0.27:8089;transport=ws SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK810218
To: sip:1003@my.domain.net:8089;tag=VQuwunw4h9QBHaZp2qFc4-BQrTJWQOOg
From: sip:502@my.domain.net:8089;tag=cgttupilb1
CSeq: 2 ACK
Call-ID: 0reku7oc329lkhvr86to
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41054 —>
OPTIONS sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;branch=z9hG4bK6630152
To: sip:501@my.domain.net:8089
From: sip:501@my.domain.net:8089;tag=onmm8qmj4o
CSeq: 1 OPTIONS
Call-ID: 9t1g7c6i8t97d4r91j53
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

but if I call from 1003 to 5002 its fail

1003 to 502 fail

<— Received SIP request (913 bytes) from UDP:10.5.152.12:46083 —>
INVITE sip:502@my.domain.net:5160;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.5.152.12:46083;branch=z9hG4bK-524287-1—b4ac1232c3002803;rport
Max-Forwards: 70
Contact: sip:1003@10.5.152.12:46083;transport=UDP
To: sip:502@my.domain.net:5160
From: sip:1003@my.domain.net:5160;transport=UDP;tag=78fa6f5e
Call-ID: GiYJmgUoARgsl5HdAA0liw…
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
User-Agent: Z 5.5.13 v2.10.18.3
Allow-Events: presence, kpml, talk
Content-Length: 327

v=0
o=Z 0 420151559 IN IP4 10.5.152.12
s=Z
c=IN IP4 10.5.152.12
t=0 0
m=audio 52806 RTP/AVP 106 9 98 101 0 8 3
a=rtpmap:106 opus/48000/2
a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
a=rtpmap:98 telephone-event/48000
a=fmtp:98 0-16
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

<— Received SIP request (1221 bytes) from UDP:10.5.152.12:46083 —>
INVITE sip:502@my.domain.net:5160;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.5.152.12:46083;branch=z9hG4bK-524287-1—45291f23cf667d3d;rport
Max-Forwards: 70
Contact: sip:1003@10.5.152.12:46083;transport=UDP
To: sip:502@my.domain.net:5160
From: sip:1003@my.domain.net:5160;transport=UDP;tag=78fa6f5e
Call-ID: GiYJmgUoARgsl5HdAA0liw…
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
User-Agent: Z 5.5.13 v2.10.18.3
Authorization: Digest username=“1003”,realm=“asterisk”,nonce=“1710793195/86b6ba25eaf9f4831a7ebea0d4675793”,uri=“sip:502@my.domain.net:5160;transport=UDP”,response=“c1a3eb056deefd0415fc3e44dcb1a923”,cnonce=“ba97499e517ee5707c2edc9f6440aa1c”,nc=00000001,qop=auth,algorithm=MD5,opaque=“7e1ff0db46e91d0d”
Allow-Events: presence, kpml, talk
Content-Length: 327

v=0
o=Z 0 420151559 IN IP4 10.5.152.12
s=Z
c=IN IP4 10.5.152.12
t=0 0
m=audio 52806 RTP/AVP 106 9 98 101 0 8 3
a=rtpmap:106 opus/48000/2
a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
a=rtpmap:98 telephone-event/48000
a=fmtp:98 0-16
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

<— Transmitting SIP response (321 bytes) to UDP:10.5.152.12:46083 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.5.152.12:46083;rport=46083;received=10.5.152.12;branch=z9hG4bK-524287-1—45291f23cf667d3d
Call-ID: GiYJmgUoARgsl5HdAA0liw…
From: sip:1003@my.domain.net;tag=78fa6f5e
To: sip:502@my.domain.net
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Content-Length: 0

-- Executing [502@public:1] Dial("PJSIP/1003-0000003a", "PJSIP/502,10") in new stack
-- Called PJSIP/502

<— Transmitting SIP request (1668 bytes) to WSS:10.5.152.12:42746 —>
INVITE sip:mn7stugv@10.5.152.12:42746;transport=ws SIP/2.0
Via: SIP/2.0/WSS 172.17.0.27:8089;rport;branch=z9hG4bKPjViIidsuElb.1EJSwPVTfKuvxCFr0aQip;alias
From: sip:1003@539322c23adc;tag=B8GivaYHiq5hobtWFnBaf8lftzskHDVC
To: sip:mn7stugv@10.5.152.12
Contact: sip:asterisk@539322c23adc:5060;transport=ws
Call-ID: -XaL5l6H3Oc9QUXeHo-fw9uFB6SI0kBn
CSeq: 12994 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 18.20.2
Content-Type: application/sdp
Content-Length: 981

v=0
o=- 1665400338 1665400338 IN IP4 172.17.0.27
s=Asterisk
c=IN IP4 172.17.0.27
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0
m=audio 10076 UDP/TLS/RTP/SAVPF 9 110 107 0 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 C8:96:D8:2E:EE:73:23:2C:FB:D5:88:8D:74:16:50:5B:08:9F:DB:6F:5A:45:94:D7:17:6B:4D:07:D3:E0:0E:C4
a=ice-ufrag:6cc9d76d4998ff1222f71ee257918c55
a=ice-pwd:52598ce32ec298892732339334e0991c
a=candidate:Hac11001b 1 UDP 2130706431 172.17.0.27 10076 typ host
a=candidate:Sc1203e80 1 UDP 1694498815 193.32.62.128 8699 typ srflx raddr 172.17.0.27 rport 10076
a=rtpmap:9 G722/8000
a=rtpmap:110 speex/8000
a=rtpmap:107 opus/48000/2
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv
a=rtcp-mux
a=ssrc:673593319 cname:edc2405a-cd49-49c2-a11a-a8c36cf1f5f4
a=msid:7856b54c-7618-418c-ba45-9e833f4c66b3 4dd28dec-41e1-45bb-8aa4-a8fc2749bfe8
a=rtcp-fb:* transport-cc
a=mid:audio-0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41054 —>
OPTIONS sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;branch=z9hG4bK9767550
To: sip:501@my.domain.net:8089
From: sip:501@my.domain.net:8089;tag=9v4q88gk15
CSeq: 1 OPTIONS
Call-ID: 9t1g72vc7h1r9aghdhd2
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Received SIP request (913 bytes) from UDP:10.5.152.12:46083 —>
REGISTER sip:my.domain.net:5160;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.5.152.12:46083;branch=z9hG4bK-524287-1—6d62e824fd3e6920;rport
Max-Forwards: 70
Contact: sip:1003@10.5.152.12:46083;rinstance=812a4c0a0d178f44;transport=UDP
To: sip:1003@my.domain.net:5160;transport=UDP
From: sip:1003@my.domain.net:5160;transport=UDP;tag=3845a05d
Call-ID: saMznVM-6U22rs1MSMIFIA…
CSeq: 85 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.13 v2.10.18.3
Authorization: Digest username=“1003”,realm=“asterisk”,nonce=“1710793150/864893e84c587e28bd3d098cbe8ff712”,uri=“sip:my.domain.net:5160;transport=UDP”,response=“142ed6bd50c5150d44216df580279154”,cnonce=“27c97c92e36bd8c8321ac320cfe1b9f5”,nc=00000002,qop=auth,algorithm=MD5,opaque=“45ce3d1237ee7621”
Allow-Events: presence, kpml, talk
Content-Length: 0

<— Transmitting SIP response (528 bytes) to UDP:10.5.152.12:46083 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.5.152.12:46083;rport=46083;received=10.5.152.12;branch=z9hG4bK-524287-1—6d62e824fd3e6920
Call-ID: saMznVM-6U22rs1MSMIFIA…
From: sip:1003@my.domain.net;tag=3845a05d
To: sip:1003@my.domain.net;tag=z9hG4bK-524287-1—6d62e824fd3e6920
CSeq: 85 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710793203/14c47f7a29ba6a2f7e7588341f68e868”,opaque=“391be96a3853158b”,stale=true,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (913 bytes) from UDP:10.5.152.12:46083 —>
REGISTER sip:my.domain.net:5160;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.5.152.12:46083;branch=z9hG4bK-524287-1—3e023a40330123ec;rport
Max-Forwards: 70
Contact: sip:1003@10.5.152.12:46083;rinstance=812a4c0a0d178f44;transport=UDP
To: sip:1003@my.domain.net:5160;transport=UDP
From: sip:1003@my.domain.net:5160;transport=UDP;tag=3845a05d
Call-ID: saMznVM-6U22rs1MSMIFIA…
CSeq: 86 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.5.13 v2.10.18.3
Authorization: Digest username=“1003”,realm=“asterisk”,nonce=“1710793203/14c47f7a29ba6a2f7e7588341f68e868”,uri=“sip:my.domain.net:5160;transport=UDP”,response=“8996fb7341ee84e28412307cbb4badfe”,cnonce=“7905168086d332e59784c358a8c0793d”,nc=00000001,qop=auth,algorithm=MD5,opaque=“391be96a3853158b”
Allow-Events: presence, kpml, talk
Content-Length: 0

<— Transmitting SIP response (502 bytes) to UDP:10.5.152.12:46083 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.5.152.12:46083;rport=46083;received=10.5.152.12;branch=z9hG4bK-524287-1—3e023a40330123ec
Call-ID: saMznVM-6U22rs1MSMIFIA…
From: sip:1003@my.domain.net;tag=3845a05d
To: sip:1003@my.domain.net;tag=z9hG4bK-524287-1—3e023a40330123ec
CSeq: 86 REGISTER
Date: Mon, 18 Mar 2024 20:20:04 GMT
Contact: sip:1003@10.5.152.12:46083;transport=UDP;rinstance=812a4c0a0d178f44;expires=59
Expires: 60
Server: Asterisk PBX 18.20.2
Content-Length: 0

-- Nobody picked up in 10000 ms
-- Auto fallthrough, channel 'PJSIP/1003-0000003a' status is 'NOANSWER'

<— Transmitting SIP response (382 bytes) to UDP:10.5.152.12:46083 —>
SIP/2.0 603 Decline
Via: SIP/2.0/UDP 10.5.152.12:46083;rport=46083;received=10.5.152.12;branch=z9hG4bK-524287-1—45291f23cf667d3d
Call-ID: GiYJmgUoARgsl5HdAA0liw…
From: sip:1003@my.domain.net;tag=78fa6f5e
To: sip:502@my.domain.net;tag=2YTus6zdDNUSx.tzbRz896jlOgVoczSI
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Reason: Q.850;cause=0
Content-Length: 0

also fail if I call from 502 (WebRTC ) to 501 (WebRTC)

fail_502_to_501

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41054 —>
OPTIONS sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;branch=z9hG4bK8576742
To: sip:501@my.domain.net:8089
From: sip:501@my.domain.net:8089;tag=nif5lqkbja
CSeq: 1 OPTIONS
Call-ID: 9t1g79u2vn4v66oevpi6
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Received SIP request (2179 bytes) from WSS:10.5.152.12:41044 —>
INVITE sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK125151
To: sip:501@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=8c8oto94gt
CSeq: 1 INVITE
Call-ID: 0rekur5cavi7ah7ci8g2
Max-Forwards: 70
Contact: sip:9qlp9nhl@jqtvs5k9ie78.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Type: application/sdp
Content-Length: 1679

v=0
o=- 1949007256269830265 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 268f5592-ee36-44c5-91af-c433f3751165
m=audio 34210 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 172.23.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3320400187 1 udp 2122260223 172.23.0.1 34210 typ host generation 0 network-id 1
a=candidate:1171921731 1 udp 2122194687 10.5.152.12 54588 typ host generation 0 network-id 2
a=candidate:2792760665 1 udp 2122129151 172.17.0.1 60246 typ host generation 0 network-id 3
a=candidate:4218142767 1 udp 2122063615 192.168.1.96 55434 typ host generation 0 network-id 4 network-cost 10
a=ice-ufrag:z1kD
a=ice-pwd:JkA4+VlvT/q100XR5TNOWucN
a=ice-options:trickle
a=fingerprint:sha-256 D8:4E:44:11:A7:E1:5F:3F:20:E2:B0:24:D6:8B:35:C4:A6:14:BD:19:8D:26:A6:52:02:20:21:87:19:3E:0B:9E
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:268f5592-ee36-44c5-91af-c433f3751165 fb4f8331-bfaa-4f8a-8469-b43ce396f446
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:3385322003 cname:jO0J6WcA60ggSnl/
a=ssrc:3385322003 msid:268f5592-ee36-44c5-91af-c433f3751165 fb4f8331-bfaa-4f8a-8469-b43ce396f446

<— Transmitting SIP response (469 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK125151
Call-ID: 0rekur5cavi7ah7ci8g2
From: sip:502@my.domain.net;tag=8c8oto94gt
To: sip:501@my.domain.net;tag=z9hG4bK125151
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”,opaque=“09d23f382c1a2400”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (299 bytes) from WSS:10.5.152.12:41044 —>
ACK sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK125151
To: sip:501@my.domain.net;tag=z9hG4bK125151
From: sip:502@my.domain.net:8089;tag=8c8oto94gt
Call-ID: 0rekur5cavi7ah7ci8g2
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0

<— Received SIP request (2462 bytes) from WSS:10.5.152.12:41044 —>
INVITE sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK4369914
To: sip:501@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=8c8oto94gt
CSeq: 2 INVITE
Call-ID: 0rekur5cavi7ah7ci8g2
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username=“502”, realm=“asterisk”, nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”, uri=“sip:501@my.domain.net:8089”, response=“b672b2aa1d0b6a205b6226609cb8b221”, opaque=“09d23f382c1a2400”, qop=auth, cnonce=“n7ei2hns00ok”, nc=00000001
Contact: sip:9qlp9nhl@jqtvs5k9ie78.invalid;transport=ws;ob
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Type: application/sdp
Content-Length: 1679

v=0
o=- 1949007256269830265 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=extmap-allow-mixed
a=msid-semantic: WMS 268f5592-ee36-44c5-91af-c433f3751165
m=audio 34210 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 172.23.0.1
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3320400187 1 udp 2122260223 172.23.0.1 34210 typ host generation 0 network-id 1
a=candidate:1171921731 1 udp 2122194687 10.5.152.12 54588 typ host generation 0 network-id 2
a=candidate:2792760665 1 udp 2122129151 172.17.0.1 60246 typ host generation 0 network-id 3
a=candidate:4218142767 1 udp 2122063615 192.168.1.96 55434 typ host generation 0 network-id 4 network-cost 10
a=ice-ufrag:z1kD
a=ice-pwd:JkA4+VlvT/q100XR5TNOWucN
a=ice-options:trickle
a=fingerprint:sha-256 D8:4E:44:11:A7:E1:5F:3F:20:E2:B0:24:D6:8B:35:C4:A6:14:BD:19:8D:26:A6:52:02:20:21:87:19:3E:0B:9E
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 docs/native-code/rtp-hdrext/abs-send-time - src - Git at Google
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:268f5592-ee36-44c5-91af-c433f3751165 fb4f8331-bfaa-4f8a-8469-b43ce396f446
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:3385322003 cname:jO0J6WcA60ggSnl/
a=ssrc:3385322003 msid:268f5592-ee36-44c5-91af-c433f3751165 fb4f8331-bfaa-4f8a-8469-b43ce396f446

<— Transmitting SIP response (300 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK4369914
Call-ID: 0rekur5cavi7ah7ci8g2
From: sip:502@my.domain.net;tag=8c8oto94gt
To: sip:501@my.domain.net
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Content-Length: 0

-- Executing [501@public:1] Dial("PJSIP/502-0000003c", "PJSIP/501,10") in new stack
-- Called PJSIP/501

<— Transmitting SIP request (1669 bytes) to WSS:10.5.152.12:41054 —>
INVITE sip:c09npdqe@10.5.152.12:41054;transport=ws SIP/2.0
Via: SIP/2.0/WSS 172.17.0.27:8089;rport;branch=z9hG4bKPjPJxNcHjEc7Z8FmUZ0d7cqnxSfDE3exsp;alias
From: sip:502@539322c23adc;tag=DjQfv8mgzXVBiXb1sRJgtOwT7JVQcyE3
To: sip:c09npdqe@10.5.152.12
Contact: sip:asterisk@539322c23adc:5060;transport=ws
Call-ID: cYrJDpSUr1ktdRs6G45mFFYHGJACKcvu
CSeq: 14813 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 18.20.2
Content-Type: application/sdp
Content-Length: 983

v=0
o=- 1555361780 1555361780 IN IP4 172.17.0.27
s=Asterisk
c=IN IP4 172.17.0.27
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0
m=audio 10056 UDP/TLS/RTP/SAVPF 9 107 0 110 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 8A:B2:BD:3D:D6:04:66:03:8E:EB:FF:3B:71:C8:6F:DA:39:47:E3:B3:9D:24:AD:C1:8D:F2:9E:74:FC:86:42:63
a=ice-ufrag:46f59f127489727e3297f1875fd32c17
a=ice-pwd:12de0e256255a18473d0a4287ace3af4
a=candidate:Hac11001b 1 UDP 2130706431 172.17.0.27 10056 typ host
a=candidate:Sc1203e80 1 UDP 1694498815 193.32.62.128 24497 typ srflx raddr 172.17.0.27 rport 10056
a=rtpmap:9 G722/8000
a=rtpmap:107 opus/48000/2
a=rtpmap:0 PCMU/8000
a=rtpmap:110 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv
a=rtcp-mux
a=ssrc:1487516851 cname:32d0eb32-bbe7-47b8-a82d-cb5bab065c13
a=msid:60db4ab5-464c-4b29-958c-c44c0aa23bf1 5278e92a-228e-4d82-a3e6-a154c8e707fd
a=rtcp-fb:* transport-cc
a=mid:audio-0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:42762 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS uncba8b1c918.invalid;branch=z9hG4bK4125484
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=t4pr3q1euh
CSeq: 1 OPTIONS
Call-ID: 7lovneq5glp0fd6lm1nt
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:42746 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS qiu4it0jrnv1.invalid;branch=z9hG4bK8017698
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=3omfpqmo0f
CSeq: 1 OPTIONS
Call-ID: hrcjcqc5n8scnu8eqvdv
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (472 bytes) to WSS:10.5.152.12:42762 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS uncba8b1c918.invalid;rport=42762;received=10.5.152.12;branch=z9hG4bK4125484
Call-ID: 7lovneq5glp0fd6lm1nt
From: sip:502@my.domain.net;tag=t4pr3q1euh
To: sip:502@my.domain.net;tag=z9hG4bK4125484
CSeq: 1 OPTIONS
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”,opaque=“3a7aebf46bb7316e”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Transmitting SIP response (472 bytes) to WSS:10.5.152.12:42746 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS qiu4it0jrnv1.invalid;rport=42746;received=10.5.152.12;branch=z9hG4bK8017698
Call-ID: hrcjcqc5n8scnu8eqvdv
From: sip:502@my.domain.net;tag=3omfpqmo0f
To: sip:502@my.domain.net;tag=z9hG4bK8017698
CSeq: 1 OPTIONS
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”,opaque=“3def6ebc639382c5”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (625 bytes) from WSS:10.5.152.12:42762 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS uncba8b1c918.invalid;branch=z9hG4bK5484832
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=t4pr3q1euh
CSeq: 2 OPTIONS
Call-ID: 7lovneq5glp0fd6lm1nt
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username=“502”, realm=“asterisk”, nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”, uri=“sip:502@my.domain.net:8089”, response=“7917ccc3c91d453e293fbf23af9af121”, opaque=“3a7aebf46bb7316e”, qop=auth, cnonce=“usek276b0c0t”, nc=00000001
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (801 bytes) to WSS:10.5.152.12:42762 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS uncba8b1c918.invalid;rport=42762;received=10.5.152.12;branch=z9hG4bK5484832
Call-ID: 7lovneq5glp0fd6lm1nt
From: sip:502@my.domain.net;tag=t4pr3q1euh
To: sip:502@my.domain.net;tag=z9hG4bK5484832
CSeq: 2 OPTIONS
Accept: application/xpidf+xml, application/cpim-pidf+xml, application/dialog-info+xml, application/pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/sdp, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (625 bytes) from WSS:10.5.152.12:42746 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS qiu4it0jrnv1.invalid;branch=z9hG4bK4364020
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=3omfpqmo0f
CSeq: 2 OPTIONS
Call-ID: hrcjcqc5n8scnu8eqvdv
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username=“502”, realm=“asterisk”, nonce=“1710793403/de0a4b30ea91a4c6cd20d3310cd96fa9”, uri=“sip:502@my.domain.net:8089”, response=“ecca8949895551c4379a14c752d9c3cc”, opaque=“3def6ebc639382c5”, qop=auth, cnonce=“0s03bo1mibkr”, nc=00000001
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (801 bytes) to WSS:10.5.152.12:42746 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS qiu4it0jrnv1.invalid;rport=42746;received=10.5.152.12;branch=z9hG4bK4364020
Call-ID: hrcjcqc5n8scnu8eqvdv
From: sip:502@my.domain.net;tag=3omfpqmo0f
To: sip:502@my.domain.net;tag=z9hG4bK4364020
CSeq: 2 OPTIONS
Accept: application/xpidf+xml, application/cpim-pidf+xml, application/dialog-info+xml, application/pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/sdp, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41054 —>
OPTIONS sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;branch=z9hG4bK5494678
To: sip:501@my.domain.net:8089
From: sip:501@my.domain.net:8089;tag=a830edd5cv
CSeq: 1 OPTIONS
Call-ID: 9t1g7c35oane67lpcuq8
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (472 bytes) to WSS:10.5.152.12:41054 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;rport=41054;received=10.5.152.12;branch=z9hG4bK5494678
Call-ID: 9t1g7c35oane67lpcuq8
From: sip:501@my.domain.net;tag=a830edd5cv
To: sip:501@my.domain.net;tag=z9hG4bK5494678
CSeq: 1 OPTIONS
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1710793404/4c6dd505bdaf7249494fb0094a4acf53”,opaque=“0cf6428e38a71613”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (625 bytes) from WSS:10.5.152.12:41054 —>
OPTIONS sip:501@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;branch=z9hG4bK3147896
To: sip:501@my.domain.net:8089
From: sip:501@my.domain.net:8089;tag=a830edd5cv
CSeq: 2 OPTIONS
Call-ID: 9t1g7c35oane67lpcuq8
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username=“501”, realm=“asterisk”, nonce=“1710793404/4c6dd505bdaf7249494fb0094a4acf53”, uri=“sip:501@my.domain.net:8089”, response=“2141d2898805f41d26499b0faa6311ad”, opaque=“0cf6428e38a71613”, qop=auth, cnonce=“4ifnr45jhcqa”, nc=00000001
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

<— Transmitting SIP response (801 bytes) to WSS:10.5.152.12:41054 —>
SIP/2.0 200 OK
Via: SIP/2.0/WSS 35kmr6o06fbn.invalid;rport=41054;received=10.5.152.12;branch=z9hG4bK3147896
Call-ID: 9t1g7c35oane67lpcuq8
From: sip:501@my.domain.net;tag=a830edd5cv
To: sip:501@my.domain.net;tag=z9hG4bK3147896
CSeq: 2 OPTIONS
Accept: application/xpidf+xml, application/cpim-pidf+xml, application/dialog-info+xml, application/pidf+xml, application/simple-message-summary, application/pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/sdp, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: Asterisk PBX 18.20.2
Content-Length: 0

<— Received SIP request (343 bytes) from WSS:10.5.152.12:41044 —>
OPTIONS sip:502@my.domain.net:8089 SIP/2.0
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;branch=z9hG4bK2674040
To: sip:502@my.domain.net:8089
From: sip:502@my.domain.net:8089;tag=sijg4f9abi
CSeq: 1 OPTIONS
Call-ID: 0rekumggsa4ruqcdoqja
Max-Forwards: 70
Supported: outbound
User-Agent: SIP.js/0.20.1
Content-Length: 0

-- Nobody picked up in 10000 ms
-- Auto fallthrough, channel 'PJSIP/502-0000003c' status is 'NOANSWER'

<— Transmitting SIP response (361 bytes) to WSS:10.5.152.12:41044 —>
SIP/2.0 603 Decline
Via: SIP/2.0/WSS jqtvs5k9ie78.invalid;rport=41044;received=10.5.152.12;branch=z9hG4bK4369914
Call-ID: 0rekur5cavi7ah7ci8g2
From: sip:502@my.domain.net;tag=8c8oto94gt
To: sip:501@my.domain.net;tag=3-jzsYvThcp8LxO0PihmxVsB5aY6pQyg
CSeq: 2 INVITE
Server: Asterisk PBX 18.20.2
Reason: Q.850;cause=0
Content-Length: 0

What’s wrong in my config?
Is it possible to make it so that the number, for example 503, belongs to both SIP and WebRTC at the same time and the call is in 2 places at the same time?

Can you also post your K8s or Docker config

docker ps | grep asterisk
539322c23adc *****/andrius/asterisk:latest “/docker-entrypoint.…” 5 days ago Up 2 days 0.0.0.0:5038->5038/tcp, 0.0.0.0:5160->5160/udp, 0.0.0.0:8088-8089->8088-8089/tcp, 5060/tcp, 5060/udp, 0.0.0.0:10050-10100->10050-10100/udp asterisk-1

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