Difference between revisions of "OpenBTS: 2.8 Konfigurasi Subscriber Registery"

From OnnoWiki
Jump to navigation Jump to search
Line 136: Line 136:
 
* [[USRP: Rangkaian Board USRP]]
 
* [[USRP: Rangkaian Board USRP]]
 
* [[OpenBTS: Tethr untuk Bencana Alam]]
 
* [[OpenBTS: Tethr untuk Bencana Alam]]
 +
* [[USRP: Tip Pemesanan]]
  
 
===OpenBTS 2.6===
 
===OpenBTS 2.6===
Line 144: Line 145:
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 13.04 Install GNURadio 3.4.2 Clock 52MHz]] ''NOT RECOMMENDED''
 
* [[GNURadio: Contoh Aplikasi]]
 
* [[GNURadio: Contoh Aplikasi]]
 
* [[GNURadio: Spectrum Analizer GSM]]
 
* [[GNURadio: Spectrum Analizer GSM]]
Line 150: Line 152:
 
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: Ubuntu 13.04 Install OpenBTS 2.6 Clock 52MHz]] ''NOT RECOMMENDED''
 
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 
* [[OpenBTS: Kalibrasi]]
 
* [[OpenBTS: Kalibrasi]]
Line 170: Line 173:
 
* [[GNURadio: Install UHD]]
 
* [[GNURadio: Install UHD]]
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]]
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]]
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.3.0]]
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.4.1]] ''NOT RECOMMENDED''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu 12.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu 12.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.04.1 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.4.2]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 13.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0]] ''NOT RECOMMENDED''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0]] ''NOT RECOMMENDED''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2]] ''NOT RECOMMENDED''
 
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2]] ''NOT RECOMMENDED''
Line 185: Line 193:
 
* [[OpenBTS: 2.8 dari SVN Install]]
 
* [[OpenBTS: 2.8 dari SVN Install]]
 
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz di Ubuntu 12.10]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz di Ubuntu 13.04]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz dengan UHD tanpa GNURadio]] ''NOT RECOMMENDED''
 
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz dengan UHD tanpa GNURadio]] ''NOT RECOMMENDED''
 
* [[OpenBTS: 2.8 Edit User di sqlite3.db]] '''RECOMMEND'''
 
* [[OpenBTS: 2.8 Edit User di sqlite3.db]] '''RECOMMEND'''
 
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Softswitch install Ubuntu 12.10]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Softswitch install Ubuntu 13.04]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Config Test]]
 
* [[OpenBTS: Yate Config Test]]
 
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
Line 225: Line 237:
 
* [[Power Amplifier 900MHz]]
 
* [[Power Amplifier 900MHz]]
 
* [[Duplexer]]
 
* [[Duplexer]]
 +
* [[OpenBTS: Menaikan Jangkauan OpenBTS]]
  
 
===Lain Lain===
 
===Lain Lain===
Line 255: Line 268:
 
* [[OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan]]
 
* [[OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan]]
 
* [[OpenBTS: Daftar Artikel di Media]]
 
* [[OpenBTS: Daftar Artikel di Media]]
 +
* [[OpenBTS: Permohonan Kanal dan DID untuk OpenBTS]]
 +
* [[OpenBTS: 2013/02/19 - OpenBTS TelkomSel Mengudara di Muscat Oman]]
  
 
===Dokumentasi Video===
 
===Dokumentasi Video===
  
 +
* http://www.metrotvnews.com/read/newsprograms/2012/10/14/14624/212/Teknologi-BTS
 
* http://youtu.be/8ogOcUSpINU (1/6)
 
* http://youtu.be/8ogOcUSpINU (1/6)
 
* http://youtu.be/F5d7HGuhppk (2/6)
 
* http://youtu.be/F5d7HGuhppk (2/6)

Revision as of 14:44, 9 June 2013

Sumber: http://wush.net/trac/rangepublic/wiki/P2.8Differences


Catatan Real-Time Asterisk

