The server is on a open network, with a public ip address, accessible, and with a large bandw capacity.
STUN error: Incomplete message: 111 of 65300 bytes!
[1540245456] Looks like DTLS!
[1540245456] DTLS check pending: 0
Written 111 of those bytes on the read BIO...
[1540245456] DTLS check pending: 0
... and read -1 of them from SSL... DTLSv1_get_timeout: 0 [2462730371] DTLS timeout on component 1 of stream 1, retransmitting [2462730371] DTLS check pending: 197 [2462730371] >> Going to send DTLS data: 197 bytes [2462730371] >> >> Read 197 bytes from the write_BIO... (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 : s1:1: sending 197 bytes to [78.250.25.170]:60030 [2462730371] >> >> ... and sent 197 of those bytes on the socket [2462730371] DTLSv1_get_timeout: 1899 [2462730371] DTLSv1_get_timeout: 1798 (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 :STUN transaction retransmitted (timeout 2385ms). [2462730371] DTLSv1_get_timeout: 1698 [2462730371] DTLSv1_get_timeout: 1597 (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 : timer tick #101: 0 frozen, 1 in-progress, 0 waiting, 1 succeeded, 0 discovered, 1 nominated, 0 waiting-for-nom. (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 : Packet received on local socket 24 from [78.250.25.170]:60030 (835 octets). STUN error: Incomplete message: 835 of 65300 bytes! [2462730371] Looks like DTLS! [2462730371] DTLS check pending: 0 Written 835 of those bytes on the read BIO... [2462730371] DTLS check pending: 0 ... and read -1 of them from SSL... [2462730371] DTLS check pending: 0 Initialization not finished yet... (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 : Packet received on local socket 24 from [78.250.25.170]:60030 (104 octets). (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0: inbound STUN packet for 1/1 (stream/component) from [78.250.25.170]:60030 (104 octets) : STUN demux: OK! Comparing username '0x516252393a4b56337658782f4d5944463132663578' (21) with '0x51625239' (4) : 0 Found valid username, returning password: 'iBDdyXs0Mcw+hhUW2Cf2Mq' Message HMAC-SHA1 fingerprint: key : 0x69424464795873304d63772b68685557324366324d71 expected: 0x6c8e3917cd04ec9dbcb6f43753bef7aa279aac0c received: 0x6c8e3917cd04ec9dbcb6f43753bef7aa279aac0c STUN auth: OK! STUN unknown: 0 mandatory attribute(s)! STUN Reply (buffer size = 1300)... STUN Role not specified by peer! Message HMAC-SHA1 message integrity: key : 0x69424464795873304d63772b68685557324366324d71 sent : 0x5a1e79b9fb5b6e77e795b2deced06296e47f0e7b Message HMAC-SHA1 fingerprint: 0x33d828b0 All done (response size: 92) [2462730371] DTLSv1_get_timeout: 0 [2462730371] DTLS timeout on component 1 of stream 1, retransmitting [2462730371] DTLS check pending: 197 [2462730371] >> Going to send DTLS data: 197 bytes [2462730371] >> >> Read 197 bytes from the write_BIO... (process:709): libnice-DEBUG: Agent 0x7f06b000b6d0 : s1:1: sending 197 bytes to [78.250.25.170]:60030 [2462730371] >> >> ... and sent 197 of those bytes on the socket
and it reapeat those sequences, sometimes the first 197 byte, sometimes the 197 bytes long + 2nd 835 bytes long, but never reach the
thrid packet (just before DTLS established, yay!) in the first exemple (the good one).
--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ok, i got it.
Open dtls.c and just after line 135, add : SSL_CTX_set_read_ahead(ssl_ctx,1) ;
make, make install and try. It works very well for me.
related to https://github.com/meetecho/janus-gateway/issues/132 and maybe https://github.com/meetecho/janus-gateway/issues/134
Hi Lorenzo,I installed recently janus on a new serveur and i can't get it to work..Could you help me to understand the pb ?Here is my log : http://pastebin.com/ERALNdvaEverything seems to be ok with signaling, the negociation (offer/answer..) until browser or janus need to send audio or video data.There is NO network filtering on server side (iptables...).On the client side, with the echo test plugin, (or mcu..) the audio or video data is never sent. After negociation, the client try to exchange the DTLS certificate but no success :614 127.902451000 92.202.78.142 10.42.0.77 DTLSv1.0 239 Client Hello627 129.150940000 92.202.78.142 10.42.0.77 STUN 70 Binding Indication673 154.168432000 92.202.78.142 10.42.0.77 STUN 70 Binding Indication719 187.843888000 10.42.0.77 92.202.78.142 DTLSv1.0 153 Server Hello720 187.844185000 10.42.0.77 92.202.78.142 DTLSv1.0 507 Certificate[Reassembly error, protocol DTLS: New fragment overlaps old data (retransmission?)]721 187.845172000 10.42.0.77 92.202.78.142 DTLSv1.0 99 Certificate[Reassembly error, protocol DTLS: New fragment overlaps old data (retransmission?)]722 187.845268000 10.42.0.77 92.202.78.142 DTLSv1.0 322 Server Key Exchange, Certificate Request, Server Hello Done723 187.892663000 92.202.78.142 10.42.0.77 DTLSv1.0 239 Client Hello754 204.590344000 92.202.78.142 10.42.0.77 STUN 70 Binding Indication798 229.152028000 92.202.78.142 10.42.0.77 STUN 70 Binding Indication849 247.846145000 10.42.0.77 92.202.78.142 DTLSv1.0 153 Server Hello850 247.846484000 10.42.0.77 92.202.78.142 DTLSv1.0 507 Certificate[Reassembly error, protocol DTLS: New fragment overlaps old data (retransmission?)]851 247.846565000 10.42.0.77 92.202.78.142 DTLSv1.0 99 Certificate[Reassembly error, protocol DTLS: New fragment overlaps old data (retransmission?)]852 247.846638000 10.42.0.77 92.202.78.142 DTLSv1.0 322 Server Key Exchange, Certificate Request, Server Hello Done853 247.909974000 92.202.78.142 10.42.0.77 DTLSv1.0 239 Client HelloThat is strange, the certificate (certs by default) is the same on the test machine, and everything is ok. On the new server even if there is a network issue, i can't understand why it is causing probleme with the DTLS certificate exchange.With the video MCU, when i close the session, nothing strange appears, ressources a freed etc. Janus always record audio and video empty files (15 o).Do you have an idea ?Thank you ;)