dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/27608 )


Change subject: mgcp_network: log RTP/RTCP reception failures
......................................................................

mgcp_network: log RTP/RTCP reception failures

When the reception of an RTP or RTCP packet fails on the very last step,
no error is logged.

Change-Id: Ic0e60fe2fb9d96b8ae18bb862b5715359a10e849
---
M src/libosmo-mgcp/mgcp_network.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/08/27608/1

diff --git a/src/libosmo-mgcp/mgcp_network.c b/src/libosmo-mgcp/mgcp_network.c
index c66a168..6f3b5b8 100644
--- a/src/libosmo-mgcp/mgcp_network.c
+++ b/src/libosmo-mgcp/mgcp_network.c
@@ -1512,6 +1512,10 @@
        forward_data_tap(fd->fd, &conn_src->tap_in, msg);

        rc = rx_rtp(msg, proto);
+       if (rc < 0) {
+               LOG_CONN_RTP(conn_src, LOGL_ERROR, "rx %s packet failed\n",
+                            proto == MGCP_PROTO_RTP ? "RTP" : "RTCP");
+       }

 out:
        msgb_free(msg);

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/27608
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ic0e60fe2fb9d96b8ae18bb862b5715359a10e849
Gerrit-Change-Number: 27608
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-MessageType: newchange

Reply via email to