Adding OpenBSC mISDN LCR
cd /opt/GSM
git clone https://github.com/osmocom/openbsc
cd openbsc/openbsc
autoreconf -fi && ./configure && make -j4 && make install && ldconfig
cd /lib/modules/$(uname -r)/build/certs
openssl req -new -x509 -newkey rsa:2048 -keyout signing_key.pem -outform DER -out signing_key.x509 -nodes -subj “/CN=Owner/”
apt install -y gcc-9 g++-9 gcc-7 g++-7 gcc-10 g++-10
update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-7 70 –slave /usr/bin/g++ g++ /usr/bin/g++-7
update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-9 90 –slave /usr/bin/g++ g++ /usr/bin/g++-9
update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-10 100 –slave /usr/bin/g++ g++ /usr/bin/g++-10
cd /opt/GSM/
git clone https://github.com/isdn4linux/mISDN
cd /opt/GSM/mISDN
rm -Rf /lib/modules/$(uname -r)/kernel/drivers/isdn/hardware/mISDN
rm -Rf /lib/modules/$(uname -r)/kernel/drivers/isdn/mISDN/
wget https://raw.githubusercontent.com/bbaranoff/PImpMyPi/main/octvqe.patch
cp /boot/System.map-$(uname -r) /usr/src/linux-headers-$(uname -r)/System.map
ln -s /lib/modules/$(uname -r)/build /lib/modules/$(uname -r)/source
aclocal && automake –add-missing
./configure
patch -p0 < octvqe.patch
make modules
cp /opt/GSM/mISDN/standalone/drivers/isdn/mISDN/modules.order /usr/src/linux-headers-$(uname -r)
cp -rn /usr/lib/modules/$(uname -r)/. /usr/src/linux-headers-$(uname -r)
make modules_install
depmod -a
update-alternatives –set gcc /usr/bin/gcc-7
cd /opt/GSM
apt install bison flex -y
git clone https://github.com/isdn4linux/mISDNuser
cd /opt/GSM/mISDNuser
make
./configure
make
make install
ldconfig
cd example
./configure
make
make install
ldconfig
update-alternatives –set gcc /usr/bin/gcc-10
cd /opt/GSM
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.25.3.tar.gz
tar zxvf asterisk-11.25.3.tar.gz
cd /opt/GSM/asterisk-11.25.3
apt install libncurses-dev libxml2-dev
./configure
make
make install
make config
ldconfig
cd /opt/GSM
git clone http://git.eversberg.eu/lcr.git
cd /opt/GSM/lcr
wget https://raw.githubusercontent.com/bbaranoff/PImpMyPi/main/ast_lcr.patch
wget https://raw.githubusercontent.com/bbaranoff/PImpMyPi/main/sip_gcc.patch
patch -p0 < ast_lcr.patch
patch -p0 < sip_gcc.patch
./autogen.sh
./configure –with-sip –with-gsm-bs –with-gsm-ms –with-asterisk –with-sip
make
make install
ldconfig