<div dir="ltr">Hi,<div>I am developing an iOS calling App with libnice for ICE capabilities. The calls go through freeswitch and since freeswitch supports ICE, I expected it to work out of the box. But I have a problem. The way libnice works is as follows:</div>
<div>1) The client sends INVITE with his candidates.</div><div>2) Freeswitch parses the candidates.</div><div>3) Immediately after 200 OK is received, I can see FreeSWITCH choosing an ICE candidate and logging &quot;Activating Audio ICE&quot; indicating the IP and Port and it sends media/RTP to.</div>
<div>4) But the libnice agent tries to look at the candidates received in 200 OK and tries to send a STUN binding request to FreeSWITCH IP as that IP is mentioned as ICE candidate in the 200 OK coming from freeswitch.</div>
<div>5) The FreeSWITCH doesn&#39;t respond to that STUN binding request and libnice agent times out.</div><div>6) Ideally, if libnice gets back a response from the freeswitch, it should initiate a Re-INVITE with the candidate pair selected.</div>
<div><br></div><div>Now here, the freeswitch starts sending RTP to client&#39;s candidate, but the client gets stuck because the candidate pair is not formed as the libnice agent keeps waiting for a response for the STUN Binding Request.</div>
<div>Is there anything that I am missing here. Any help is highly appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>--- Jayesh</div></div>