VTY: add osmo_tdef introspection and configuration commands
This change introduces several new VTY commands letting the user
a possibility to introspect and reconfigure some of the existing
timers implemented using libosmocore's osmo_tdef API.
At the moment this covers the following timers:
- MGW specific timers:
- X1 - MGCP response timeout,
- X2 - RTP stream establishing timeout,
- RAN specific timers (same names for GERAN and UTRAN):
- X1 - Authentication and Ciphering timeout,
- X2 - RAN connection release sanity timeout,
- X3 - Handover procedure timeout.
The following commands are introduced:
- 'enable' node:
- show timer [(mgw|mncc|sccp|geran|utran|sgs)] [TNNNN]
- 'config-msc' node:
- timer [(mgw|mncc|sccp|geran|utran|sgs)] [TNNNN] [(<0-2147483647>|default)]
Both MNCC and SCCP related timer definitions are empty at the
moment. Achieved by using osmo_tdef_group API of libosmovty.
Change-Id: I6024c104b6101666c8aa1108a043910eb75db9a5
Related: OS#4368
diff --git a/doc/manuals/vty/msc_vty_reference.xml b/doc/manuals/vty/msc_vty_reference.xml
index 7fba1a9..36cbf77 100644
--- a/doc/manuals/vty/msc_vty_reference.xml
+++ b/doc/manuals/vty/msc_vty_reference.xml
@@ -576,6 +576,19 @@
<param name='<0-65535>' doc='CI' />
</params>
</command>
+ <command id='show timer [(mgw|mncc|sccp|geran|utran|sgs)] [TNNNN]'>
+ <params>
+ <param name='show' doc='Show running system information' />
+ <param name='timer' doc='Show timers' />
+ <param name='[mgw]' doc='MGW (Media Gateway) interface' />
+ <param name='[mncc]' doc='MNCC (Mobile Network Call Control) interface' />
+ <param name='[sccp]' doc='SCCP (Signalling Connection Control Part)' />
+ <param name='[geran]' doc='GERAN (GSM EDGE Radio Access Network)' />
+ <param name='[utran]' doc='UTRAN (UMTS Terrestrial Radio Access Network)' />
+ <param name='[sgs]' doc='SGs interface towards MME' />
+ <param name='[TNNNN]' doc='T- or X-timer-number -- 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234'; Osmocom-specific timer number of the format: 'X1234' or 'x1234'.' />
+ </params>
+ </command>
<command id='show fsm NAME'>
<params>
<param name='show' doc='Show running system information' />
@@ -1392,6 +1405,19 @@
<param name='<0-65535>' doc='CI' />
</params>
</command>
+ <command id='show timer [(mgw|mncc|sccp|geran|utran|sgs)] [TNNNN]'>
+ <params>
+ <param name='show' doc='Show running system information' />
+ <param name='timer' doc='Show timers' />
+ <param name='[mgw]' doc='MGW (Media Gateway) interface' />
+ <param name='[mncc]' doc='MNCC (Mobile Network Call Control) interface' />
+ <param name='[sccp]' doc='SCCP (Signalling Connection Control Part)' />
+ <param name='[geran]' doc='GERAN (GSM EDGE Radio Access Network)' />
+ <param name='[utran]' doc='UTRAN (UMTS Terrestrial Radio Access Network)' />
+ <param name='[sgs]' doc='SGs interface towards MME' />
+ <param name='[TNNNN]' doc='T- or X-timer-number -- 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234'; Osmocom-specific timer number of the format: 'X1234' or 'x1234'.' />
+ </params>
+ </command>
<command id='show fsm NAME'>
<params>
<param name='show' doc='Show running system information' />
@@ -2910,6 +2936,20 @@
<param name='RAN_PC_OR_MSC_IPA_NAME' doc='Point code or MSC IPA name value' />
</params>
</command>
+ <command id='timer [(mgw|mncc|sccp|geran|utran|sgs)] [TNNNN] [(<0-2147483647>|default)]'>
+ <params>
+ <param name='timer' doc='Configure or show timers' />
+ <param name='[mgw]' doc='MGW (Media Gateway) interface' />
+ <param name='[mncc]' doc='MNCC (Mobile Network Call Control) interface' />
+ <param name='[sccp]' doc='SCCP (Signalling Connection Control Part)' />
+ <param name='[geran]' doc='GERAN (GSM EDGE Radio Access Network)' />
+ <param name='[utran]' doc='UTRAN (UMTS Terrestrial Radio Access Network)' />
+ <param name='[sgs]' doc='SGs interface towards MME' />
+ <param name='[TNNNN]' doc='T- or X-timer-number -- 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234'; Osmocom-specific timer number of the format: 'X1234' or 'x1234'.' />
+ <param name='[<0-2147483647>]' doc='New timer value' />
+ <param name='[default]' doc='Set to default timer value' />
+ </params>
+ </command>
<command id='mgw local-ip A.B.C.D'>
<params>
<param name='mgw' doc='Configure MGCP connection to Media Gateway' />