ReInvite is not send after ICE negotiation for DTLS connectivity

5 views
Skip to first unread message

Raman Ayyar

unread,
Apr 7, 2022, 8:03:47 AMApr 7
to js...@googlegroups.com
Application is running in node.js. JSSIP sends INVITE with local candidates, and receives 200 OK from the server. 
In pcap I see it sends Client Hello for DTLS, but the server is waiting for an ReInvite with selected candidate and following attributes in ReInvite SDP.
a=remote-candidates:1 
a=setup:active 

Here are the logs from javascript. call has reached a confirmed state.

What triggers JSSIP to send the ReInvite?
Thanks

    JsSIP:Transport send() +41s
  JsSIP:Transport sending message:
  JsSIP:Transport
  JsSIP:Transport INVITE sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net SIP/2.0
  JsSIP:Transport Via: SIP/2.0/WS b4tkefalqdhr.invalid;branch=z9hG4bK7762607
  JsSIP:Transport Max-Forwards: 69
  JsSIP:Transport To: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>
  JsSIP:Transport From: "testUser1" <sip:test...@tester.domain.com>;tag=mq30fvr8qo
  JsSIP:Transport Call-ID: bji920tbl3r2fluhnhut
  JsSIP:Transport CSeq: 1737 INVITE
  JsSIP:Transport Contact: <sip:o4p1...@b4tkefalqdhr.invalid;transport=ws;ob>
  JsSIP:Transport Content-Type: application/sdp
  JsSIP:Transport Session-Expires: 1800
  JsSIP:Transport Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
  JsSIP:Transport Supported: timer,ice,replaces,outbound
  JsSIP:Transport User-Agent: JsSIP 3.7.7
  JsSIP:Transport Content-Length: 2698
  JsSIP:Transport
  JsSIP:Transport v=0
  JsSIP:Transport o=- 1868510752280074898 2 IN IP4 127.0.0.1
  JsSIP:Transport s=-
  JsSIP:Transport t=0 0
  JsSIP:Transport a=group:BUNDLE 0
  JsSIP:Transport a=msid-semantic: WMS 5a65698c-4c77-487b-b405-7d1396c70d93
  JsSIP:Transport m=audio 44133 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
  JsSIP:Transport c=IN IP4 47.187.194.85
  JsSIP:Transport a=rtcp:9 IN IP4 0.0.0.0
  JsSIP:Transport a=candidate:25350228 1 udp 2122260223 192.168.254.15 44133 typ host generation 0 network-id 4 network-cost 50
  JsSIP:Transport a=candidate:445821670 1 udp 2122194687 192.168.9.27 49653 typ host generation 0 network-id 3 network-cost 50
  JsSIP:Transport a=candidate:559267639 1 udp 2122136831 ::1 39837 typ host generation 0 network-id 2
  JsSIP:Transport a=candidate:1510613869 1 udp 2122063615 127.0.0.1 39344 typ host generation 0 network-id 1
  JsSIP:Transport a=candidate:1325477028 1 tcp 1518280447 192.168.254.15 34327 typ host tcptype passive generation 0 network-id 4 network-cost 50
  JsSIP:Transport a=candidate:1410420246 1 tcp 1518214911 192.168.9.27 45967 typ host tcptype passive generation 0 network-id 3 network-cost 50
  JsSIP:Transport a=candidate:1876313031 1 tcp 1518157055 ::1 43929 typ host tcptype passive generation 0 network-id 2
  JsSIP:Transport a=candidate:344579997 1 tcp 1518083839 127.0.0.1 46385 typ host tcptype passive generation 0 network-id 1
  JsSIP:Transport a=candidate:3440373703 1 udp 1686052607 47.187.194.85 44133 typ srflx raddr 192.168.254.15 rport 44133 generation 0 network-id 4 network-cost 50
  JsSIP:Transport a=ice-ufrag:jnVp
  JsSIP:Transport a=ice-pwd:CebtHFQ2vdxmLwUygqvva0AV
  JsSIP:Transport a=ice-options:trickle
  JsSIP:Transport a=fingerprint:sha-256 99:81:E3:AE:E5:4E:79:7C:51:6A:C5:78:BC:F0:83:A5:94:43:4B:C1:CF:6A:7F:94:6A:44:56:2F:89:B3:0F:44
  JsSIP:Transport a=setup:actpass
  JsSIP:Transport a=mid:0
  JsSIP:Transport a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
  JsSIP:Transport a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
  JsSIP:Transport a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
  JsSIP:Transport a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
  JsSIP:Transport a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
  JsSIP:Transport a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
  JsSIP:Transport a=sendrecv
  JsSIP:Transport a=msid:5a65698c-4c77-487b-b405-7d1396c70d93 08c75efb-a32a-4597-9bf1-2a9719459adb
  JsSIP:Transport a=rtcp-mux
  JsSIP:Transport a=rtpmap:111 opus/48000/2
  JsSIP:Transport a=rtcp-fb:111 transport-cc
  JsSIP:Transport a=fmtp:111 minptime=10;useinbandfec=1
  JsSIP:Transport a=rtpmap:103 ISAC/16000
  JsSIP:Transport a=rtpmap:104 ISAC/32000
  JsSIP:Transport a=rtpmap:9 G722/8000
  JsSIP:Transport a=rtpmap:102 ILBC/8000
  JsSIP:Transport a=rtpmap:0 PCMU/8000
  JsSIP:Transport a=rtpmap:8 PCMA/8000
  JsSIP:Transport a=rtpmap:106 CN/32000
  JsSIP:Transport a=rtpmap:105 CN/16000
  JsSIP:Transport a=rtpmap:13 CN/8000
  JsSIP:Transport a=rtpmap:110 telephone-event/48000
  JsSIP:Transport a=rtpmap:112 telephone-event/32000
  JsSIP:Transport a=rtpmap:113 telephone-event/16000
  JsSIP:Transport a=rtpmap:126 telephone-event/8000
  JsSIP:Transport a=ssrc:271082964 cname:VI8NtwzF82qBNOFi
  JsSIP:Transport a=ssrc:271082964 msid:5a65698c-4c77-487b-b405-7d1396c70d93 08c75efb-a32a-4597-9bf1-2a9719459adb
  JsSIP:Transport a=ssrc:271082964 mslabel:5a65698c-4c77-487b-b405-7d1396c70d93
  JsSIP:Transport a=ssrc:271082964 label:08c75efb-a32a-4597-9bf1-2a9719459adb
  JsSIP:Transport
  JsSIP:Transport  +1ms
  JsSIP:Transport received text message:
  JsSIP:Transport
  JsSIP:Transport SIP/2.0 100 Trying
  JsSIP:Transport From: "testUser1"<sip:test...@tester.domain.com>;tag=mq30fvr8qo
  JsSIP:Transport To: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>
  JsSIP:Transport Call-ID: bji920tbl3r2fluhnhut
  JsSIP:Transport CSeq: 1737 INVITE
  JsSIP:Transport Via: SIP/2.0/WS b4tkefalqdhr.invalid;received=172.17.0.2;branch=z9hG4bK7762607
  JsSIP:Transport Supported: timer
  JsSIP:Transport Contact: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>
  JsSIP:Transport Content-Length: 0
  JsSIP:Transport
  JsSIP:Transport
  JsSIP:Transport  +63ms
  JsSIP:RTCSession receiveInviteResponse() +87ms
  JsSIP:Transport received text message:
  JsSIP:Transport
  JsSIP:Transport SIP/2.0 200 OK
  JsSIP:Transport From: "testUser1"<sip:test...@tester.domain.com>;tag=mq30fvr8qo
  JsSIP:Transport To: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>;tag=516832a-43ebe434-b217-7f4f1af14348-0-13c4-764
  JsSIP:Transport Call-ID: bji920tbl3r2fluhnhut
  JsSIP:Transport CSeq: 1737 INVITE
  JsSIP:Transport Session-Expires: 1800;refresher=uac
  JsSIP:Transport Via: SIP/2.0/WS b4tkefalqdhr.invalid;received=172.17.0.2;branch=z9hG4bK7762607
  JsSIP:Transport Supported: timer
  JsSIP:Transport Contact: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>
  JsSIP:Transport Session-Expires: 1800;refresher=uas
  JsSIP:Transport Content-Type: application/sdp
  JsSIP:Transport Content-Length: 509
  JsSIP:Transport
  JsSIP:Transport v=0
  JsSIP:Transport o=mutualink.net 572660337 1159126506 IN IP4 108.7.45.177
  JsSIP:Transport s=Mutualink-Edge
  JsSIP:Transport t=0 0
  JsSIP:Transport a=group:BUNDLE 0
  JsSIP:Transport a=ice-ufrag:N87TugiZ
  JsSIP:Transport a=ice-pwd:9gIoYixFdyU8ap6o5Tng+9x2
  JsSIP:Transport m=audio 48696 UDP/TLS/RTP/SAVPF 0
  JsSIP:Transport c=IN IP4 108.7.45.177
  JsSIP:Transport a=rtcp:48696 IN IP4 108.7.45.177
  JsSIP:Transport a=mid:0
  JsSIP:Transport a=sendrecv
  JsSIP:Transport a=rtcp-mux
  JsSIP:Transport a=rtpmap:0 PCMU/8000
  JsSIP:Transport a=fingerprint:SHA-256 9B:AB:D5:56:EA:86:C6:23:23:15:0F:86:8E:1D:15:7D:8B:5C:88:CD:9E:EF:E4:00:AF:F1:E5:B6:FE:EF:50:1C
  JsSIP:Transport a=candidate:264 1 UDP 2130706431 108.7.45.177 48696 typ host
  JsSIP:Transport a=setup:passive
  JsSIP:Transport
  JsSIP:Transport  +308ms
  JsSIP:RTCSession receiveInviteResponse() +296ms
  JsSIP:Dialog new UAC dialog created with status CONFIRMED +0ms
  JsSIP:RTCSession emit "sdp" +2ms
  JsSIP:RTCSession session accepted +8ms
  JsSIP:RTCSession emit "accepted" +0ms
  JsSIP:RTCSession sendRequest() +0ms
  JsSIP:Transport send() +20ms
  JsSIP:Transport sending message:
  JsSIP:Transport
  JsSIP:Transport ACK sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net SIP/2.0
  JsSIP:Transport Via: SIP/2.0/WS b4tkefalqdhr.invalid;branch=z9hG4bK8336505
  JsSIP:Transport Max-Forwards: 69
  JsSIP:Transport To: <sip:media_a88b3ceb-03f9-471b-8b3c...@sip.dev360.mutualink.net>;tag=516832a-43ebe434-b217-7f4f1af14348-0-13c4-764
  JsSIP:Transport From: "testUser1" <sip:test...@tester.domain.com>;tag=mq30fvr8qo
  JsSIP:Transport Call-ID: bji920tbl3r2fluhnhut
  JsSIP:Transport CSeq: 1737 ACK
  JsSIP:Transport Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
  JsSIP:Transport Supported: outbound
  JsSIP:Transport User-Agent: JsSIP 3.7.7
  JsSIP:Transport Content-Length: 0
  JsSIP:Transport
  JsSIP:Transport
  JsSIP:Transport  +0ms
  JsSIP:RTCSession session confirmed +4ms
  JsSIP:RTCSession emit "confirmed" +0ms
call confirmed
  JsSIP:InviteClientTransaction Timer B expired for transaction z9hG4bK7762607 +0ms
  JsSIP:InviteClientTransaction Timer M expired for transaction z9hG4bK7762607 +368ms

Reply all
Reply to author
Forward
0 new messages