error parsing header "Contact" when using IPv6

30 views
Skip to first unread message

Nathan Stratton

unread,
Feb 13, 2022, 2:36:59 PMFeb 13
to JsSIP
Getting this error on a IPv6 180 Ringing and 200 OK. 

JsSIP:Transport sending message:INVITE sip:Vocin...@staging.vocinity.com SIP/2.0
Via: SIP/2.0/WSS 5pfnh0n75t8v.invalid;branch=z9hG4bK9448466
Max-Forwards: 69
To: <sip:Vocin...@staging.vocinity.com>
From: <sip:0eOSpm...@staging.vocinity.com>;tag=ut52mj9d1h
Call-ID: s01nj2435ava5b3oa44a
CSeq: 9858 INVITE
X-Location: 39.485733,-77.9093265
Contact: <sip:6mq3...@5pfnh0n75t8v.invalid;transport=ws;ob>
Content-Type: application/sdp
Session-Expires: 90
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: timer,ice,replaces,outbound
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Content-Length: 6001

v=0
o=- 2543469303067777055 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 3bSVYJsgXeS4jcyebljBFQmssj96g9bpk29T
m=audio 58787 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 10.88.65.39
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1983044479 1 udp 2122262783 2603:3003:3408:100:c24f:6f71:a956:6fa2 45989 typ host generation 0 network-id 2 network-cost 50
a=candidate:2133399080 1 udp 2122194687 10.88.65.39 58787 typ host generation 0 network-id 1 network-cost 50
a=candidate:951134095 1 tcp 1518283007 2603:3003:3408:100:c24f:6f71:a956:6fa2 9 typ host tcptype active generation 0 network-id 2 network-cost 50
a=candidate:833284824 1 tcp 1518214911 10.88.65.39 9 typ host tcptype active generation 0 network-id 1 network-cost 50
a=ice-ufrag:NUNR
a=ice-pwd:GF01wHNjcaIYmDYp255SXK0Y
a=ice-options:trickle
a=fingerprint:sha-256 AE:98:59:5D:21:D7:08:B6:D9:73:CB:DE:8A:3F:B6:F5:52:6B:A0:C2:DD:73:3F:CF:50:90:AA:7B:58:E8:E5: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:3bSVYJsgXeS4jcyebljBFQmssj96g9bpk29T 723a600d-e58c-4b1e-bf2e-e04686dc4d80
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:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1623483626 cname:lDh5PF20PPH/8i9u
a=ssrc:1623483626 msid:3bSVYJsgXeS4jcyebljBFQmssj96g9bpk29T 723a600d-e58c-4b1e-bf2e-e04686dc4d80
a=ssrc:1623483626 mslabel:3bSVYJsgXeS4jcyebljBFQmssj96g9bpk29T
a=ssrc:1623483626 label:723a600d-e58c-4b1e-bf2e-e04686dc4d80
m=video 49736 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 123 102 122 127 121 125 107 108 109 35 36 120 119 124 37
c=IN IP4 10.88.65.39
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1983044479 1 udp 2122262783 2603:3003:3408:100:c24f:6f71:a956:6fa2 59367 typ host generation 0 network-id 2 network-cost 50
a=candidate:2133399080 1 udp 2122194687 10.88.65.39 49736 typ host generation 0 network-id 1 network-cost 50
a=candidate:951134095 1 tcp 1518283007 2603:3003:3408:100:c24f:6f71:a956:6fa2 9 typ host tcptype active generation 0 network-id 2 network-cost 50
a=candidate:833284824 1 tcp 1518214911 10.88.65.39 9 typ host tcptype active generation 0 network-id 1 network-cost 50
a=ice-ufrag:NUNR
a=ice-pwd:GF01wHNjcaIYmDYp255SXK0Y
a=ice-options:trickle
a=fingerprint:sha-256 AE:98:59:5D:21:D7:08:B6:D9:73:CB:DE:8A:3F:B6:F5:52:6B:A0:C2:DD:73:3F:CF:50:90:AA:7B:58:E8:E5: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=recvonly
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: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:123 VP9/90000
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=fmtp:123 profile-id=1
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:122 rtx/90000
a=fmtp:122 apt=102
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=0;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
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:35 AV1/90000
a=rtcp-fb:35 goog-remb
a=rtcp-fb:35 transport-cc
a=rtcp-fb:35 ccm fir
a=rtcp-fb:35 nack
a=rtcp-fb:35 nack pli
a=rtpmap:36 rtx/90000
a=fmtp:36 apt=35
a=rtpmap:120 red/90000
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=120
a=rtpmap:124 ulpfec/90000
a=rtpmap:37 flexfec-03/90000
a=rtcp-fb:37 goog-remb
a=rtcp-fb:37 transport-cc
a=fmtp:37 repair-window=10000000
 +0ms
