Open SrujithPoondla opened 8 years ago
you can enable the G_MESSAGES_DEBUG & NICE_DEBUG to all. for take look the detail will be better.
I guess is same problem with https://github.com/EricssonResearch/openwebrtc-ios-sdk/issues/59 It also can reproduce in Wi-Fi environment.
Hi @xelven the issue you referenced is in IOS. I am getting these errors in linux. are these errors due to the same problem you mentioned in EricssonResearch/openwebrtc-ios-sdk#59?
@SrujithPoondla Not 100% sure, but I think it not about platform, it most time about which NAT type your try to pass through. I was contact the developer of libnice, the few ICE connection bug has confirmed. you can try with the NICE_DEBUG arguments in runtime to get more info will more clearly.
@xelven
You seem to have been a step ahead of me on a bunch of openwebrtc issues so I figured I'd ask you about this. Running iphone-iphone on the same wifi (so I don't think this is a NAT issue for me) I've been getting hit with
ICE failed to establish a connection!
ICE state changed from connecting to failed
on both my video and audio sessions.
This didn't happen when I was running linux-linux. I've turned on NICE_DEBUG and put the output in a pastebin here. http://pastebin.com/JZkV5XcP
Do you have any thoughts?
@james-huang I look at it, and I got said there may had 2 reasons. 1. From your log, I can saw it your are using Cell Phone(NOT Simulator) which had sim card and mobile network is Enabled. and also your using wifi network. and then your can checkout your remote candidate added only [2 for Stream 1 with one TCP-ACT; one TCP-PASS.] [2 for Stream 2 with one TCP-ACT; one TCP-PASS.]
Adding TCP-ACT remote candidate with addr [192.168.1.245]:0 for s1/c1. U/P '2Qfx'/'T645rsQlAOYJ3TLaVrC3en' prio: 1019216383
Updating existing remote candidate with addr [192.168.1.245]:0 for s1/c1. U/P '2Qfx'/'T645rsQlAOYJ3TLaVrC3en' prio: 1019216383
(<unknown>:6383): libnice-DEBUG: Agent 0x103934000 : Adding TCP-PASS remote candidate with addr [192.168.1.245]:54306 for s1/c1. U/P '2Qfx'/'T645rsQlAOYJ3TLaVrC3en' prio: 1015022079
Adding TCP-ACT remote candidate with addr [192.168.1.245]:0 for s2/c1. U/P 'V6M4'/'TWI5xy4g21ewWE+zv+Ks0b' prio: 1019216383
(<unknown>:6383): libnice-DEBUG: Agent 0x103934000 : Updating existing remote candidate with addr [192.168.1.245]:0 for s2/c1. U/P 'V6M4'/'TWI5xy4g21ewWE+zv+Ks0b' prio: 1019216383
(<unknown>:6383): libnice-DEBUG: Agent 0x103934000 : Adding TCP-PASS remote candidate with addr [192.168.1.245]:54308 for s2/c1. U/P 'V6M4'/'TWI5xy4g21ewWE+zv+Ks0b' prio: 1015022079
and there all failed when check the there connection, I not sure which local candidate they using, But I am sure if they using 10.14.45.62(the internal ip of the mobile network adapter) to connecting 192.168.1.245 will 100% failed.
I suggest your disable mobile network first when u testing.
2. your router(Wi-Fi) may broken, but seems not : )
Yo @xelven; first off, really appreciate the help here.
1: Good eye about the mobile network. I have 2 phones and 1 sim card and I was a little confused why there were more ICE candidates from one side. I've turned cellular off (also tried adding the TURN server from the demo app in openwebrtc-examples). Mostly the same errors below:
2: Don't think its a router issue. linux-to-linux streaming works fine. I also did a quick browse through the router settings to make sure nothing too weird was going on.
update: i'm seeing packets for a TCP session start and teardown handshake between the iphones. no DTLS packets though.
I am using Linux after starting Daemon and joining the call I am facing this issue
Thanks