aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-27 19:32:53 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-27 19:33:06 +0200
commited3046339e141938cd0eb3a45e7ab91e518675ac (patch)
tree83c8e0e0f7ac7b3f883b44e71cd2ad2d8f1cc731 /src
parentd25dfce4f55b909526e76f878bd5445a5db319fe (diff)
mgcp: Print the extra settings from the config
Diffstat (limited to 'src')
-rw-r--r--src/mgcp/mgcp_vty.c2
-rw-r--r--src/mgcp_ss7.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mgcp/mgcp_vty.c b/src/mgcp/mgcp_vty.c
index afd3bd1..243dc16 100644
--- a/src/mgcp/mgcp_vty.c
+++ b/src/mgcp/mgcp_vty.c
@@ -49,6 +49,7 @@ static struct cmd_node mgcp_node = {
1,
};
+extern void mgcp_write_extra(struct vty *vty);
static int config_write_mgcp(struct vty *vty)
{
vty_out(vty, "mgcp%s", VTY_NEWLINE);
@@ -66,6 +67,7 @@ static int config_write_mgcp(struct vty *vty)
vty_out(vty, " sdp audio payload name %s%s", g_cfg->audio_name, VTY_NEWLINE);
vty_out(vty, " loop %u%s", !!g_cfg->audio_loop, VTY_NEWLINE);
vty_out(vty, " number endpoints %u%s", g_cfg->number_endpoints - 1, VTY_NEWLINE);
+ mgcp_write_extra(vty);
return CMD_SUCCESS;
}
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index e0e61e3..cbc3247 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -847,6 +847,12 @@ DEFUN(cfg_mgcp_realloc, cfg_mgcp_realloc_cmd,
return CMD_SUCCESS;
}
+void mgcp_write_extra(struct vty *vty)
+{
+ vty_out(vty, " force-realloc %d%s", g_cfg->force_realloc, VTY_NEWLINE);
+ vty_out(vty, " vad %s%s", s_vad_enabled ? "enabled" : "disabled", VTY_NEWLINE);
+}
+
static void mgcp_mgw_vty_init(void)
{
cmd_init(1);