diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-06 20:04:42 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-09 17:22:33 +0200 |
commit | a5a59c9a05982efdcf2a87337d9dc763beb5c3bd (patch) | |
tree | 4f604c1c4ac397eaa4b7fc39d9e3f3424feda92f /openbsc/tests/mgcp/mgcp_test.c | |
parent | 2a7ab868e39760dc51321230d3a4fa2926bf21d7 (diff) |
mgcp: Move Annex A counting out of patch/count method
mgcp_patch_and_count has grown due supporting linearizing timestamps,
ssrc and other things for equipment like the ip.access nanoBTS. Fight
back and move the Annex A code into a dedicated method.
The result is updated as we now count after all the patching and for
the Annex A code no change in SSRC can be detected.
Diffstat (limited to 'openbsc/tests/mgcp/mgcp_test.c')
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c index a0575032c..e145c6ab9 100644 --- a/openbsc/tests/mgcp/mgcp_test.c +++ b/openbsc/tests/mgcp/mgcp_test.c @@ -699,10 +699,10 @@ static void test_packet_loss_calc(void) memset(&state, 0, sizeof(state)); memset(&rtp, 0, sizeof(rtp)); - state.initialized = 1; - state.base_seq = pl_test_dat[i].base_seq; - state.out_stream.last_seq = pl_test_dat[i].max_seq; - state.cycles = pl_test_dat[i].cycles; + state.stats_initialized = 1; + state.stats_base_seq = pl_test_dat[i].base_seq; + state.stats_max_seq = pl_test_dat[i].max_seq; + state.stats_cycles = pl_test_dat[i].cycles; rtp.packets = pl_test_dat[i].packets; mgcp_state_calc_loss(&state, &rtp, &expected, &loss); @@ -921,7 +921,7 @@ static void test_packet_error_detection(int patch_ssrc, int patch_ts) state.out_stream.err_ts_counter - last_out_ts_err_cnt); printf("Stats: Jitter = %u, Transit = %d\n", - mgcp_state_calc_jitter(&state), state.transit); + mgcp_state_calc_jitter(&state), state.stats_transit); last_in_ts_err_cnt = state.in_stream.err_ts_counter; last_out_ts_err_cnt = state.out_stream.err_ts_counter; |