pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/42047?usp=email )


Change subject: vty: Allow configuring xua timers in ASP mode
......................................................................

vty: Allow configuring xua timers in ASP mode

non-STP users of the API may also want to configure per-ASP timers, like
the Heartbeat timer.

Change-Id: I3801d10175f42c13e6f7994e1e4da8e7c99e8e16
---
M src/ss7_vty.c
M tests/vty/ss7_asp_test.vty
2 files changed, 5 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran 
refs/changes/47/42047/1

diff --git a/src/ss7_vty.c b/src/ss7_vty.c
index 6e603df..a61229f 100644
--- a/src/ss7_vty.c
+++ b/src/ss7_vty.c
@@ -1545,6 +1545,9 @@
        install_lib_element_ve(&show_cs7_route_lookup_cmd);

        vty_init_addr();
+
+       gen_cs7_timer_xua_cmd_strs(&cs7_timer_xua_cmd);
+       install_lib_element(L_CS7_NODE, &cs7_timer_xua_cmd);
 }

 void osmo_ss7_vty_init_asp(void *ctx)
@@ -1558,9 +1561,6 @@
        cs7_role = CS7_ROLE_SG;
        vty_init_shared(ctx);

-       gen_cs7_timer_xua_cmd_strs(&cs7_timer_xua_cmd);
-       install_lib_element(L_CS7_NODE, &cs7_timer_xua_cmd);
-
 #ifdef WITH_TCAP_LOADSHARING
        tcap_as_vty_init();
 #endif /* WITH_TCAP_LOADSHARING */
diff --git a/tests/vty/ss7_asp_test.vty b/tests/vty/ss7_asp_test.vty
index 50c2c46..2c27984 100644
--- a/tests/vty/ss7_asp_test.vty
+++ b/tests/vty/ss7_asp_test.vty
@@ -130,6 +130,7 @@
   no as NAME
   sccp-address NAME
   no sccp-address NAME
+  timer xua (T8) <1-999999>
   sccp-timer (conn_est|ias|iar|rel|repeat_rel|int|guard|reset|reassembly) 
<1-999999>
   sccp max-optional-data (<0-999999>|standard)

@@ -146,6 +147,7 @@
   no                 Negate a command or set its defaults
   as                 Configure an Application Server
   sccp-address       Create/Modify an SCCP addressbook entry
+  timer              Configure CS7 Instance default timer values
   sccp-timer         Configure SCCP timer values, see ITU-T Q.714
   sccp               Configure SCCP behavior


--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42047?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I3801d10175f42c13e6f7994e1e4da8e7c99e8e16
Gerrit-Change-Number: 42047
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to