Change in ...osmo-mgw[master]: vty: add "no conn-timeout"

osmith gerrit-no-reply at lists.osmocom.org
Wed Jun 26 12:14:53 UTC 2019


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 <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190626/dac04ec8/attachment.html>


More information about the gerrit-log mailing list