Di OpenBTS 2.8, kita tidak lagi menggunakan SIP registry internal Asterisk sebagi pengganti HLR. Kita menggunakan komponen baru yang dinamakan subscriber registry, yang berbasis pada database sqlite3 di /var/lob/asterisk/sqlite3dir/sqlite3.db. Database ini berisi tabel SIP user registration dan call routing dalam konfigurasi realtime asterisk. Ada tiga implikasi penting:

  • OpenBTS tidak dapat lagi melakukan pertukaran SIP REGISTER secara langsung dengan Asterisk. Akan tetapi, SIP REGISTER methods akan dikirim ke server baru yang dinamakan sipauthserver, SIP interface dari subscriber registry.
  • OpenBTS handset tidak dapat lagi di provision oleh Asterisk melalui /etc/asterisk/sip.conf. AKan tetapi, OpenBTS handset harus di provision subscriber registry. Jika tidak, maka Asterisk tidak akan mengetahui IP address dari handset.
  • Konfigurasi dialplan sekarang menggunakan database lookup secara explisit melalui interface ODBC untuk melakukan call routing, contoh:
[phones]
; This is the context for handsets provisioned through the realtime database.
; This assumes that OpenBTS units all are running their SIP interfaces on port 5062.
exten => _N.,1,Set(Name=${ODBC_SQL(select dial from dialdata_table where exten = \"${EXTEN}\")})
exten => _N.,n,GotoIf($["${Name}" = ""] ?outbound-trunk,${EXTEN},1)
exten => _N.,n,Set(IPAddr=${ODBC_SQL(select ipaddr from sip_buddies where name = \"${Name}\")})
exten => _N.,n,GotoIf($["${IPAddr}" = ""] ?outbound-trunk,${EXTEN},1)
exten => _N.,n,Dial(SIP/${Name}@${IPAddr}:5062)


Beberapa SQLite database penting

Beberapa file SQLite database yang penting

/etc/OpenBTS/OpenBTS.db
/etc/OpenBTS/smqueue.db
/etc/OpenBTS/sipauthserve.db
/var/lib/asterisk/sqlite3dir/sqlite3.db

Edit Menggunakan SQLite Database Browser

Langkah yang perlu dilakukan

Download dari http://sourceforge.net/projects/sqlitedbrowser/
sudo apt-get install libjpeg62
mkdir /usr/local/src/sqlitebrowser
mkdir /usr/local/src/sqlitebrowser
cp sqlitebrowser-linux.tar.gz /usr/local/src/sqlitebrowser/
cd /usr/local/src/sqlitebrowser/
tar zxvf sqlitebrowser-linux.tar.gz
  • Jalankan
sudo su
/usr/local/src/sqlitebrowser/sqlitestudio/sqlitestudio
Sqlitestudio1.png


Edit /etc/OpenBTS/OpenBTS.db

Sqlitestudio-openbtsdb1.png
Sqlitestudio-openbtsdb2.png


Edit /etc/OpenBTS/smqueue.db

Sqlitestudio-smqueue1.png
Sqlitestudio-smqueue2.png

Edit /etc/OpenBTS/sipauthserve.db

Sqlitestudio-sipauthserve1.png
Sqlitestudio-sipauthserve2.png

Edit /var/lib/asterisk/sqlite3dir/sqlite3.db

Sqlitestudio-subscriberregistry2.png
Sqlitestudio-subscriberregistry1.png
Sqlitestudio-subscriberregistry3.png
Sqlitestudio-subscriberregistry4.png

Test Query ke Subscriber Registry di SQLite Database Browser

Coba test apakah SQLite Database dapat memberikan responds yang benar, misalnya menggunakan perintah

select dial from dialdata_table where exten = 1111
select ipaddr from sip_buddies where name = IMSI510110301694405
select ipaddr from sip_buddies where callerid = 1111

Manajemen Subscriber Registry via Web

WARNING: Cara ini masih gagal total

Jika kita perhatikan baik-baik source code OpenBTS maka ada srmanager.cgi di

/usr/local/src/openbts/subscriberRegistry/trunk/srmanager.cgi

Ini dapat ditampilkan ke web dengan mengarahkan konfigurasi cgi-bin apache

Edit

vi /etc/apache2/sites-enabled/000-default 
ScriptAlias /cgi/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
</Directory>

Buat link

cd /usr/lib/cgi-bin/
ln -s /usr/local/src/openbts/subscriberRegistry/trunk/srmanager.cgi



Pranala Menarik

Persiapan

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

Ettus E110

GPRS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video