sudo apt-get install linux-source 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 cd /usr/src sudo tar xvfj 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 openbsc cd openbsc git clone git://git.misdn.org/git/mISDN.git/ git clone git://git.misdn.org/git/mISDNuser.git/ git clone git://git.osmocom.org/libosmocore.git git clone git://bs11-abis.gnumonks.org/openbsc.git git clone git://git.misdn.org/git/lcr.git/ cd mISDN ./configure cp mISDN.cfg.default standalone/mISDN.cfg make modules sudo make modules-install cd ../mISDNuser ./configure make sudo make install cd ../libosmocore/ git checkout 43558316bc4e6ddac92dd198b07a4803c21dc77b autoreconf -i ./configure make sudo make install cd ../openbsc/openbsc/ git checkout 305e2906aae7dbf45204f043394719c9a06c1227 autoreconf --install --force ./configure make cd ../../lcr git checkout 69475c77e1b5eef4f101f0bf108a89d04ccd833b git checkout mit der Version vom 6 Aug ln -s ../libosmocore/ . ln -s ../openbsc/openbsc/ . sh autogen.sh wget http://openbsc.osmocom.org/trac/raw-attachment/wiki/OpenBSC_LCR/lcrOpenBSC.patch git apply --verbose lcrOpenBSC.patch ./configure --prefix=/opt/lcr --with-asterisk --with-gsm-bs vim gsm_bs.cpp: change on line 60 PACKAGE_VERSION to "1.7" make sudo make install sudo cp chan_lcr.so /usr/lib/asterisk/modules/ cd /usr/local/lcr sudo vim options.conf uncomment the following lines: debug 0xffff lock /var/tmp socketuser asterisk socketgroup asterisk gsm sudo vim interface.conf uncomment the first [GSM] section add: extern [GSM] gsm-bs nt layer1hold no layer2hold no tones yes earlyb no channel-in free channel-out any nodtmf sudo vim gsm.conf uncomment both interfaces debug DRLL:DCC:DMM:DRR:DRSL:DNM:DSMS:DMNCC:DMNSMS:DPAG:DMUX:DMEAS config /usr/local/lcr/openbsc.cfg hlr /usr/local/lcr/hlr.sqlite3 sudo vim routing.conf on the [extern] section add: interface=GSM remote=asterisk : remote application=asterisk context=btsctrl sudo vim /etc/asterisk/modules.conf add under [modules]: load => chan_lcr.so start lcr: (sudo modprobe mISDN_core) sudo modprobe mISDN_dsp sudo modprobe mISDN_l1loop pri=1 nchannel=8 i couldn't load the l1loop. the following error has appeared (after modprobe mISDN_core and _dsp): FATAL: Module mISDN_l1loop not found. Solution: sudo depmod -a After that, i could do sudo modprobe mISDN_l1loop pri=1 nchannel=8 Proof it: sudo misdn_info Found 2 ports Port 0 'mISDN_l1loop.1': TE/NT-mode PRI E1 (for phone lines & E1 devices) 8 B-channels: 1-8 B-protocols: RAW HDLC X75slp L2:DSP L2:DSPHDLC -------- Port 1 'mISDN_l1loop.2': TE/NT-mode PRI E1 (for phone lines & E1 devices) 8 B-channels: 1-8 B-protocols: RAW HDLC X75slp L2:DSP L2:DSPHDLC cd