The timestamp gets calculated wrong(due to a sign problem) resulting in all
sorts of audio problems on the other side(when dealing with jitter buffer
historic timestamps and you know the story).
There is a case when the frame (coming from a SIP carrier) gets calculated
wrong in calc_timestamp
/* If we have a time that the frame arrived, always use it to make our
timestamp */
if (delivery && !ast_tvzero(*delivery)) {
ms = ast_tvdiff_ms(*delivery, p->offset);
This ms doesn't get checked for < 0, resulting in the huge number returned
(calc_timestamp returns ms as an unsigned int).
I guess just checking for < 0 would fix this particular situation, but I
think it could be related to an underlying problem in the timestamp
prediction for non-audio frames(when offset gets calculated).
Let me know what do you think, and whether or not I should open a bug
@bugs.digium for this issue.
Thanks,
Guille
PD: This is the callstack for the debugging session
The timestamp gets calculated wrong(due to a sign problem) resulting in all
sorts of audio problems on the other side(when dealing with jitter buffer
historic timestamps and you know the story).
There is a case when the frame (coming from a SIP carrier) gets calculated
wrong in calc_timestamp
/* If we have a time that the frame arrived, always use it to make our
timestamp */
if (delivery && !ast_tvzero(*delivery)) {
ms = ast_tvdiff_ms(*delivery, p->offset);
This ms doesn't get checked for < 0, resulting in the huge number returned
(calc_timestamp returns ms as an unsigned int).
I guess just checking for < 0 would fix this particular situation, but I
think it could be related to an underlying problem in the timestamp
prediction for non-audio frames(when offset gets calculated).
Let me know what do you think, and whether or not I should open a bug
@bugs.digium for this issue.
Thanks,
Guille
PD: This is the callstack for the debugging session
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum