Summary:ASTERISK-04142: [patch] add cli jitter test commands
Reporter:grolloj (grolloj)Labels:
Date Opened:2005-05-11 15:07:12Date Closed:2011-06-07 14:04:42
Versions:Frequency of
Environment:Attachments:( 0) chan_iax2_jb_tests.2.patch.txt
Description:The attached patch adds the cli commands:

iax2 test late <ms>
iax2 test jitter <ms> <pct>
iax2 test resync <ms>

These commands and related processing will only be available when chan_iax2 is compiled with IAXTESTS defined.

These commands are for testing the performance of the jitterbuffer under various conditions. 'iax2 test late' simulates the late (or early if negative) arrival of a single packet. 'iax2 test jitter' will add -ms to ms millis of jitter to pct of incoming packets. And 'iax2 test resync' offsets all frame timestamps by ms to simulate the effect of a resync in timestamps.


Disclaimer on file
Comments:By: grolloj (grolloj) 2005-05-17 15:24:35

I've updated this patch to fix a problem with the timestamp resyncing test. The test resync command in the original patch produced erroneous timestamps when the 16-bit mini voice frame timestamp rolled over.

For full frames, the offset can simply be added. For mini voice and mini video frames, the offset is added to the 16 (or 15) bit timestamp before being combined with last so that the test correctly simulates the short timestamps rolling over. unwrap_timestamp will then push the timestamp forward, as appropriate.

By: Mark Spencer (markster) 2005-05-18 19:38:28

Added to CVS head.

By: Digium Subversion (svnbot) 2008-01-15 15:35:18.000-0600

Repository: asterisk
Revision: 5716

U   trunk/channels/chan_iax2.c

r5716 | markster | 2008-01-15 15:35:18 -0600 (Tue, 15 Jan 2008) | 2 lines

Add IAX2 testing code (bug ASTERISK-4142)