Project

General

Profile

OpenBSC + LCR

This installation process was written and tested for Debian 6.0.2 kernel 2.6.32-5-686.
The commit revisions for the code used are:

mISDN: 992df14f2b4596aff3256150b2465dc35567e5ec
mISDNuser a38412ccded0cacc98722fd022099d244f38a027
libosmocore b7b61236d8c598f3e7cebe61dcc925a33cf59374
openbsc 074b2b24e00fa4f6e39e2f5025ec628663ac95d8
lcr 53eb7f5176bf4b1f822f79cf5d13bf32707c7984

Basic-Installation:

apt-get install build-essential autoconf automake libtool libgsm1-dev libdbi0-dev \
     libdbd-sqlite3 git-core asterisk asterisk-dev ncurses-base libncurses5-dev libncursesw5-dev sqlite3 pkg-config

> Only for Ubuntu:
> apt-get install linux-source
> cd /usr/src
> sudo tar xfj linux-source-2.6.32.tar.bz2
> cd linux-source-2.6.32
> sudo make oldconfig
> cd /lib/modules/2.6.32-24-generic/
> sudo ln -s /usr/src/linux-source-2.6.32 source

cd
mkdir bsc-software
cd bsc-software

git clone git://git.misdn.org/mISDN.git/
git clone git://git.misdn.org/mISDNuser.git/
git clone git://git.osmocom.org/libosmocore.git
git clone git://git.osmocom.org/openbsc.git
git clone git://git.misdn.org/lcr.git/

cd mISDN
wget http://lab.ks.uni-freiburg.de/attachments/download/277/mISDN.patch
git apply --verbose mISDN.patch
./configure
cp mISDN.cfg.default standalone/mISDN.cfg
make modules
make modules-install

cd ../mISDNuser
./configure
make
make install

cd ../libosmocore/
autoreconf -i
./configure
make
make install

cd ../openbsc/openbsc/
autoreconf -i -f
./configure
make

cd ../../lcr
ln -s ../libosmocore/ .
ln -s ../openbsc/openbsc/ .
sh autogen.sh
./configure --prefix=/opt/lcr --with-asterisk --with-gsm-bs
make
make install

cp chan_lcr.so /usr/lib/asterisk/modules/
ldconfig
depmod -a

Configuration:

cd /usr/local/lcr
vim options.conf  uncomment the following lines:
  debug 0xffff
  lock /var/tmp
  socketuser asterisk
  socketgroup asterisk
  gsm

vim interface.conf
  uncomment the [GSM] network section and remove [Ext] and [Int] at the end.

sudo vim routing.conf
  on the [main] section add:
  interface=GSM        : remote application=asterisk context=btsctrl

Loding modules:

modprobe mISDN_core
modprobe mISDN_dsp
modprobe mISDN_l1loop nchannel=30 interfaces=2

Load modules at startup
Add to the file /etc/modules:

mISDN_core
mISDN_dsp
mISDN_l1loop nchannel=30 interfaces=2