<div dir="auto">Hi Antonio,<div dir="auto">It is resolved for now, partially and not on purpose, so by accident.</div><div dir="auto">Make sure you have client and server side in dtls handshake, check if you see if freeswitch is changing role from passive to active in logs</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2019, 17:32 António Silva <<a href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>did you solve your issue?</p>
    <p>I'm facing the similar issue,  4 seconds until the verto client
      to have sound, in my scenario i execute action playback in FS.</p>
    <p>I see the delay between DTLS handshakes:</p>
    <p><br>
    </p>
    <p>06004979-f208-1d2d-b6d2-330af10907b0 2019-10-25 16:53:26.960555
      [INFO] switch_rtp.c:3881 Changing audio DTLS state from OFF to
      HANDSHAKE</p>
    <p>..</p>
    <p>06004979-f208-1d2d-b6d2-330af10907b0 2019-10-25 16:53:30.060550
      [INFO] switch_rtp.c:3251 Changing audio DTLS state from HANDSHAKE
      to SETUP</p>
    <p>..</p>
    <p>06004979-f208-1d2d-b6d2-330af10907b0 2019-10-25 16:53:30.080551
      [INFO] switch_rtp.c:3200 Changing audio DTLS state from SETUP to
      READY<br>
    </p>
    <p><br>
    </p>
    <div>On 02/10/2017 09:26, Mirko Brankovic
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">And I was wrong, nothnig to do with STUN,
        <div>Problem is that engine state
          (switch_rtp_ready(engine->rtp_session) is false) is not
          ready at the moment that STUN/ICE is starting.</div>
        <div><br>
        </div>
        <div>Not to see what is holding Audio engine to get to ready
          state (I'm suspecting the TRANSCODING_NECESSARY event) </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Sep 28, 2017 at 3:46 PM, Mirko
          Brankovic <span dir="ltr"><<a href="mailto:mirkobrankovic@gmail.com" target="_blank" rel="noreferrer">mirkobrankovic@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">actually the answering leg responds with
              CONTROLING request</div>
            <div class="gmail_extra">
              <div>
                <div><br>
                  <div class="gmail_quote">On Thu, Sep 28, 2017 at 3:33
                    PM, Mirko Brankovic <span dir="ltr"><<a href="mailto:mirkobrankovic@gmail.com" target="_blank" rel="noreferrer">mirkobrankovic@gmail.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Looks like the problem lies in fact
                        that both call legs/channels in refer call
                        scenario are in my case outgoing legs, and then
                        they are sending CONTROLED stun username
                        requests, so I don't have CONTROLING side.
                        <div><br>
                        </div>
                        <div>while at the same time Video stun is
                          negotiated immediately and correctly.</div>
                        <div>Log shows it I guess.</div>
                        <div><a href="https://pastebin.freeswitch.org/view/33d30c7e" target="_blank" rel="noreferrer">https://pastebin.freeswitch.org/view/33d30c7e</a><br>
                        </div>
                      </div>
                      <div class="gmail_extra">
                        <div>
                          <div><br>
                            <div class="gmail_quote">On Sat, Sep 23,
                              2017 at 3:12 PM, Mirko Brankovic <span dir="ltr"><<a href="mailto:mirkobrankovic@gmail.com" target="_blank" rel="noreferrer">mirkobrankovic@gmail.com</a>></span>
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div dir="auto">
                                  <div>Thanks Mike,
                                    <div dir="auto">all clients are
                                      webrtc clients behind same
                                      freeswitch.</div>
                                    <div dir="auto">At the same time
                                      video rtp/rtcp dtls is instant,
                                      but audio is waiting for
                                      something, my best guess is for
                                      rtcp from client to confirm
                                      correct ip.port or to do auto
                                      correct.</div>
                                    <div dir="auto">Call scenario is A
                                      call B and B transfers(refer) 
                                      call to C.</div>
                                    <div dir="auto">Also I see in those
                                      5 seconds that first client, A
                                      sends total of 6 stun username
                                      requests and that C answers to
                                      them all at the same time, after
                                      5s.</div>
                                    <div dir="auto">Can this be rtcp
                                      problem.</div>
                                    <div dir="auto">I was thinking to go
                                      through video ice thread and
                                      compare it to audio to see how
                                      that one works instantly.</div>
                                    <div dir="auto">thanks,</div>
                                    <div dir="auto">Mirko</div>
                                    <div dir="auto"><br>
                                    </div>
                                    <br>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">
                                        <div>
                                          <div>On
                                            Sep 21, 2017 19:55, "Michael
                                            Jerris" <<a href="mailto:mike@jerris.com" target="_blank" rel="noreferrer">mike@jerris.com</a>>
                                            wrote:<br type="attribution">
                                          </div>
                                        </div>
                                        <blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                          <div>
                                            <div>
                                              <div style="word-wrap:break-word">its
                                                not going to negotiate
                                                until we get the stun
                                                responses.  If we are
                                                not, you should look if
                                                the client is sending
                                                them and something is
                                                blocking, or why the
                                                client is waiting to
                                                send them.  Sounds
                                                broken on client side
                                                from the description.
                                                <div>
                                                  <div><br>
                                                    <div>
                                                      <blockquote type="cite">
                                                        <div>On Sep 21,
                                                          2017, at 7:53
                                                          AM, Mirko
                                                          Brankovic <<a href="mailto:mirkobrankovic@gmail.com" target="_blank" rel="noreferrer">mirkobrankovic@gmail.com</a>>
                                                          wrote:</div>
                                                        <br>
                                                        <div>
                                                          <div dir="ltr">HI,
                                                          <div>Has
                                                          anyone
                                                          experienced
                                                          DTLS handshake
                                                          takes 5s to
                                                          get to SETUP
                                                          state:</div>
                                                          <div>
                                                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2017-09-21
11:40:40.021178 [INFO] switch_rtp.c:3515 Changing audio DTLS state from
                                                          OFF to
                                                          HANDSHAKE<br>
                                                          2017-09-21
                                                          11:40:45.319457
                                                          [INFO]
                                                          switch_rtp.c:3172
                                                          Changing audio
                                                          DTLS state
                                                          from HANDSHAKE
                                                          to SETUP</blockquote>
                                                          <div><br>
                                                          </div>
                                                          <div>In
                                                          network dump i
                                                          see that
                                                          answering side
                                                          is not sending
                                                          STUN for this
                                                          5s and then
                                                          suddenly
                                                          answers last 5
                                                          STUNs from A
                                                          side.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Has
                                                          anyone
                                                          encountered
                                                          this kind of
                                                          problem ?</div>
                                                          <div><br>
                                                          </div>
                                                          <div>I have a
                                                          pcap if
                                                          necessary...</div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
                                                </div>
                                              </div>
                                              <br>
                                            </div>
                                          </div>
                                          _________________________________________________________________________<br>
                                          Professional FreeSWITCH
                                          Consulting Services:<br>
                                          <a href="mailto:consulting@freeswitch.org" target="_blank" rel="noreferrer">consulting@freeswitch.org</a><br>
                                          <a href="http://www.freeswitchsolutions.com" rel="noreferrer noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                          <br>
                                          Official FreeSWITCH Sites<br>
                                          <a href="http://www.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                                          <a href="http://confluence.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
                                          <a href="http://www.cluecon.com" rel="noreferrer noreferrer" target="_blank">http://www.cluecon.com</a><br>
                                          <br>
                                          FreeSWITCH-users mailing list<br>
                                          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                          <a href="http://www.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br>
                            <br clear="all">
                            <div><br>
                            </div>
                          </div>
                        </div>
                        <span><font color="#888888">-- <br>
                            <div data-smartmail="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <div dir="ltr">Regards,
                                            <div>Mirko</div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </font></span></div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <div><br>
                  </div>
                </div>
              </div>
              <span><font color="#888888">-- <br>
                  <div data-smartmail="gmail_signature">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">Regards,
                                  <div>Mirko</div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </font></span></div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">Regards,
                        <div>Mirko</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank" rel="noreferrer">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank" rel="noreferrer">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a></pre>
    </blockquote>
    <pre cols="72">-- 
Saludos / Regards / Cumprimentos
António Silva</pre>
  </div>

</blockquote></div>