SS/USSD: implement basic USSE routing configuration for VTY
This change introduces basic Unstructured Supplementary Services
processing Entity (USSE) configuration for VTY by analogy with
ESME and SMPP.
The configuration is done by allocating USSE nodes, so each one
is bound to a particular GSUP-connection, and represents a single
processing entity. Then, one or more USSD-code matching patterns
(e.g. code, prefix, regexp) can be assigned to a particular USSE
node, so all matched USSD-requests will be handled by this node.
Among all other USSE nodes, which are basically External USSEs,
there is a special one called IUSSE - internal USSD handler.
It can be optionally configured to handle and answer simple
requests, like *#100#.
Also, it's possible to set the default USSE, which will handle
all USSD-requests unmatched by other USSEs. Otherwise,
unmatched requests are being rejected.
Change-Id: I3cfd7cd401ea32b7e92f1124d129099d9f7dc6e6
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty
index 21809c8..6969626 100644
--- a/tests/test_nodes.vty
+++ b/tests/test_nodes.vty
@@ -70,6 +70,10 @@
exit
end
gsup
+ usse (internal|NAME)
+ no usse (internal|NAME)
+ usse-default (internal|NAME)
+ no usse-default
OsmoHLR(config-hlr)# gsup
OsmoHLR(config-hlr-gsup)# list
@@ -85,6 +89,39 @@
bind ip A.B.C.D
OsmoHLR(config-hlr-gsup)# exit
+OsmoHLR(config-hlr)# usse test
+OsmoHLR(config-hlr-eusse)# list
+ help
+ list
+ write terminal
+ write file
+ write memory
+ write
+ show running-config
+ exit
+ end
+ pattern (code|regexp|prefix) PATTERN
+ no pattern (code|regexp|prefix) PATTERN
+
+OsmoHLR(config-hlr-eusse)# exit
+OsmoHLR(config-hlr)# usse internal
+OsmoHLR(config-hlr-iusse)# list
+ help
+ list
+ write terminal
+ write file
+ write memory
+ write
+ show running-config
+ exit
+ end
+ pattern (code|regexp|prefix) PATTERN response .RESPONSE
+ no pattern (code|regexp|prefix) PATTERN
+
+OsmoHLR(config-hlr-iusse)# exit
+OsmoHLR(config-hlr)# no usse test
+OsmoHLR(config-hlr)# no usse internal
+
OsmoHLR(config-hlr)# exit
OsmoHLR(config)# exit
OsmoHLR# configure terminal
@@ -119,4 +156,5 @@
hlr
gsup
bind ip 127.0.0.1
+ no usse-default
end