aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/mgcp/mgcp_main.c')
-rw-r--r--openbsc/src/mgcp/mgcp_main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_main.c b/openbsc/src/mgcp/mgcp_main.c
index 35e7fb1d6..3ccd7343d 100644
--- a/openbsc/src/mgcp/mgcp_main.c
+++ b/openbsc/src/mgcp/mgcp_main.c
@@ -174,6 +174,13 @@ static int read_call_agent(struct bsc_fd *fd, unsigned int what)
return 0;
}
+extern int bsc_vty_go_parent(struct vty *vty);
+
+static struct vty_app_info vty_info = {
+ .name = "OpenBSC MGCP",
+ .version = PACKAGE_VERSION,
+ .go_parent_cb = bsc_vty_go_parent,
+};
int main(int argc, char** argv)
{
@@ -193,7 +200,8 @@ int main(int argc, char** argv)
if (!cfg)
return -1;
- vty_init("OpenBSC MGCP", PACKAGE_VERSION, openbsc_copyright);
+ vty_info.copyright = openbsc_copyright;
+ vty_init(&vty_info);
logging_vty_add_cmds();
mgcp_vty_init();