[Asterisk-Dev] Unacceptable delays in IAX channel.

Kevin P. Fleming kpfleming at digium.com
Wed Dec 21 20:55:05 MST 2005


Steve Kann wrote:

> I'm not sure how it's done now, but you can handle delayed acks just 
> like retransmissions:  you can immediately schedule a delayed ack when 
> you get something, and then, whenever you send a full frame, check to 
> see if there's a scheduled ack, and if there is, piggyback the sequence 
> number change with your full frame, and then cancel the ack.

My plan has been to build the system in such a way that packets from a 
given peer are always serviced by the same thread, so that it is not 
possible for two threads to handle packets from the same peer 
simultaneously. This should eliminate any potential for sequence numbers 
to get out of order.



More information about the asterisk-dev mailing list