IOS Answer call from chrome client problem

109 views
Skip to first unread message

George Kastour

unread,
Jun 19, 2017, 10:59:38 AM6/19/17
to discuss-webrtc
Hi 

using webrtc native c++ api's on IOS 

I make a call successfully form IOS to chrome
I make a call successfully form IOS to Firefox
I receive a call successfully On IOS from Firefox

but I have only problem to receive a call on IOS from Chrome 

here is the webrtc debug from Xcode


(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|2]: Received STUN error response id=78556d5a6966394c714f4239 code=487 rtt=1

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|CRxW|1|0|9114475305677503998|-]: Received STUN ping, id=79557572446773442b4a6354

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=79557572446773442b4a6354

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|2]: Received STUN error response id=756a30546f6c4f78742f7330 code=487 rtt=0

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|CRxW|1|0|9114475305677503998|-]: Received STUN ping, id=3653685555364a623830306f

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=3653685555364a623830306f

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|2]: Received STUN error response id=4c79546d2b3779444734744f code=487 rtt=1

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|CRxW|1|0|9114475305677503998|-]: Received STUN ping, id=6374665246374e62547a2b6a

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=6374665246374e62547a2b6a

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|1]: Received STUN error response id=34486d756c786d493967776b code=487 rtt=1

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|C-xW|1|0|9114475305677503998|-]: Received STUN ping, id=3866416a4e722f5969486f63

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=3866416a4e722f5969486f63

(port.cc:1499): Connection deleted with number of pings sent: 1

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x15789fe00 (17 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x157899200 (16 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x157898800 (15 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x15614e600 (14 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x157897a00 (13 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x15614fa00 (12 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x156150400 (11 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x1578aca00 (10 remaining)

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|0]: Received STUN error response id=78527135452b736a75576c55 code=487 rtt=1

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x156157e00 (9 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x156157400 (8 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x1578aea00 (7 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x1578ad400 (6 remaining)

(port.cc:1499): Connection deleted with number of pings sent: 0

(p2ptransportchannel.cc:1826): Jingle:Channel[audio|1|RW]: Removed connection 0x1578af400 (5 remaining)

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|CRxW|1|0|9114475305677503998|-]: Received STUN ping, id=5638374474526f713672584c

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=5638374474526f713672584c

(audio_device_buffer.cc:450): [REC : 10984msec, 48kHz] callbacks: 0, samples: 0, rate: 0, level: 0

(audio_device_buffer.cc:459): [PLAY: 10984msec, 48kHz] callbacks: 1084, samples: 520320, rate: 47371, level: 0

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|0]: Received STUN error response id=73454a633955565337373250 code=487 rtt=0

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|C-xW|1|0|9114475305677503998|-]: Received STUN ping, id=71776a5a725046494573724a

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=71776a5a725046494573724a

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|0]: Received STUN error response id=5967534d3772457152343434 code=487 rtt=1

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|C-xW|1|0|9114475305677503998|-]: Received STUN ping, id=646f47773078716251364252

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=646f47773078716251364252

(port.cc:673): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Sending STUN binding error: reason=Role Conflict to [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1085): Received conflicting role from the peer.

(port.cc:441): Jingle:Port[0x157888400:audio:1:0:local:Net[en0:fda5:9b29:5b4d::/64:Wifi]]: Received STUN binding error: class=4 number=87 reason='Role Conflict' from [fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425

(port.cc:1421): Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|0]: Received STUN error response id=6d362f703564357172664e4a code=487 rtt=0

(transportcontroller.cc:807): Got role conflict; switching to controlling role.

(port.cc:1032): Jingle:Conn[0x15614f000:audio:IVVUP4NT:1:0:local:udp:172.31.254.55:54526->SYCsWPXo:1:2122129151:local:udp:172.31.254.73:64054|CRxW|1|0|9114475305677503998|-]: Received STUN ping, id=494c77556465544d616a4a61

(transportcontroller.cc:807): Got role conflict; switching to controlled role.

(port.cc:635): Jingle:Port[0x15614ca00:audio:1:0:local:Net[en0:172.31.254.0/24:Wifi]]: Sent STUN ping response, to=172.31.254.73:64054, id=494c77556465544d616a4a61

Taylor Brandstetter

unread,
Jun 20, 2017, 7:54:22 AM6/20/17
to discuss-webrtc
I noticed something odd:

Jingle:Conn[0x1578a3200:audio:N8NQho4A:1:0:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425->N8NQho4A:1:2122265343:local:udp:[fda5:9b29:5b4d::3da4:bb37:bdd5:1a22]:60425|CRWI|0|0|9115060245863753214|2]

The same address appears as the local and remote candidate. So I'd guess that candidates are getting mixed up, and the iOS client ends up trying to connect to itself, hence role conflicts (it can't be both roles at once). Are you sure you're only calling "addIceCandidate" with candidates from the remote endpoint?

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/f71aa552-32a6-4004-aef4-668c9e5f0510%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted

George Kastour

unread,
Jun 20, 2017, 12:21:39 PM6/20/17
to discuss-webrtc
yes you are right, I added the candidates back to the peer connection on ice_candidate callback, this caused the error

I removed this , now it's working

Thanks much for your reply
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages