blob: 4bd391336f3bb1a46ff6687ee02ddd81fbc3c4f1 [file] [log] [blame]
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +02001== Running OsmoMSC
2
3The OsmoMSC executable (`osmo-msc`) offers the following command-line
4arguments:
5
6=== SYNOPSIS
7
8*osmo-msc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'DATABASE'] [-M 'SOCKETPATH'] [-C]
9
10=== OPTIONS
11
12*-h, --help*::
13 Print a short help message about the supported options
14*-V, --version*::
Harald Welte22d0ba82019-12-01 14:25:39 +010015 Print the compile-time version number of the program
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +020016*-d, --debug 'DBGMASK','DBGLEVELS'*::
17 Set the log subsystems and levels for logging to stderr. This
18 has mostly been superseded by VTY-based logging configuration,
19 see <<logging>> for further information.
20*-D, --daemonize*::
21 Fork the process as a daemon into background.
22*-c, --config-file 'CONFIGFILE'*::
23 Specify the file and path name of the configuration file to be
Daniel Willmann020a4852018-10-23 18:17:28 +020024 used. If none is specified, use `osmo-msc.cfg` in the current
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +020025 working directory.
26*-s, --disable-color*::
27 Disable colors for logging to stderr. This has mostly been
28 deprecated by VTY based logging configuration, see <<logging>>
29 for more information.
30*-T, --timestamp*::
31 Enable time-stamping of log messages to stderr. This has mostly
32 been deprecated by VTY based logging configuration, see
33 <<logging>> for more information.
34*-e, --log-level 'LOGLEVEL'*::
35 Set the global log level for logging to stderr. This has mostly
36 been deprecated by VTY based logging configuration, see
37 <<logging>> for more information.
38*-l, --database 'DATABASE'*::
39 Specify the file name of the SQLite3 database to use as SMS storage
40*-M, --mncc-sock-path*::
41 Enable the MNCC socket for an external MNCC handler. See
42 <<mncc>> for further information.
43*-m, --mncc-sock*::
44 Same as option -M (deprecated).
45*-C, --no-dbcounter*::
Alexander Couzensb10ec6a2019-04-27 17:36:47 +020046 Deprecated. DB statistics and counter has been removed.
Martin Hauke3f07dac2019-11-14 17:49:08 +010047 This option is only valid for compatibility and does nothing.
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +020048
49
50=== Multiple instances
51
Neels Hofmeyrfee9dd72017-09-25 16:37:34 +020052Running multiple instances of `osmo-msc` on the same computer is possible if all
53interfaces (VTY, CTRL) are separated using the appropriate configuration
54options. The IP based interfaces are binding to local host by default. In order
55to separate the processes, the user has to bind those services to specific but
56different IP addresses and/or ports.
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +020057
58The VTY and the Control interface can be bound to IP addresses from the loopback
59address range, for example:
60
61----
62line vty
63 bind 127.0.0.2
64ctrl
65 bind 127.0.0.2
66----
67
68If external SMPP is enabled, you may bind it to a different interface using:
69
70----
71smpp
72 local-tcp-ip 10.23.42.1 2775
73----
74
75More on SMPP configuration in <<smpp-config-global>>.
76
77The external MNCC handler is configured by the `--mncc-sock` commandline
78argument. Choose a different such socket path for each OsmoMSC instance running
79on the same file system. See more in <<mncc-external>>.
80
81For the following links, OsmoMSC acts as a client and does not listen/bind to a
82specific interface, and will hence not encounter conflicts for multiple instances
83running on the same interface:
84
85- The SCCP/M3UA links are established by OsmoMSC contacting an STP.
86- The GSUP link is established by OsmoMSC contacting an HLR.
Neels Hofmeyrd2331042020-03-18 01:08:46 +010087- The MGCP link is established by OsmoMSC contacting an MGW.
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +020088
89
90=== Configure primary links
91
92==== Configure SCCP/M3UA to accept _A_ and _IuCS_ links
93
94OsmoMSC will contact an STP instance to establish an SCCP/M3UA link. BSC and
95HNBGW will then reach the MSC via this link. By default, an STP instance is
96assumed to listen on the default M3UA port (2905) on the local host.
97
98Establishing an SCCP/M3UA link towards an STP instance not on the local host
99can be configured as follows:
100
101----
102cs7 instance 0
103 asp my-OsmoMSC 2905 0 m3ua
104 ! IP address of the remote STP:
105 remote-ip 10.23.24.1
106----
107
108Note that _A_ and _IuCS_ may use different SCCP instances, if so desired:
109
110----
111cs7 instance 0
112 asp my-OsmoMSC-A 2905 0 m3ua
113 remote-ip 10.23.42.1
114cs7 instance 1
115 asp my-OsmoMSC-Iu 2905 0 m3ua
116 remote-ip 10.23.42.2
117msc
118 cs7-instance-a 0
119 cs7-instance-iu 1
120----
121
122A full configuration needs an `asp` on an `as` -- an Application Server Process
123running on an Application Server -- as well as a local point code and routing
124configuration. The SCCP VTY automatically creates those parts that are missing,
125by assuming sane defaults. A complete configuration would look like this:
126
127----
128cs7 instance 0
129 point-code 0.23.1
130 asp my-OsmoMSC-A-Iu 2905 0 m3ua
131 remote-ip 127.0.0.1
132 as my-as-for-OsmoMSC-A-Iu m3ua
133 asp my-OsmoMSC-A-Iu
134 routing-key 0 0.23.1
135----
136
137==== Configure GSUP to reach the HLR
138
139OsmoMSC will assume a GSUP server (OsmoHLR) to run on the local host and the
140default GSUP port (4222). Contacting an HLR at a different IP address can be
141configured as follows:
142
143----
144hlr
145 ! IP address of the remote HLR:
146 remote-ip 10.23.42.1
147 ! default port is 4222, optionally configurable by:
148 remote-port 1234
149----