Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 1 | == Running OsmoMSC |
| 2 | |
| 3 | The OsmoMSC executable (`osmo-msc`) offers the following command-line |
| 4 | arguments: |
| 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 Welte | 22d0ba8 | 2019-12-01 14:25:39 +0100 | [diff] [blame] | 15 | Print the compile-time version number of the program |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 16 | *-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 Willmann | 020a485 | 2018-10-23 18:17:28 +0200 | [diff] [blame] | 24 | used. If none is specified, use `osmo-msc.cfg` in the current |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 25 | 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 Couzens | b10ec6a | 2019-04-27 17:36:47 +0200 | [diff] [blame] | 46 | Deprecated. DB statistics and counter has been removed. |
Martin Hauke | 3f07dac | 2019-11-14 17:49:08 +0100 | [diff] [blame] | 47 | This option is only valid for compatibility and does nothing. |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 48 | |
| 49 | |
| 50 | === Multiple instances |
| 51 | |
Neels Hofmeyr | fee9dd7 | 2017-09-25 16:37:34 +0200 | [diff] [blame] | 52 | Running multiple instances of `osmo-msc` on the same computer is possible if all |
| 53 | interfaces (VTY, CTRL) are separated using the appropriate configuration |
| 54 | options. The IP based interfaces are binding to local host by default. In order |
| 55 | to separate the processes, the user has to bind those services to specific but |
| 56 | different IP addresses and/or ports. |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 57 | |
| 58 | The VTY and the Control interface can be bound to IP addresses from the loopback |
| 59 | address range, for example: |
| 60 | |
| 61 | ---- |
| 62 | line vty |
| 63 | bind 127.0.0.2 |
| 64 | ctrl |
| 65 | bind 127.0.0.2 |
| 66 | ---- |
| 67 | |
| 68 | If external SMPP is enabled, you may bind it to a different interface using: |
| 69 | |
| 70 | ---- |
| 71 | smpp |
| 72 | local-tcp-ip 10.23.42.1 2775 |
| 73 | ---- |
| 74 | |
| 75 | More on SMPP configuration in <<smpp-config-global>>. |
| 76 | |
Neels Hofmeyr | 92b0246 | 2020-05-26 23:13:53 +0200 | [diff] [blame] | 77 | The external MNCC handler is a UNIX domain socket that is created when external MNCC handling is configured. A separate |
| 78 | path must be used per osmo-msc instance: |
| 79 | |
| 80 | ---- |
| 81 | msc |
| 82 | mncc external /tmp/mncc_socket |
| 83 | ---- |
| 84 | |
| 85 | More on MNCC in <<mncc-external>>. |
| 86 | |
| 87 | The SGs interface by default listens on 0.0.0.0:29118. Configure a different IP and/or port for each osmo-msc instance. |
| 88 | You may also want to configure different VLR names: |
| 89 | |
| 90 | ---- |
| 91 | sgs |
| 92 | local-ip 127.0.0.1 |
| 93 | local-port 29118 |
| 94 | vlr-name vlr.example.net |
| 95 | ---- |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 96 | |
| 97 | For the following links, OsmoMSC acts as a client and does not listen/bind to a |
| 98 | specific interface, and will hence not encounter conflicts for multiple instances |
| 99 | running on the same interface: |
| 100 | |
| 101 | - The SCCP/M3UA links are established by OsmoMSC contacting an STP. |
| 102 | - The GSUP link is established by OsmoMSC contacting an HLR. |
Neels Hofmeyr | d233104 | 2020-03-18 01:08:46 +0100 | [diff] [blame] | 103 | - The MGCP link is established by OsmoMSC contacting an MGW. |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 104 | |
| 105 | |
| 106 | === Configure primary links |
| 107 | |
| 108 | ==== Configure SCCP/M3UA to accept _A_ and _IuCS_ links |
| 109 | |
Neels Hofmeyr | 346a3b9 | 2020-03-18 01:10:42 +0100 | [diff] [blame] | 110 | OsmoMSC acts as client to contact an STP instance and establish an SCCP/M3UA |
| 111 | link. |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 112 | |
Neels Hofmeyr | 346a3b9 | 2020-03-18 01:10:42 +0100 | [diff] [blame] | 113 | An example configuration of OsmoMSC's SCCP link: |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 114 | |
| 115 | ---- |
| 116 | cs7 instance 0 |
Neels Hofmeyr | 346a3b9 | 2020-03-18 01:10:42 +0100 | [diff] [blame] | 117 | point-code 0.23.1 |
| 118 | asp asp-clnt-OsmoMSC-A-Iu 2905 0 m3ua |
| 119 | remote-ip 127.0.0.1 |
| 120 | sctp-role client |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 121 | ---- |
| 122 | |
Neels Hofmeyr | 346a3b9 | 2020-03-18 01:10:42 +0100 | [diff] [blame] | 123 | This configuration is explained in detail in <<cs7_config>>. |
| 124 | |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 125 | Note that _A_ and _IuCS_ may use different SCCP instances, if so desired: |
| 126 | |
| 127 | ---- |
| 128 | cs7 instance 0 |
| 129 | asp my-OsmoMSC-A 2905 0 m3ua |
| 130 | remote-ip 10.23.42.1 |
| 131 | cs7 instance 1 |
| 132 | asp my-OsmoMSC-Iu 2905 0 m3ua |
| 133 | remote-ip 10.23.42.2 |
| 134 | msc |
| 135 | cs7-instance-a 0 |
| 136 | cs7-instance-iu 1 |
| 137 | ---- |
| 138 | |
Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame] | 139 | ==== Configure GSUP to reach the HLR |
| 140 | |
| 141 | OsmoMSC will assume a GSUP server (OsmoHLR) to run on the local host and the |
| 142 | default GSUP port (4222). Contacting an HLR at a different IP address can be |
| 143 | configured as follows: |
| 144 | |
| 145 | ---- |
| 146 | hlr |
| 147 | ! IP address of the remote HLR: |
| 148 | remote-ip 10.23.42.1 |
| 149 | ! default port is 4222, optionally configurable by: |
| 150 | remote-port 1234 |
| 151 | ---- |