[sip-comm-dev] [PATCH] Answer invite OK with ACK earlier


#1

Hi all!

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.

Regards
Michael Koch

ack-invite-earlier.patch (3.01 KB)


#2

Hey again Michael,

I agree with and have committed this one too. Thanks again for all your
contributions!

Cheers!
Emil

Koch Michael wrote:

ยทยทยท

Hi all!

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.

Regards
Michael Koch

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net