simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.64k stars 1.2k forks source link

Stun/Turn server ICE failed, add a STUN server and see about:webrtc for more details in firefox while trying to make a call from two different network. #758

Open enghassanabdallah opened 4 years ago

enghassanabdallah commented 4 years ago

here is the logs from about:webrtc also i followed this tutorial to create a webrtc peer to peer connection https://codelabs.developers.google.com/codelabs/webrtc-web/#7 and i'm using google stun server {'urls': 'stun:stun.l.google.com:19302'}.

SDP Local SDP (Offer)

v=0

o=mozilla...THIS_IS_SDPARTA-68.0.2 237883121495950146 0 IN IP4 0.0.0.0

s=-

t=0 0

a=sendrecv

a=fingerprint:sha-256 D5:FB:2E:E5:95:BB:22:9B:96:65:B1:36:00:9C:33:78:EC:8F:ED:9A:A3:45:BF:DF:C0:DB:07:F5:F9:FF:81:78

a=group:BUNDLE 0 1

a=ice-options:trickle

a=msid-semantic:WMS *

m=audio 61363 UDP/TLS/RTP/SAVPF 109 9 0 8 101

c=IN IP4 192.168.16.143

a=candidate:0 1 UDP 2122252543 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 61361 typ host

a=candidate:1 1 UDP 2122187007 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 61362 typ host

a=candidate:2 1 UDP 2122121471 192.168.16.143 61363 typ host

a=candidate:3 1 TCP 2105524479 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 9 typ host tcptype active

a=candidate:4 1 TCP 2105458943 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 9 typ host tcptype active

a=candidate:5 1 TCP 2105393407 192.168.16.143 9 typ host tcptype active

a=candidate:0 2 UDP 2122252542 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 61364 typ host

a=candidate:1 2 UDP 2122187006 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 61365 typ host

a=candidate:2 2 UDP 2122121470 192.168.16.143 61366 typ host

a=candidate:3 2 TCP 2105524478 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 9 typ host tcptype active

a=candidate:4 2 TCP 2105458942 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 9 typ host tcptype active

a=candidate:5 2 TCP 2105393406 192.168.16.143 9 typ host tcptype active

a=sendrecv

a=end-of-candidates

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level

a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid

a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1

a=fmtp:101 0-15

a=ice-pwd:e76b86d261f8b7f9ab788fc21de96ef9

a=ice-ufrag:4529b69d

a=mid:0

a=msid:{7c2beaec-e4d6-4eaa-9e3f-f7245f36513e} {e59dfd12-5c9d-4a52-8e08-4397d2fe644a}

a=rtcp:61366 IN IP4 192.168.16.143

a=rtcp-mux

a=rtpmap:109 opus/48000/2

a=rtpmap:9 G722/8000/1

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:101 telephone-event/8000

a=setup:actpass

a=ssrc:2376194066 cname:{9b24bf4a-a873-4d1c-8ae5-13117692634f}

m=video 61369 UDP/TLS/RTP/SAVPF 120 121 126 97

c=IN IP4 192.168.16.143

a=candidate:0 1 UDP 2122252543 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 61367 typ host

a=candidate:1 1 UDP 2122187007 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 61368 typ host

a=candidate:2 1 UDP 2122121471 192.168.16.143 61369 typ host

a=candidate:3 1 TCP 2105524479 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 9 typ host tcptype active

a=candidate:4 1 TCP 2105458943 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 9 typ host tcptype active

a=candidate:5 1 TCP 2105393407 192.168.16.143 9 typ host tcptype active

a=candidate:0 2 UDP 2122252542 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 61370 typ host

a=candidate:1 2 UDP 2122187006 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 61371 typ host

a=candidate:2 2 UDP 2122121470 192.168.16.143 61372 typ host

a=candidate:3 2 TCP 2105524478 fd58:bad4:326c:4900:51da:26c9:b6ae:319c 9 typ host tcptype active

a=candidate:4 2 TCP 2105458942 fd58:bad4:326c:4900:9876:62d:83f8:fa3d 9 typ host tcptype active

a=candidate:5 2 TCP 2105393406 192.168.16.143 9 typ host tcptype active

a=sendrecv

a=end-of-candidates

a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid

a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

a=extmap:5 urn:ietf:params:rtp-hdrext:toffset

a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1

a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1

a=fmtp:120 max-fs=12288;max-fr=60

a=fmtp:121 max-fs=12288;max-fr=60

