aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/common_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-28 12:11:02 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-28 19:40:53 +0100
commit0e939fec4237483df4c51fb58c87f35b3115db50 (patch)
tree2d1290ccced656d0e9a7248998bcf14f2897be5e /openbsc/src/common_vty.c
parentab3bb9d444dddcd3754e4cc3641c4ebfdcda5f38 (diff)
mgcp: Introduce a trunk config for multiple trunks.
A trunk will always have 32 endpoints to be used and we allow a sparse allocation of endpoints.
Diffstat (limited to 'openbsc/src/common_vty.c')
-rw-r--r--openbsc/src/common_vty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/common_vty.c b/openbsc/src/common_vty.c
index 25ab3c0a8..84375a22d 100644
--- a/openbsc/src/common_vty.c
+++ b/openbsc/src/common_vty.c
@@ -86,6 +86,9 @@ enum node_type bsc_vty_go_parent(struct vty *vty)
case MSC_NODE:
vty->node = GSMNET_NODE;
break;
+ case TRUNK_NODE:
+ vty->node = MGCP_NODE;
+ break;
default:
vty->node = CONFIG_NODE;
}
@@ -154,6 +157,10 @@ gDEFUN(ournode_exit,
case MSC_NODE:
vty->node = GSMNET_NODE;
break;
+ case TRUNK_NODE:
+ vty->node = MGCP_NODE;
+ vty->index = NULL;
+ break;
default:
break;
}
@@ -175,6 +182,7 @@ gDEFUN(ournode_end,
case TRX_NODE:
case TS_NODE:
case MGCP_NODE:
+ case TRUNK_NODE:
case GBPROXY_NODE:
case SGSN_NODE:
case NS_NODE: