From 952f752ffa848cfac4beba5ab641cb1cd81753b2 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 12 Sep 2012 11:38:37 +0200 Subject: mgcp: Count the received octets as of the MGCP specification Count the received octets. This is encouraged by the MGCP specification. Use a 32bit counter that is good enough for more than 12 hours of a EFR call. This limit is good enough for the current configuration. --- openbsc/src/libmgcp/mgcp_protocol.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src/libmgcp/mgcp_protocol.c') diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c index ac7dea19a..719a4c743 100644 --- a/openbsc/src/libmgcp/mgcp_protocol.c +++ b/openbsc/src/libmgcp/mgcp_protocol.c @@ -897,6 +897,7 @@ static void mgcp_rtp_end_reset(struct mgcp_rtp_end *end) } end->packets = 0; + end->octets = 0; memset(&end->addr, 0, sizeof(end->addr)); end->rtp_port = end->rtcp_port = 0; end->payload_type = -1; -- cgit v1.2.3