diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-07 09:37:17 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-07 09:37:17 +0200 |
commit | cb1937a4c53c723c8757117d074c3be29936b872 (patch) | |
tree | ce1683ce5cb18312b2dc55a56849b6c362a27657 /openbsc/src/mgcp/mgcp_network.c | |
parent | 3cfd5d6a022da3e33cec282bed1a3b653743e488 (diff) |
[mgcp] Count incoming RTP packets from the BTS and remote
Diffstat (limited to 'openbsc/src/mgcp/mgcp_network.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_network.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c index 6cc6e9d70..95325e948 100644 --- a/openbsc/src/mgcp/mgcp_network.c +++ b/openbsc/src/mgcp/mgcp_network.c @@ -164,6 +164,12 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what) } } + /* do this before the loop handling */ + if (dest == DEST_NETWORK) + ++endp->in_bts; + else + ++endp->in_remote; + /* dispatch */ if (cfg->audio_loop) dest = !dest; |