As I wrote in my earlier mail, with my setup (audio and video) the
OperationSetBasicTelephonySipImpl.processInviteOK method takes a few
seconds, which leads the callee to resend the OK UDP response to the Invite.
More specifically, the send stream creation in callSession.processSdpAnswer
takes the time. In the attached patch, I moved sending the ACK for the
Invite OK from the end of the method to before the call to
callSession.processSdpAnswer. This is possible because all the data needed
for the ACK is known by then. With the change, the callee gets the ACK
earlier and proceed with RTP initialization, saving some time and preventing
the re-sending of the OK response.
ack-invite-earlier.patch (3.01 KB)