blob: 9348f6950060a5e20561e0ac2363a9c9e6e5d0fd [file] [log] [blame]
Harald Welte75c0e082016-02-20 10:56:10 +01001== Running OsmoBSC
2
3The OsmoBSC executable (`osmo-bsc`) offers the following command-line
4arguments:
5
Neels Hofmeyr4c297e72016-10-17 06:12:13 +02006=== SYNOPSIS
Harald Welte75c0e082016-02-20 10:56:10 +01007
8*osmo-bsc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'IP'] [-r 'RFCTL']
9
Neels Hofmeyr4c297e72016-10-17 06:12:13 +020010=== OPTIONS
Harald Welte75c0e082016-02-20 10:56:10 +010011
12*-h, --help*::
13 Print a short help message about the supported options
14*-V, --version*::
Harald Welte16c89102019-12-01 14:23:34 +010015 Print the compile-time version number of the program
Harald Welte75c0e082016-02-20 10:56:10 +010016*-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 Willmann53973262018-10-23 18:17:28 +020024 used. If none is specified, use `osmo-bsc.cfg` in the current
Harald Welte75c0e082016-02-20 10:56:10 +010025 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 configu- ration, 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, --local='IP'*::
39 Specify the local IP address of the OsmoBSC-MGCP
40*-r, --rf-ctl 'RFCTL'*::
41 Offer a Unix domain socket for RF control at the path/filename
42 'RFCTL' in the file system.
Neels Hofmeyr21a2c812020-03-18 01:01:39 +010043
44
45=== Multiple instances
46
47Running multiple instances of `osmo-bsc` on the same host is possible if all
48interfaces (VTY, CTRL) are separated using the appropriate configuration
49options. The IP based interfaces are binding to local host by default. In order
50to separate the processes, the user has to bind those services to specific but
51different IP addresses and/or ports.
52
53The VTY and the Control interface can be bound to IP addresses from the loopback
54address range, for example:
55
56----
57line vty
58 bind 127.0.0.2
59ctrl
60 bind 127.0.0.2
61----
62
63For the following links, OsmoBSC acts as a client and does not listen/bind to a
64specific interface, and will hence not encounter conflicts for multiple instances
65running on the same interface:
66
67- The SCCP/M3UA links are established by OsmoBSC contacting an STP.
68- The MGCP link is established by OsmoMSC contacting an MGW.
69
70To run multiple OsmoBSC instances on the same A-interface (SCCP/M3UA), each BSC
71has to configure a distinct point-code.
72
73
74=== Configure primary links
75
76==== Configure SCCP/M3UA to connect to an MSC's _A_ interface
77
78OsmoBSC acts as client to contact an STP instance and establish an SCCP/M3UA
79link.
80
81An example configuration of OsmoBSC's AoIP SCCP link, assuming the BSC at
82point-code 1.23.3 and the MSC reachable at point-code 0.23.1 via an SG
83listening for M3UA at 127.0.0.1:2905:
84
85----
86cs7 instance 0
87 point-code 1.23.3
88 asp asp-clnt-msc-0 2905 0 m3ua
89 remote-ip 127.0.0.1
90 sctp-role client
91 sccp-address msc
92 point-code 0.23.1
93msc 0
94 msc-address msc
95----
96
97==== Configure MGCP to connect to an MGW
98
99OsmoBSC uses a media gateway (typically OsmoMGW) to direct RTP streams. By
100default, an MGW is expected to receive MGCP requests on the IANA-registered
101default port for MGCP (2427) on local host (127.0.0.1).
102
103Here is an example configuration for a remote MGW:
104
105----
106msc 0
107 mgw remote-ip 10.9.8.7
108 mgw remote-port 2427
109----