aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_ss7.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-26 13:20:32 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-26 13:20:32 +0100
commit122d604838a270fba131abbb2395f35b694df348 (patch)
tree473d152d42cfbf014094045a0ac02b5e0b863f3b /src/mgcp_ss7.c
parent1cf3a8378060d1322d108ee9470ed1fe882b1f41 (diff)
mgcp: Turn the endpoint-offset into a proper config option
Diffstat (limited to 'src/mgcp_ss7.c')
-rw-r--r--src/mgcp_ss7.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index c1994a1..9feb2e5 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -977,7 +977,6 @@ DEFUN(endpoint_offset, endpoint_offset_cmd,
"Offset to the CIC map\n" "Value to set\n")
{
s_endp_offset = atoi(argv[0]);
- vty_out(vty, "New offset is %d.%s", s_endp_offset, VTY_NEWLINE);
return CMD_SUCCESS;
}
@@ -995,6 +994,7 @@ void mgcp_write_extra(struct vty *vty)
vty_out(vty, " downstream-adaptation-rate %d%s", s_dwnstr_adp_rate, VTY_NEWLINE);
vty_out(vty, " downstream-max-applied-gain %d%s", s_dwnstr_max_gain, VTY_NEWLINE);
vty_out(vty, " downstream-target-level %d%s", s_dwnstr_target_lvl, VTY_NEWLINE);
+ vty_out(vty, " endpoint-offset %d%s", s_endp_offset, VTY_NEWLINE);
}
static void mgcp_mgw_vty_init(void)
@@ -1016,8 +1016,7 @@ static void mgcp_mgw_vty_init(void)
install_element(MGCP_NODE, &cfg_mgcp_dwnstr_adp_cmd);
install_element(MGCP_NODE, &cfg_mgcp_dwnstr_max_gain_cmd);
install_element(MGCP_NODE, &cfg_mgcp_dwnstr_target_cmd);
-
- install_element(ENABLE_NODE, &endpoint_offset_cmd);
+ install_element(MGCP_NODE, &endpoint_offset_cmd);
}