jssip-3.9.0.min.js:9 JsSIP:WebSocketInterface send() +95ms
jssip-3.9.0.min.js:9 JsSIP:WebSocketInterface received WebSocket message +81ms
jssip-3.9.0.min.js:9 JsSIP:Transport received text message:SIP/2.0 100 Trying
Via: SIP/2.0/WSS 5pfnh0n75t8v.invalid;branch=z9hG4bK9448466;received=2603:3003:3408:100:c24f:6f71:a956:6fa2
To: <sip:Vocin...@staging.vocinity.com>
From: <sip:0eOSpm...@staging.vocinity.com>;tag=ut52mj9d1h
Call-ID: s01nj2435ava5b3oa44a
CSeq: 9858 INVITE
Content-Length: 0

 +81ms
jssip-3.9.0.min.js:9 JsSIP:RTCSession receiveInviteResponse() +83ms
jssip-3.9.0.min.js:9 JsSIP:WebSocketInterface received WebSocket message +142ms
jssip-3.9.0.min.js:9 JsSIP:Transport received text message:SIP/2.0 180 Ringing
Via: SIP/2.0/WSS 5pfnh0n75t8v.invalid;branch=z9hG4bK9448466;received=2603:3003:3408:100:c24f:6f71:a956:6fa2
To: <sip:Vocin...@staging.vocinity.com>;tag=31FFCF4D-62095C3A0004642B-0D8D8700
From: <sip:0eOSpm...@staging.vocinity.com>;tag=ut52mj9d1h
Call-ID: s01nj2435ava5b3oa44a
CSeq: 9858 INVITE
Contact: <sip:31FFCF4D-62095C3A0004642B-0D8D8700@2602:fc11::31:443;transport=ws>
Content-Length: 0

 +142ms
jssip-3.9.0.min.js:9 JsSIP:WARN:Parser parseMessage() | +0ms error parsing header "Contact"
o @ jssip-3.9.0.min.js:9
jssip-3.9.0.min.js:9 JsSIP:WebSocketInterface received WebSocket message +3ms
jssip-3.9.0.min.js:9 JsSIP:Transport received text message:SIP/2.0 200 OK
Via: SIP/2.0/WSS 5pfnh0n75t8v.invalid;branch=z9hG4bK9448466;received=2603:3003:3408:100:c24f:6f71:a956:6fa2
To: <sip:Vocin...@staging.vocinity.com>;tag=31FFCF4D-62095C3A0004642B-0D8D8700
From: <sip:0eOSpm...@staging.vocinity.com>;tag=ut52mj9d1h
Call-ID: s01nj2435ava5b3oa44a
CSeq: 9858 INVITE
Supported: outbound, path
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REGISTER, UPDATE
Contact: <sip:31FFCF4D-62095C3A0004642B-0D8D8700@2602:fc11::31:443;transport=ws>
Content-Type: application/sdp
Content-Length: 1080

v=0
o=- 0 0 IN IP4 204.89.189.31
s=-
c=IN IP4 204.89.189.31
t=0 0
a=ice-lite
m=audio 16626 RTP/SAVP 111 0 126 110
a=rtpmap:111 OPUS/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:0 PCMU/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-15
a=rtpmap:110 telephone-event/48000
a=sendrecv
a=rtcp-mux
a=ptime:20
a=setup:active
a=fingerprint:sha-256 0F:50:7C:01:C2:42:31:CA:30:07:E1:0C:7D:D6:38:C8:86:27:33:29:B1:A0:33:51:49:BB:08:22:29:1B:1C:37
a=ice-ufrag:jXpwII
a=ice-pwd:47lKrKDhbHYCwQAI93DMzAYxvGn9y6
a=candidate:O5NyPHoGMU8EBXheS 1 UDP 659136 204.89.189.31 16626 typ host
m=video 11156 RTP/SAVP 96 102
a=rtpmap:96 VP8/90000
a=rtpmap:102 H264/90000
a=sendrecv
a=rtcp-mux
a=rtcp-fb:* ccm
a=rtcp-fb:* ccm fir
a=rtcp-fb:* nack
a=rtcp-fb:* nack pli
a=rtcp-fb:* ccm tmmbr
a=rtcp-fb:* goog-remb
a=setup:active
a=fingerprint:sha-256 0F:50:7C:01:C2:42:31:CA:30:07:E1:0C:7D:D6:38:C8:86:27:33:29:B1:A0:33:51:49:BB:08:22:29:1B:1C:37
a=ice-ufrag:4RFJSo
a=ice-pwd:Hx3d+79NY/eiW52glPAZ4a
a=candidate:8evN3hc1Qs+FeJaRQ 1 UDP 659136 204.89.189.31 11156 typ host
 +4ms
jssip-3.9.0.min.js:9 JsSIP:WARN:Parser parseMessage() | +3ms error parsing header "Contact"
o @ jssip-3.9.0.min.js:9

Iñaki Baz Castillo

unread,
Feb 13, 2022, 4:12:00 PMFeb 13
to js...@googlegroups.com
> Contact: <sip:31FFCF4D-62095C3A0004642B-0D8D8700@2602:fc11::31:443;transport=ws>

I'm afraid that's an invalid URL. IPv6 values in SIP URIs must be
between [ and ].

--
Iñaki Baz Castillo
<i...@aliax.net>
Reply all
Reply to author
Forward
0 new messages