aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-09 14:48:05 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-09 14:48:05 +0200
commita41c992c1262d709786e5d3bbc9e5aa8dd4eb037 (patch)
tree882a1c5f5e590bdf239a420cd4c98b6f59f8b049
parente948224d44bfc2f39feb231d8dee066399ef8e56 (diff)
m3ua: Make the link up timeout configurable on the system
Make it possible to set it. 10s seems to be a very reasonable timeout. It should not really take much longer than that.
-rw-r--r--src/vty_interface.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index 12288e1..de250d8 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -204,6 +204,8 @@ static void write_link(struct vty *vty, struct mtp_link *link)
vty_out(vty, " m3ua-client traffic-mode %s%s",
m3ua_traffic_mode_name(m3ua_client->traffic_mode),
VTY_NEWLINE);
+ vty_out(vty, " m3ua-client link-up-timeout %d%s",
+ m3ua_client->aspac_ack_timeout, VTY_NEWLINE);
break;
case SS7_LTYPE_NONE:
break;
@@ -909,6 +911,23 @@ DEFUN(cfg_link_m3ua_client_traffic_mode, cfg_link_m3ua_client_traffic_mode_cmd,
return CMD_SUCCESS;
}
+DEFUN(cfg_link_m3ua_client_lnk_up_tout, cfg_link_m3ua_client_lnk_up_tout_cmd,
+ "m3ua-client link-up-timeout <0-100000>",
+ "M3UA Client\n" "ASPAC_ACK timeout\n" "Timeout in seconds\n")
+{
+ struct mtp_link *link = vty->index;
+ struct mtp_m3ua_client_link *m3ua_link;
+
+ if (link->type != SS7_LTYPE_M3UA_CLIENT) {
+ vty_out(vty, "%%This only applies to M3UA client links.%s", VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
+ m3ua_link = link->data;
+ m3ua_link->aspac_ack_timeout = atoi(argv[0]);
+ return CMD_SUCCESS;
+}
+
DEFUN(cfg_ss7_msc, cfg_ss7_msc_cmd,
"msc <0-100>",
"MSC Connection\n" "MSC Number\n")
@@ -1354,6 +1373,7 @@ void cell_vty_init(void)
install_element(LINK_NODE, &cfg_link_m3ua_client_link_index_cmd);
install_element(LINK_NODE, &cfg_link_m3ua_client_routing_ctx_cmd);
install_element(LINK_NODE, &cfg_link_m3ua_client_traffic_mode_cmd);
+ install_element(LINK_NODE, &cfg_link_m3ua_client_lnk_up_tout_cmd);
install_element(SS7_NODE, &cfg_ss7_msc_cmd);
install_node(&msc_node, config_write_msc);