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/include/openbsc/mgcp_internal.h | |
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/include/openbsc/mgcp_internal.h')
-rw-r--r-- | openbsc/include/openbsc/mgcp_internal.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 3bccb39df..0ec18cd5b 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -54,17 +54,22 @@ struct mgcp_rtp_state { uint32_t orig_ssrc; - uint16_t base_seq; int seq_offset; - int cycles; int32_t timestamp_offset; uint32_t packet_duration; - uint32_t jitter; - int32_t transit; struct mgcp_rtp_stream_state in_stream; struct mgcp_rtp_stream_state out_stream; + + /* jitter and packet loss calculation */ + int stats_initialized; + uint16_t stats_base_seq; + uint16_t stats_max_seq; + uint32_t stats_ssrc; + uint32_t stats_jitter; + int32_t stats_transit; + int stats_cycles; }; struct mgcp_rtp_codec { |