Difference between revisions of "OpenBTS: RangeNetwork Yate Compile"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 56: | Line 56: | ||
sudo python setup.py install | sudo python setup.py install | ||
sudo python setup_yate.py install | sudo python setup_yate.py install | ||
| + | |||
| + | ==Yate Configuration== | ||
| + | |||
| + | Ada beberapa file yang perlu di ubah untuk mengkonfigurasi yate dengan OpenBTS. File ini berlokasi di /usr/local/etc/yate/ | ||
| + | |||
| + | ===ysipchan.conf=== | ||
| + | |||
| + | ysipchan mengkonfigurasi sip module. Kita perlu memberitahukan yate untuk membuat SIP MESSAGE event. | ||
| + | |||
| + | vi /usr/local/etc/yate/ysipchan.conf | ||
| + | |||
| + | Di bagian [general], tambahkan : | ||
| + | |||
| + | [general] | ||
| + | maxpkt=4096 | ||
| + | generate=yes | ||
| + | |||
| + | dan, di blok [methods], tambahkan : | ||
| + | |||
| + | [methods] | ||
| + | message=yes | ||
| + | |||
| + | ===regexroute.conf=== | ||
| + | |||
| + | regexroute.conf control routing dari paket tertentu. Kita menggunakan regexroute.conf untuk mematikan authorization of messages. | ||
| + | |||
| + | vi /usr/local/etc/yate/regexroute.conf | ||
| + | |||
| + | dalam blok [extra] | ||
| + | |||
| + | [extra] | ||
| + | ;skipping auth step | ||
| + | user.auth=20 | ||
| + | |||
| + | tambahkan | ||
| + | |||
| + | [user.auth] | ||
| + | .*=return true | ||
| + | |||
| + | ===extmodule.conf=== | ||
| + | |||
| + | extmodule.conf mengontrol external modul yate. libvbts mengimplementasi beberapa hal yang dibutuhkan untuk operasi OpenBTS. Kita perlu mengaktif module tersebut, dengan mengedit | ||
| + | |||
| + | vi /usr/local/etc/yate/extmodule.conf | ||
| + | |||
| + | Pada block [scripts] isi: | ||
| + | |||
| + | [scripts] | ||
| + | ;sip.message handlers | ||
| + | VBTS_SMS_Provisioning.py=5 | ||
| + | VBTS_SMS_Echo.py=10|vbts_tp_dest_address|^100$ | ||
| + | VBTS_SMS_Route.py=50 | ||
| + | |||
| + | ;call.route handlers | ||
| + | VBTS_Route_Provisioning.py=5 | ||
| + | VBTS_Route_Local.py=10 | ||
| + | |||
| + | Variabel ini menset prioritas penanganan message dan / atau regex yang menyebabkan bagaimana cara message di tangani. | ||
Revision as of 08:33, 14 January 2014
Instalasi Pendukung
apt-get update
sudo apt-get install build-essential autoconf cvs sox pkg-config git-core subversion \ libgsm1-dev libgsm1 php5-cli python-setuptools
Download Yate
Source Code Yate dapat di ambil dari
http://yate.null.ro/pmwiki/index.php?n=Main.Download http://yate.null.ro/tarballs/yate5/yate-5.0.0-1.tar.gz
cd /usr/local/src wget http://yate.null.ro/tarballs/yate5/yate-5.0.0-1.tar.gz
Compile & Install Yate
cp yate-5.0.0-1.tar.gz /usr/local/src/ cd /usr/local/src/ tar zxvf yate-5.0.0-1.tar.gz cd /usr/local/src/yate ./configure make make install
Library Lain
Siapkan smspdu
Lakukan
sudo apt-get install python-pip sudo pip install smspdu
Install script dari Kurtis Heilmerl
Pastikan anda mempunyai sambungan ke Internet yang baik.
Kita memerlukan dua library untuk melakukan routing di yate, yaitu:
- Python Messaging https://github.com/pmarti/python-messaging
- libvbts https://github.com/kheimerl/libvbts
Proses instalasi yang perlu dilakukan adalah,
cd /usr/local/src git clone https://github.com/pmarti/python-messaging.git cd python-messaging sudo python setup.py install
git clone https://github.com/kheimerl/libvbts.git cd libvbts sudo python setup.py install sudo python setup_yate.py install
Yate Configuration
Ada beberapa file yang perlu di ubah untuk mengkonfigurasi yate dengan OpenBTS. File ini berlokasi di /usr/local/etc/yate/
ysipchan.conf
ysipchan mengkonfigurasi sip module. Kita perlu memberitahukan yate untuk membuat SIP MESSAGE event.
vi /usr/local/etc/yate/ysipchan.conf
Di bagian [general], tambahkan :
[general] maxpkt=4096 generate=yes
dan, di blok [methods], tambahkan :
[methods] message=yes
regexroute.conf
regexroute.conf control routing dari paket tertentu. Kita menggunakan regexroute.conf untuk mematikan authorization of messages.
vi /usr/local/etc/yate/regexroute.conf
dalam blok [extra]
[extra] ;skipping auth step user.auth=20
tambahkan
[user.auth] .*=return true
extmodule.conf
extmodule.conf mengontrol external modul yate. libvbts mengimplementasi beberapa hal yang dibutuhkan untuk operasi OpenBTS. Kita perlu mengaktif module tersebut, dengan mengedit
vi /usr/local/etc/yate/extmodule.conf
Pada block [scripts] isi:
[scripts] ;sip.message handlers VBTS_SMS_Provisioning.py=5 VBTS_SMS_Echo.py=10|vbts_tp_dest_address|^100$ VBTS_SMS_Route.py=50 ;call.route handlers VBTS_Route_Provisioning.py=5 VBTS_Route_Local.py=10
Variabel ini menset prioritas penanganan message dan / atau regex yang menyebabkan bagaimana cara message di tangani.