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.
This commit is contained in:
parent
e948224d44
commit
a41c992c12
|
@ -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);
|
||||
|
|
Reference in New Issue