aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);