code for voip's jitter buffer