a=ice-pwd:e76b86d261f8b7f9ab788fc21de96ef9

a=ice-ufrag:4529b69d

a=mid:1

a=msid:{7c2beaec-e4d6-4eaa-9e3f-f7245f36513e} {e1459cb1-afcd-483b-8ebb-357c511c1d16}

a=rtcp:61372 IN IP4 192.168.16.143

a=rtcp-fb:120 nack

a=rtcp-fb:120 nack pli

a=rtcp-fb:120 ccm fir

a=rtcp-fb:120 goog-remb

a=rtcp-fb:121 nack

a=rtcp-fb:121 nack pli

a=rtcp-fb:121 ccm fir

a=rtcp-fb:121 goog-remb

a=rtcp-fb:126 nack

a=rtcp-fb:126 nack pli

a=rtcp-fb:126 ccm fir

a=rtcp-fb:126 goog-remb

a=rtcp-fb:97 nack

a=rtcp-fb:97 nack pli

a=rtcp-fb:97 ccm fir

a=rtcp-fb:97 goog-remb

a=rtcp-mux

a=rtpmap:120 VP8/90000

a=rtpmap:121 VP9/90000

a=rtpmap:126 H264/90000

a=rtpmap:97 H264/90000

a=setup:actpass

a=ssrc:3699174837 cname:{9b24bf4a-a873-4d1c-8ae5-13117692634f}

Remote SDP (Answer)

v=0

o=mozilla...THIS_IS_SDPARTA-68.0.2 8014454581528530211 0 IN IP4 0.0.0.0

s=-

t=0 0

a=sendrecv

a=fingerprint:sha-256 5C:C4:FD:87:EF:F6:08:3F:53:C5:CA:C2:DA:85:AF:DF:60:8F:7C:6B:4A:9E:AF:57:26:5B:B1:D6:06:41:9F:2D

a=group:BUNDLE 0 1

a=ice-options:trickle

a=msid-semantic:WMS *

m=audio 9 UDP/TLS/RTP/SAVPF 109 101

c=IN IP4 0.0.0.0

a=candidate:0 1 UDP 2122187007 192.168.1.3 52721 typ host

a=candidate:1 1 UDP 2122252543 fdbc:7574:8a96:6f00:d56a:9679:21a0:bae7 45867 typ host

a=candidate:2 1 TCP 2105442559 192.168.1.3 49492 typ host tcptype passive

a=candidate:2 1 TCP 2105458943 192.168.1.3 9 typ host tcptype active

a=candidate:3 1 TCP 2105508095 fdbc:7574:8a96:6f00:d56a:9679:21a0:bae7 65328 typ host tcptype passive

a=candidate:3 1 TCP 2105524479 fdbc:7574:8a96:6f00:d56a:9679:21a0:bae7 9 typ host tcptype active

a=sendrecv

a=end-of-candidates

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid

a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1

a=fmtp:101 0-15

a=ice-pwd:c9894f4a52080819861cc1fc270dfc1e

a=ice-ufrag:4b87bec9

a=mid:0

a=msid:{c4876a75-f187-4702-be1e-3584f63121e4} {33177329-60a1-45a5-ad50-17cc53cc5cee}

a=rtcp-mux

a=rtpmap:109 opus/48000/2

a=rtpmap:101 telephone-event/8000

a=setup:active

a=ssrc:1777792079 cname:{f0c96d48-2e4d-45d4-8ff2-6b0c2b266f85}

m=video 9 UDP/TLS/RTP/SAVPF 120

c=IN IP4 0.0.0.0

a=sendrecv

a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid

a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

a=extmap:5 urn:ietf:params:rtp-hdrext:toffset

a=fmtp:120 max-fs=12288;max-fr=60

a=ice-pwd:c9894f4a52080819861cc1fc270dfc1e

a=ice-ufrag:4b87bec9

a=mid:1

a=msid:{c4876a75-f187-4702-be1e-3584f63121e4} {0e4a0cc5-0156-4da5-9468-8aef312a4ca7}

a=rtcp-fb:120 nack

a=rtcp-fb:120 nack pli

a=rtcp-fb:120 ccm fir

a=rtcp-fb:120 goog-remb

a=rtcp-mux

a=rtpmap:120 VP8/90000

a=setup:active

a=ssrc:108439719 cname:{f0c96d48-2e4d-45d4-8ff2-6b0c2b266f85}

thevobos commented 3 years ago

Dude did u found any solution ?