osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-mgw/+/14601
Change subject: vty: add "no conn-timeout"
......................................................................
vty: add "no conn-timeout"
VTY command to disable conn-timeout again, after it has been enabled.
"conn-timeout" was introduced in [1].
[1] Change-Id I18886052e090466f73829133c24f011806cc1fe0.
Change-Id: I7dee7dafaaf4bb93fd692ea06b52b9e012beac6d
---
M src/libosmo-mgcp/mgcp_vty.c
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/01/14601/1
diff --git a/src/libosmo-mgcp/mgcp_vty.c b/src/libosmo-mgcp/mgcp_vty.c
index 06aa7c8..944d936 100644
--- a/src/libosmo-mgcp/mgcp_vty.c
+++ b/src/libosmo-mgcp/mgcp_vty.c
@@ -1389,6 +1389,15 @@
return CMD_SUCCESS;
}
+DEFUN(cfg_mgcp_no_conn_timeout,
+ cfg_mgcp_no_conn_timeout_cmd,
+ "no conn-timeout",
+ NO_STR "Disable inactive connections (CIs) timeout\n")
+{
+ g_cfg->conn_timeout = 0;
+ return CMD_SUCCESS;
+}
+
int mgcp_vty_init(void)
{
install_element_ve(&show_mgcp_cmd);
@@ -1456,6 +1465,7 @@
install_element(MGCP_NODE, &cfg_mgcp_no_allow_transcoding_cmd);
install_element(MGCP_NODE, &cfg_mgcp_domain_cmd);
install_element(MGCP_NODE, &cfg_mgcp_conn_timeout_cmd);
+ install_element(MGCP_NODE, &cfg_mgcp_no_conn_timeout_cmd);
install_element(MGCP_NODE, &cfg_mgcp_trunk_cmd);
install_node(&trunk_node, config_write_trunk);
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/14601
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I7dee7dafaaf4bb93fd692ea06b52b9e012beac6d
Gerrit-Change-Number: 14601
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange