aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-09-12 11:38:37 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-12 10:42:05 +0100
commit952f752ffa848cfac4beba5ab641cb1cd81753b2 (patch)
tree7be3b8acb2523a0e751ad994a372be0996895987 /openbsc/src/libmgcp/mgcp_protocol.c
parent2a60a11c48e8677fc6c75174a5a0d4db1da97d0a (diff)
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.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c1
1 files changed, 1 insertions, 0 deletions
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;