// Return the STUN message found. |
*out_msg = stun_msg.release(); |
return true; We noticed in the code that this is the only area where there is no logs. Any ideas? Should we file this as an issue? Thanks! James |
// Don't bother parsing the packet if we can tell it's not STUN. |
// In ICE mode, all STUN packets will have a valid fingerprint. |
if (ice_protocol_ == ICEPROTO_RFC5245 && |
!StunMessage::ValidateFingerprint(data, size)) { |
return false; |
} |
// Parse the request message. If the packet is not a complete and correct |
// STUN message, then ignore it. |
talk_base::scoped_ptr<IceMessage> stun_msg(new IceMessage()); |
talk_base::ByteBuffer buf(data, size); |
if (!stun_msg->Read(&buf) || (buf.Length() > 0)) { |
return false; |
} We believe this is a bug in Chrome. I tried using different STUN servers with the same result. We used: - stun.l.google.com:19302 - stunserver.org Hope this helps! James |
--
---
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-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
INVITE sip:+130...@67.231.8.195 SIP/2.0
Via: SIP/2.0/UDP 198.61.XX.XX:5060;branch=z9hG4bK771f4743;rportMax-Forwards: 70From: <sip:99...@198.61.XX.XX>;tag=as016358d4
To: <sip:+130...@67.231.8.195>Contact: <sip:99...@198.61.XX.XX:5060>Call-ID: 3a58feb43689194c385069ce3391519...@198.61.XX.XX:5060
I believe I am seeing a similar issue that is 100% repeatable. The symptom is that, after what appear to be successful SIP/SDP and STUN transactions, Chrome 26 doesn't send audio packets. However, when connecting to a different type of application hosted on the same server, I get 2-way audio as expected. The timing in the Chrome logs make me wonder if there may be a race condition, but that is speculation.I am using Chrome 26 -> Asterisk 11.2.1 with the sipML5 patch which results in 1-way audio. I also have webrtc2sip loaded on the same server as Asterisk, and I get two-way audio using the same Chrome 26 client. Both the Asterisk failure and the webrtc2sip success scenarios are 100% repeatable.In both cases, SIP/SDP seem correct, and packet traces shows that both scenarios have STUN request/success in both directions. The only difference is that, in the webrtc2sip (success) case, the packet trace shows audio packets in both directions while in the Asterisk (failure) case, voice packets only flow from server to client (called to caller).I am more than happy to help debug this or comment on Issue 1525 (which also seems similar) if someone on the webRTC project thinks it would help. I have the same results when using Canary.Here are some snippets from the Chrome 26 logs (v=9):Chrome 26 -> Asterisk (fail):[6188:7016:0411/103611:VERBOSE3:p2ptransportchannel.cc(825)] Jingle:Channel[audio|1|__]: Previous best connection: Conn[audio:UVO8cTOy:1:0:local:udp:192.168.56.1:55175->:1:0:local:udp:10.159.25.56:15798|C--I|-][6188:7016:0411/103611:VERBOSE3:p2ptransportchannel.cc(828)] Jingle:Channel[audio|1|__]: New best connection: Conn[audio:xxMWKq7b:1:0:local:udp:192.168.1.109:55174->:1:0:stun:udp:107.YY.YY.YY:15798|CRWS|2268][6188:7016:0411/103611:VERBOSE4:dtlstransportchannel.cc(349)] Jingle:Channel[audio|1|__]: DTLSTransportChannelWrapper: channel writable state changed[6188:7016:0411/103611:VERBOSE4:dtlstransportchannel.cc(337)] Jingle:Channel[audio|1|_W]: DTLSTransportChannelWrapper: channel readable state changed{no log of "Channel socket writable (audio, 1) for the first time", "Changing voice state, recv=1 send=1", etc.}Chrome 26 -> webrtc2sip (success):[6800:4828:0411/083246:VERBOSE4:dtlstransportchannel.cc(337)] Jingle:Channel[audio|1|__]:DTLSTransportChannelWrapper: channel readable state changed. . .[6800:4828:0411/083246:VERBOSE3:p2ptransportchannel.cc(825)] Jingle:Channel[audio|1|R_]: Previous best connection: Conn[audio:2taC+vDP:1:0:local:udp:192.168.56.1:59923->:1:0:local:udp:10.159.25.56:39388|C--I|-][6800:4828:0411/083246:VERBOSE3:p2ptransportchannel.cc(828)] Jingle:Channel[audio|1|R_]: New best connection: Conn[audio:eFnx85Ys:1:0:local:udp:192.168.1.109:59922->:1:0:stun:udp:107.YY.YY.YY:39388|CRWS|2283][6800:4828:0411/083246:VERBOSE4:dtlstransportchannel.cc(349)] Jingle:Channel[audio|1|R_]: DTLSTransportChannelWrapper: channel writable state changed[6800:4828:0411/083246:VERBOSE3:channel.cc(910)] Channel socket writable (audio, 1) for the first time[6800:4828:0411/083246:VERBOSE3:channel.cc(920)] Using Cand[eFnx85Ys:1:local:udp:{1819BAC1-9E5C-44BA-BF00-87359EDB7A89}:192.168.1.109:59922:k46yDErFo0BSshws:KadBz/lqJcTVFiEl2138IBMm]->Cand[:1:stun:udp::107.YY.YY.YY:39388:vLfVJM87RtPvhDX:dEYCJSUH8nVwDPMjbihZ3][6800:4828:0411/083246:VERBOSE3:webrtcvoiceengine.cc(570)] Setting option overrides: AudioOptions {}[6800:4828:0411/083246:VERBOSE3:webrtcvoiceengine.cc(618)] Applying audio options: AudioOptions {}[6800:4828:0411/083246:VERBOSE3:channel.cc(1607)] Changing voice state, recv=1 send=1[4000:3468:0411/083246:VERBOSE1:audio_input_renderer_host.cc(200)] AudioInputRendererHost::OnStartDevice(stream_id=1, session_id = 2)[4000:3468:0411/083246:VERBOSE1:audio_input_renderer_host.cc(214)] AudioInputRendererHost::OnCreateStream(stream_id=1)Here are the offers/answers:Asterisk (failure):Offer SDP:v=0o=- 3355069378 2 IN IP4 127.0.0.1s=Doubango Telecom - chrome
t=0 0a=group:BUNDLE audio
a=msid-semantic: WMS x5JGa7ahN17045xZ3wLtZfelxoqTPIYraphPm=audio 55174 RTP/SAVPF 103 104 111 0 8 107 106 105 13 126c=IN IP4 23.XX.XX.XXa=rtcp:55174 IN IP4 23.XX.XX.XXa=candidate:3467446226 1 udp 2113937151 192.168.1.109 55174 typ host generation 0a=candidate:3467446226 2 udp 2113937151 192.168.1.109 55174 typ host generation 0a=candidate:2999745851 1 udp 2113937151 192.168.56.1 55175 typ host generation 0a=candidate:2999745851 2 udp 2113937151 192.168.56.1 55175 typ host generation 0a=candidate:1340408166 1 udp 1845501695 23.XX.XX.XX 55174 typ srflx raddr 192.168.1.109 rport 55174 generation 0a=candidate:1340408166 2 udp 1845501695 23.XX.XX.XX 55174 typ srflx raddr 192.168.1.109 rport 55174 generation 0a=candidate:2150562594 1 tcp 1509957375 192.168.1.109 49587 typ host generation 0a=candidate:2150562594 2 tcp 1509957375 192.168.1.109 49587 typ host generation 0a=candidate:4233069003 1 tcp 1509957375 192.168.56.1 49588 typ host generation 0a=candidate:4233069003 2 tcp 1509957375 192.168.56.1 49588 typ host generation 0a=ice-ufrag:nMJqIvCZkxxjanvMa=ice-pwd:rd+pTHRvBwPN3l2kpnSnzTgN
a=ice-options:google-icea=sendrecva=mid:audioa=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:yZgpDGPCt7d7uN6ruugbJ1s7qogSDXkNE8GwghGqa=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:1vcNH38Xq9j+pGL85f2O4Jo5iLsevgW9U9BbYFjO
a=rtpmap:103 ISAC/16000a=rtpmap:104 ISAC/32000a=rtpmap:111 opus/48000/2a=fmtp:111 minptime=10a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:107 CN/48000a=rtpmap:106 CN/32000a=rtpmap:105 CN/16000a=rtpmap:13 CN/8000a=rtpmap:126 telephone-event/8000a=maxptime:60
a=ssrc:1167001888 cname:uyihe4P/auBCsB3Wa=ssrc:1167001888 msid:x5JGa7ahN17045xZ3wLtZfelxoqTPIYraphP x5JGa7ahN17045xZ3wLtZfelxoqTPIYraphPa0a=ssrc:1167001888 mslabel:x5JGa7ahN17045xZ3wLtZfelxoqTPIYraphPa=ssrc:1167001888 label:x5JGa7ahN17045xZ3wLtZfelxoqTPIYraphPa0Answer SDP:v=0o=root 725358089 725358089 IN IP4 107.YY.YY.YYs=Asterisk PBX SVN-trunk-r379070Mc=IN IP4 107.YY.YY.YYt=0 0m=audio 15798 RTP/SAVPF 0 8 101a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16
a=ssrc:984573663 cname:ldjWoB60jbyQlR6ea=ssrc:984573663 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2a=ssrc:984573663 label:Doubango
a=silenceSupp:off - - - -a=ptime:20
a=ice-ufrag:2ee074ce5c17851f4818d7db14cb38daa=ice-pwd:1df3f9607a6096836787cf823c1711c1a=candidate:Ha9f1938 1 udp 2130706431 10.159.25.56 15798 typ host generation 0 svn 165a=candidate:S6b15c590 1 udp 1694498815 107.YY.YY.YY 15798 typ srflx generation 0 svn 165a=sendrecva=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:TAQxMfw6OpaVVkhm1Q90JfKg8f7x+vKt+qi34sGuwebrtc2sip (success):Offer SDP:v=0o=- 3861354938 2 IN IP4 127.0.0.1s=Doubango Telecom - chrome
t=0 0a=group:BUNDLE audio
a=msid-semantic: WMS 1hUAoYxSMI6iMeJHtBYKfv0ygMKz6ZuZiDHlm=audio 59922 RTP/SAVPF 103 104 111 0 8 107 106 105 13 126c=IN IP4 23.XX.XX.XXa=rtcp:59922 IN IP4 23.XX.XX.XXa=candidate:3467446226 1 udp 2113937151 192.168.1.109 59922 typ host generation 0a=candidate:3467446226 2 udp 2113937151 192.168.1.109 59922 typ host generation 0a=candidate:2999745851 1 udp 2113937151 192.168.56.1 59923 typ host generation 0a=candidate:2999745851 2 udp 2113937151 192.168.56.1 59923 typ host generation 0a=candidate:1340408166 1 udp 1845501695 23.XX.XX.XX 59922 typ srflx raddr 192.168.1.109 rport 59922 generation 0a=candidate:1340408166 2 udp 1845501695 23.XX.XX.XX 59922 typ srflx raddr 192.168.1.109 rport 59922 generation 0a=candidate:2150562594 1 tcp 1509957375 192.168.1.109 49290 typ host generation 0a=candidate:2150562594 2 tcp 1509957375 192.168.1.109 49290 typ host generation 0a=candidate:4233069003 1 tcp 1509957375 192.168.56.1 49291 typ host generation 0a=candidate:4233069003 2 tcp 1509957375 192.168.56.1 49291 typ host generation 0a=ice-ufrag:k46yDErFo0BSshwsa=ice-pwd:KadBz/lqJcTVFiEl2138IBMm
a=ice-options:google-icea=sendrecva=mid:audioa=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:vF1ocspsQ+QJZFLBiyMJmGJZlshQE0eNy7cL0tp0a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:jRysrmeuyu9wmb9nEC5hGHMZXwJEcHbl0QtFegpQ
a=rtpmap:103 ISAC/16000a=rtpmap:104 ISAC/32000a=rtpmap:111 opus/48000/2a=fmtp:111 minptime=10a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:107 CN/48000a=rtpmap:106 CN/32000a=rtpmap:105 CN/16000a=rtpmap:13 CN/8000a=rtpmap:126 telephone-event/8000a=maxptime:60
a=ssrc:1779256102 cname:Nc/UwFlqhkKO2S21a=ssrc:1779256102 msid:1hUAoYxSMI6iMeJHtBYKfv0ygMKz6ZuZiDHl 1hUAoYxSMI6iMeJHtBYKfv0ygMKz6ZuZiDHla0a=ssrc:1779256102 mslabel:1hUAoYxSMI6iMeJHtBYKfv0ygMKz6ZuZiDHla=ssrc:1779256102 label:1hUAoYxSMI6iMeJHtBYKfv0ygMKz6ZuZiDHla0Answer SDP:v=0o=doubango 1983 678901 IN IP4 10.159.25.56s=-c=IN IP4 10.159.25.56t=0 0m=audio 39388 RTP/SAVPF 0 8c=IN IP4 10.159.25.56a=ptime:20
a=silenceSupp:off - - - -
a=rtpmap:0 PCMU/8000/1a=rtpmap:8 PCMA/8000/1a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:XUowHy+H46VP5sY718HpqcmRltLdIHciYNr98Kfua=sendrecva=rtcp-muxa=ssrc:4132823663 cname:ldjWoB60jbyQlR6ea=ssrc:4132823663 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2a=ssrc:4132823663 label:Doubangoa=ice-ufrag:vLfVJM87RtPvhDXa=ice-pwd:dEYCJSUH8nVwDPMjbihZ3a=candidate:D2rTbod39 1 udp 2130706431 10.159.25.56 39388 typ hosta=candidate:srflxD2rT 1 udp 1694498815 107.YY.YY.YY 39388 typ srflx raddr 10.159.25.56 rport 39388Here is my complete architecture:Success: Chrome 26 -> webrtc2sip -> Kamailio -> FreeSWITCH, which FS configured to play an announcement and then echo delay.Failure: Chrome 26 -> Asterisk, dial 600 for the Echo test.NOTE: I had similar 1-way audio when calling Chrome 26 -> Asterisk -> Chrome 26, whereas xLIte -> Asterisk Echo succeeds (2-way audio).Chrome 26 is running on Windows 7 (Windows 8 had that same failure). Both Chrome 26 and Asterisk are behind (separate) NATs.Thanks,- Joel
--
---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/GKtrfMir2sE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/GKtrfMir2sE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
---
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-webrt...@googlegroups.com.
--
---
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-webrt...@googlegroups.com.
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-webrt...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/GKtrfMir2sE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.