9
0
Fork 0

mgcp: Skip blocked endpoints in the show mgcp command

This commit is contained in:
Holger Hans Peter Freyther 2011-09-19 23:46:55 +02:00
parent 2facdb7943
commit 7158822985
1 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,11 @@ static void dump_trunk(struct vty *vty, struct mgcp_trunk_config *cfg)
for (i = 1; i < cfg->number_endpoints; ++i) {
struct mgcp_endpoint *endp = &cfg->endpoints[i];
/* skip if it is blocked */
if (endp->blocked)
continue;
vty_out(vty,
" Endpoint 0x%.2x: CI: %d net: %u/%u bts: %u/%u on %s "
"traffic received bts: %u/%u remote: %u/%u transcoder: %u/%u%s",