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*:: |
| 15 | Print the compile-time version number of the OsmoBTS program |
| 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 |
| 24 | used. If none is specified, use `openbsc.cfg` in the current |
| 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*:: |
| 46 | Disable the regular periodic synchronization of statistics |
| 47 | counters to the database. |
| 48 | |
| 49 | |
| 50 | === Multiple instances |
| 51 | |
| 52 | Running multiple instances of `osmo-msc` is possible if all interfaces (VTY, |
| 53 | CTRL) are separated using the appropriate configuration options. The IP based |
| 54 | interfaces are binding to local host by default. In order to separate the |
| 55 | processes, the user has to bind those services to specific but different IP |
| 56 | addresses. |
| 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 | |
| 77 | The external MNCC handler is configured by the `--mncc-sock` commandline |
| 78 | argument. Choose a different such socket path for each OsmoMSC instance running |
| 79 | on the same file system. See more in <<mncc-external>>. |
| 80 | |
| 81 | For the following links, OsmoMSC acts as a client and does not listen/bind to a |
| 82 | specific interface, and will hence not encounter conflicts for multiple instances |
| 83 | running 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. |
| 87 | |
| 88 | |
| 89 | === Configure primary links |
| 90 | |
| 91 | ==== Configure SCCP/M3UA to accept _A_ and _IuCS_ links |
| 92 | |
| 93 | OsmoMSC will contact an STP instance to establish an SCCP/M3UA link. BSC and |
| 94 | HNBGW will then reach the MSC via this link. By default, an STP instance is |
| 95 | assumed to listen on the default M3UA port (2905) on the local host. |
| 96 | |
| 97 | Establishing an SCCP/M3UA link towards an STP instance not on the local host |
| 98 | can be configured as follows: |
| 99 | |
| 100 | ---- |
| 101 | cs7 instance 0 |
| 102 | asp my-OsmoMSC 2905 0 m3ua |
| 103 | ! IP address of the remote STP: |
| 104 | remote-ip 10.23.24.1 |
| 105 | ---- |
| 106 | |
| 107 | Note that _A_ and _IuCS_ may use different SCCP instances, if so desired: |
| 108 | |
| 109 | ---- |
| 110 | cs7 instance 0 |
| 111 | asp my-OsmoMSC-A 2905 0 m3ua |
| 112 | remote-ip 10.23.42.1 |
| 113 | cs7 instance 1 |
| 114 | asp my-OsmoMSC-Iu 2905 0 m3ua |
| 115 | remote-ip 10.23.42.2 |
| 116 | msc |
| 117 | cs7-instance-a 0 |
| 118 | cs7-instance-iu 1 |
| 119 | ---- |
| 120 | |
| 121 | A full configuration needs an `asp` on an `as` -- an Application Server Process |
| 122 | running on an Application Server -- as well as a local point code and routing |
| 123 | configuration. The SCCP VTY automatically creates those parts that are missing, |
| 124 | by assuming sane defaults. A complete configuration would look like this: |
| 125 | |
| 126 | ---- |
| 127 | cs7 instance 0 |
| 128 | point-code 0.23.1 |
| 129 | asp my-OsmoMSC-A-Iu 2905 0 m3ua |
| 130 | remote-ip 127.0.0.1 |
| 131 | as my-as-for-OsmoMSC-A-Iu m3ua |
| 132 | asp my-OsmoMSC-A-Iu |
| 133 | routing-key 0 0.23.1 |
| 134 | ---- |
| 135 | |
| 136 | ==== Configure GSUP to reach the HLR |
| 137 | |
| 138 | OsmoMSC will assume a GSUP server (OsmoHLR) to run on the local host and the |
| 139 | default GSUP port (4222). Contacting an HLR at a different IP address can be |
| 140 | configured as follows: |
| 141 | |
| 142 | ---- |
| 143 | hlr |
| 144 | ! IP address of the remote HLR: |
| 145 | remote-ip 10.23.42.1 |
| 146 | ! default port is 4222, optionally configurable by: |
| 147 | remote-port 1234 |
| 148 | ---- |