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 22:51:59 +0200 |
commit | b4b135efbf17f81a3faccb488ca35a5086adc618 (patch) | |
tree | eed0e306eba0aaf23e26fe5ebfdbd381b14f6e8e /openbsc/src/mgcp/mgcp_network.c | |
parent | b4c7b274a1365e896affc1e1cb9a5075e3100e2a (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 9e18937d1..a5a2481fe 100644 --- a/openbsc/src/mgcp/mgcp_network.c +++ b/openbsc/src/mgcp/mgcp_network.c @@ -162,6 +162,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; |