[Asterisk-Dev] ast_frame

steve at daviesfam.org steve at daviesfam.org
Mon Jun 13 05:19:13 MST 2005



On Fri, 10 Jun 2005, Ben Kramer wrote:

> Now onto the subject title! I noticed in the ast_frame structure that
> there is a delivery timeval struct. I cant determine if this is a time
> stamp or not. Could I use this to determine if the audio frames I have
> received are old, and are safe to drop ?

Some channels stick the "arrival time" of the frame in there as the frame 
arrives.  chan_iax, for one, calculates an arrival time that is the 
theoretical arrival time that the frame SHOULD have had in the absence of 
network delay.

Other times it'll be empty.

Steve




More information about the asterisk-dev mailing list