mgcp_protocol: fix loop that sends dummy RTP packets

The logic in mgcp_keepalive_timer_cb() only sends dummy packets for
endpoints 1-N, leaving out endpoint 0, this is not correct it should
include all endpoints (0-N).

Change-Id: I99a9b572eac26780bc1286a8dd63c4c5652fda4f
This commit is contained in:
Philipp Maier 2021-07-07 14:04:34 +02:00 committed by laforge
parent 6a5e5ac2d4
commit 4131a65c4d
1 changed files with 1 additions and 1 deletions

View File

@ -1494,7 +1494,7 @@ static void mgcp_keepalive_timer_cb(void *_trunk)
/* Send walk over all endpoints and send out dummy packets through
* every connection present on each endpoint */
for (i = 1; i < trunk->number_endpoints; ++i) {
for (i = 0; i < trunk->number_endpoints; ++i) {
struct mgcp_endpoint *endp = trunk->endpoints[i];
llist_for_each_entry(conn, &endp->conns, entry) {
if (conn->type == MGCP_CONN_TYPE_RTP &&