summaryrefslogtreecommitdiffstats
path: root/default
diff options
context:
space:
mode:
authorAndreas Eversberg2009-05-11 11:07:58 +0200
committerAndreas Eversberg2009-05-11 11:07:58 +0200
commit20a671d76854520ad9d5ea9d481e008240465e62 (patch)
treefbfd12696b1d31b347e85442f1e9ed37ccfda0d8 /default
parentApplied patch by Daniel: "execute"-action can now be performed on call init o... (diff)
downloadlcr-20a671d76854520ad9d5ea9d481e008240465e62.tar.gz
lcr-20a671d76854520ad9d5ea9d481e008240465e62.tar.xz
lcr-20a671d76854520ad9d5ea9d481e008240465e62.zip
Added GSM network support.
This turns LCR into a GSM mobile switching center. More infos will follow.
Diffstat (limited to 'default')
-rw-r--r--default/gsm.conf74
-rw-r--r--default/interface.conf18
-rw-r--r--default/options.conf14
3 files changed, 106 insertions, 0 deletions
diff --git a/default/gsm.conf b/default/gsm.conf
new file mode 100644
index 0000000..b7d7bac
--- /dev/null
+++ b/default/gsm.conf
@@ -0,0 +1,74 @@
+# LCR GSM options
+#################
+
+# Enable debugging of OpenBSC library.
+# Refer to OpenBSC project for debugging options.
+# By default, debugging is turned off.
+#debug DRLL:DCC:DMM:DRR:DRSL:DNM
+
+# Two Loopback interfaces for audio transfer between OpenBSC and mISDN.
+# The first interface must provide B-channelis for each call mobile call.
+# The seond interface links them to LCR.
+# Use 30 B-channels unless you need more due to many TRXs.
+# -> Load with: "modprobe mISDN_l1loop pri=1 nchannel=30"
+# By default "mISDN_l1loop.1" and "mISDN_l1loop.2" is used.
+#interface-bsc mISDN_l1loop.1
+#interface-lcr mISDN_l1loop.2
+
+# GSM network names.
+# This name is presented to the mobile station.
+# By default 'LCR' is used.
+#long-name Linux-Call-Router
+#short-name LCR
+
+# Give the GSM country code.
+# The country code is different from the PSTN country code. E.g Germany uses
+# 262 instead of 49. Use this for IMSI catching.
+# This will override the default value of 1 = 'test country';
+#mcc 001
+
+# Give the GSM network code.
+# The network code is different from the PSTN network codes. Change this if
+# you run different test networks in the same locations.
+# This will override the default value of 1 = 'test network';
+#mnc 01
+
+# Give the location area code.
+# The location area code is not known to the author of LCR. Don't change it!
+#lac 1
+
+# Give database of Home Location Register (HLR)
+# HLR stores all subscribers. It will be used to grant access to the network.
+# It is an Sqlite3 database. Refer to OpenBSC project for handling.
+# The database is located at /usr/local/lcr by default.
+#hlr hlr.sqlite3
+
+# Authorization of unknown subscribers.
+# To allow all subscribers to access the network, use this option.
+# By default, subscribers are only accepted if allowed in the HLR
+allow-all
+
+# To keep layer 2 connection to BS11 when quitting, use this option.
+# It is only usefull for developing. TRX will stay on.
+# Warning: Keeping layer 2 link may prevent emergency calls. (See below)
+# Layer 2 will only be kept, if lcr was killed manually.
+#keep-l2
+
+# You must define a list of your BTS'.
+# Usage: 'bts bs11 <card> <frequency> [<frequency 2>]
+# The keyword 'bts' is used to specify a BTS. Multiple BTS' may be defined.
+# The 'bs11' keyword specifies a BS11 BTS connected to an E1 card.
+# The frequency is given for the first TRX (tranceiver).
+# In case of a second tranceiver, give frequency 2.
+bts bs11 9 123
+
+# Shutdown on emergency calls:
+# This option will prevent a shutdown if an emergency call is received. In
+# case of an emergency, a mobile phone may log onto you GSM network and may
+# use it to set up an emergency call.
+# The received emergency call will have 'emergency' as dialed number. But this
+# number can't be dialed on PSTN networks without chaning.
+# If you disable shutdown, be sure to provide routing of emergency calls to
+# emergency facility. If you can't do that, don't touch it!
+#no-emergency-shutdown
+
diff --git a/default/interface.conf b/default/interface.conf
index 51cc036..8f1dc6b 100644
--- a/default/interface.conf
+++ b/default/interface.conf
@@ -136,6 +136,24 @@
#portnum 0
#dialmax 20
+
+# A special case for GSM interface.
+# Don't remove/change the settings, they will cause undefined behaviour
+# of LCR. The actual interface is defined in gsm.conf.
+# You may add 'extension' and 'mns' keywords to turn all your subscribers
+# in you GSM network to internal 'extensions'.
+# The MSN numbers will equal the subscriber number.
+#[GSM]
+#gsm
+#nt
+#layer1hold no
+#layer2hold no
+#tones yes
+#earlyb no
+#channel-in free
+#channel-out any
+
+
# Hint: Enter "lcr interface" for quick help on interface options.
diff --git a/default/options.conf b/default/options.conf
index dfa3b34..a020f62 100644
--- a/default/options.conf
+++ b/default/options.conf
@@ -11,6 +11,7 @@
#define DEBUG_BCHANNEL 0x0008
#define DEBUG_PORT 0x0100
#define DEBUG_ISDN 0x0110
+#define DEBUG_GSM 0x0120
#define DEBUG_VBOX 0x0180
#define DEBUG_EPOINT 0x0200
#define DEBUG_JOIN 0x0400
@@ -96,3 +97,16 @@
# Rights must have 0 in front, if octal values above are used.
#socketrights 0700
+# Enable GSM network capability.
+# This option turns LCR into a GSM network. Additional options are specified
+# in 'gsm.conf'. You also need openbsc at compile time and of yourse -
+# a base station transceiver. For more refer to LCR home page.
+#
+# !!! DANGER !!!
+# Running a GSM network may disturb other networks and may be prossecuted by
+# law of your country.
+# Running a GSM network may prevent mobile users from making EMERGENCY CALLS.
+# Be sure to allow emergency calls to be routed to emergency facilities.
+#
+#gsm
+