diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-06 21:01:26 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-09 17:22:33 +0200 |
commit | 05d481a42cb119c51773209528cc15d3d4584e79 (patch) | |
tree | 0235cde9bec83233e6f27b043d0b2287977471ea /openbsc/include | |
parent | a5a59c9a05982efdcf2a87337d9dc763beb5c3bd (diff) |
mgcp: Do not detect the initial package as a wrap around
The Annex A code has a probation period but we don't have it. When
starting with seq_no==0 do not assume that the sequence numbers
have wrapped. Do it by moving the entire checking code into the
else.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/mgcp_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 0ec18cd5b..434b46c1f 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -248,6 +248,11 @@ void mgcp_get_net_downlink_format_default(struct mgcp_endpoint *endp, const char**subtype_name, const char**fmtp_extra); +/* internal RTP Annex A counting */ +void mgcp_rtp_annex_count(struct mgcp_endpoint *endp, struct mgcp_rtp_state *state, + const uint16_t seq, const int32_t transit, + const uint32_t ssrc); + enum { MGCP_DEST_NET = 0, MGCP_DEST_BTS, |