Difference between revisions of "OpenBTS: Konfigurasi Asterisk untuk OpenBTS"

From OnnoWiki
Jump to navigation Jump to search
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
Setting Up Asterisk to Work with OpenBTS¶
+
Integrasi OpenBTS ke Asterisk sangat sederhana secara prinsip. Setiap SIM akan di konfigurasi sebagai SIP user menggunakan IMSI sebagai username. Proses memasukan pelanggan [[OpenBTS]] melalui dua tahap:
  
OpenBTS integration with Asterisk is simple in principle: each SIM is configured in Asterisk as a SIP user, using the IMSI as the SIP user name.
+
# Mendapatkan IMSI dari SIM, hal ini di implementasi dengan mengirim SMS saat handphone tersambung ke [[OpenBTS]]
So provisioning an OpenBTS subscriber has two steps: # Get the IMSI from the SIM. # Make the corresponding entries in sip.conf and extensions.conf to support the new SIP user.
+
# Masukan ke sip.conf dan extensions.conf untuk mendukung [[SIP]] user baru tersebut.
Getting the IMSIs¶
 
  
There are several ways to get the IMSI for a SIM so that it can be programmed into Asterisk's configuration files. Which one you use will depend on the volume of SIMs you need to provision.
+
Pada dasarnya tidak banyak yang perlu di konfigurasi di [[Asterisk]] agar dia dapat berbicara dengan OpenBTS. Kita terutama perlu mengedit file
Getting the IMSI with OpenBTS Itself¶
 
  
This is the easiest approach for small numbers of SIMs.
+
/etc/asterisk/sip.conf
Whenever a handset tries to register with OpenBTS, it will send a mobile identity. You can force the handset to use the IMSI as its identity and then capture the IMSI from the OpenBTS console output when the handset tries to register. Here are the steps:
+
/etc/asterisk/extensions.conf
  
  1. Be in the correct GSM band.
+
Contoh konfigurasi ada di folder
        1. Be sure the handset is configured to use the same band as you OpenBTS binary, and no other.
 
  2. Reset the handset's TMSI.
 
      This procedure is derived from GSM 04.08.
 
        1. Turn off the handset.
 
        2. Remove the battery and SIM.
 
        3. Replace them and turn the phone back on. This will clear any TMSI stored in the phone.
 
  3. Let the phone try to register.
 
      What happens next depends on the version.
 
  
For releases prior to "Jean Lafitte": Start running the full OpenBTS (OpenBTS + transceiver + Asterisk). Pipe out output of the OpenBTS binary through "| grep Control" and watch for something like this:
+
/usr/local/src/openbts-2.6.0Mamou/AsteriskConfig
  
FACCHDispatch.cpp:53 ControlLayer FACCHDispatcher waiting for ESTABLISH RadioResource.cpp:87 ControlLayer AccessGrantResponder RA=27 when=0:7734
+
Di OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca [[OpenBTS: SMS]]
RadioResource.cpp:127 ControlLayer AccessGrantResponder sending PageMode=(0)  DedicatedModeOrTBF=(TMA=0 Downlink=0 DMOrTBF=0) ChannelDescription=(typeAndOffset=SDCCH/4-3 TN=0 TSC=0 ARFCN=29) RequestReference=(RA=27 T1'=5 T2=12 T3=33) TimingAdvance=0
 
SDCCHDispatch.cpp:101 ControlLayer SDCCHDispatcher got MM Location Updating Request MobileIdentity=(IMSI=310410186585294)
 
MobilityManagement.cpp:111 ControlLayer LocationUpdatingController MM Location Updating Request MobileIdentity=(IMSI=310410186585294)
 
MobilityManagement.cpp:121 ControlLayer LocationUpdatingController waiting for registration
 
MobilityManagement.cpp:137 ControlLayer LocationUpdatingController : SIPRegistration -> FAIL
 
SDCCHDispatch.cpp:136 ControlLayer SDCCHDisptacher waiting for RELEASE
 
SDCCHDispatch.cpp:97 ControlLayer SDCCHDisptacher waiting for ESTABLISH
 
  
  
For "Jean Lafitte" and later: Start OpenBTS and Asterisk with the OpenBTS logging level set to "INFO" and watch for something like this in the log:
+
==Cek Nomor IMSI di OpenBTS==
  
RadioResource.cpp:152: AccessGrantResponder RA=0x15 when=0:1192710 age=25 TOA=0.0000
+
Kita dapat juga mencek nomor IMSI di OpenBTS, setelah kita masuk ke prompt OpenBTS>
RadioResource.cpp:196: AccessGrantResponder sending PageMode=(0) DedicatedModeOrTBF=(TMA=0 Downlink=0 DMOrTBF=0) ChannelDescription=(typeAndOffset=SDCCH/4-0 TN=0 TSC=0 ARFCN=975) RequestReference=(RA=21 T1'=3 T2=12 T3=24) TimingAdvance=0
 
MobilityManagement.cpp:119: LocationUpdatingController MM Location Updating Request  LAI=(MCC=901 MNC=55 LAC=0x29b) MobileIdentity=(TMSI=0x49ffcddd)
 
MobilityManagement.cpp:172: LocationUpdatingController registration FAIL: IMSI=234100223456161
 
  
In either version, the SIP registration attempt will return "FAIL" because this IMSI is not yet provisioned in Asterisk.
+
Welcome to OpenBTS.  Type "help" to see available commands.
 +
OpenBTS>
  
If you're really clever, you'll write some kind of Python script to catch the log output and automatically update the Asterisk configuration files. If you do that, please share your scripts with the rest of us. That would make this technique applicable to very large numbers of SIMs in situations where acceptance rules can be applied based on the upper digits of the IMSI.
 
Use the GSM "AT" Interface¶
 
  
Many GSM devices support a Hayes-style "AT" command interface, defined in GSM 07.07. This interface supports the "AT+CIMI" command, described in GSM 07.07 Section 5.6, which will return the IMSI of the device's installed SIM.
+
Ketik
This is a good approach if you have a device that affords easy SIM changes, like a MultiTech GSM modem and need to provision a few dozen subscribers.
 
  
Again, if you're really clever you'll write a script to automate that. And if you're a good person you'll share it with the rest of us.
+
tmsis
Order Lots of SIMs¶
 
  
If you need even larger numbers of SIMs provisioned you might consider ordering a batch of them with sequential IMSIs that can be easily programmed into Asterisk with a script.
+
akan keluar
  
Programming IMSIs Into Asterisk¶
+
TMSI      IMSI            IMEI              age  used
 +
0x4f309ebf 510890929069598              ?  22h  22h
 +
0x4f309ec0 510112410440152              ?  22h    5s
 +
0x4f309ec1 510110301694405              ?  22h  22h
 +
0x4f309ec2 510104725431198              ?  22h  22h
 +
0x4f31da5b 510110026566622              ?  15s  15s
  
To provision an IMSI into Asterisk you will need to modify two files: sip.conf and extensions.conf. These files are normally located in /etc/asterisk.
+
Nomor-nomor 510XXX adalah nomor SIM card yang terdaftar di OpenBTS yang kita operasikan.
Creating a SIP User in sip.conf¶
 
  
The minimal entry for the IMSI in sip.conf looks like this:
 
  
  r310410186585294
+
==Konfigurasi sip.conf==
 +
 
 +
Contoh isi /etc/asterisk/sip.conf adalah sebagai berikut
 +
 
 +
  [IMSI510110301694405]
 
  canreinvite=no
 
  canreinvite=no
 
  type=friend
 
  type=friend
 +
defaultuser=2101
 +
; context=default
 
  allow=gsm
 
  allow=gsm
context=sip-external
 
 
  host=dynamic
 
  host=dynamic
  
  
 +
Atau kalau ingin menggunakan context default pastikan ada context [default] di extensions.conf
  
  [IMSI204123170034543]
+
  [IMSI520010104743577]
  callerid=IMSI204123170034543 <IMSI204123170034543>
+
  callerid=1000
 +
canreinvite=no
 +
type=friend
 +
allow=gsm
 +
context=default
 +
host=dynamic
 +
 +
[IMSI510110301694405]
 +
callerid=1111
 +
canreinvite=no
 +
type=friend
 +
allow=gsm
 +
context=default
 +
host=dynamic
 +
 +
[IMSI510112410440152]
 +
callerid=1112
 
  canreinvite=no
 
  canreinvite=no
 +
type=friend
 +
allow=gsm
 +
context=default
 +
host=dynamic
 +
 +
==Konfigurasi extensions.conf==
 +
 +
Contoh isi /etc/asterisk/extensions.conf, edit
 +
 +
vi /etc/asterisk/extensions.conf
 +
 +
cari kata-kata
 +
 +
[default]
 +
;
 +
; By default we include the demo.  In a production system, you
 +
; probably don't want to have the demo there.
 +
;
 +
include => demo
 +
 +
Masukan sesudah kata-kata di atas, misalnya
 +
 +
; exten => _21XX,1,Dial(SIP/${EXTEN},30,rt)
 +
exten => 1111,1,Dial(SIP/IMSI510110301694405,60,rt)
 +
exten => 1112,1,Dial(SIP/IMSI510112410440152,60,rt)
 +
exten => 2102,1,Dial(SIP/IMSI238209700014858,60,rt)
 +
exten => 2103,1,Dial(SIP/IMSI310260254136340,60,rt)
 +
 +
 +
Angka IMSI520154100006647 di peroleh dari SMS yang di terima oleh user OpenBTS.
 +
 +
==Registrasi SIM automatis==
 +
 +
Sumber: http://gnuradio.org/redmine/wiki/gnuradio/OpenBTSThe_use_of_autocreatepeer=yes
 +
Beberapa konfigurasi tambahan di /etc/asterisk/sip.conf yang memungkinkan registrasi SIM automatis
 +
 +
[general]
 +
allowoverlap=no  ; Disable overlap dialing support. (Default is yes)
 +
bindport=5060    ; UDP Port to bind to (SIP standard port is 5060)
 +
bindaddr=0.0.0.0  ; IP address to bind to (0.0.0.0 binds to all)
 +
srvlookup=yes    ; Enable DNS SRV lookups on outbound calls
 +
 +
; line untuk automatic sim registration
 +
autocreatepeer=yes
 +
canreinvite=no
 +
call-limit=1
 
  type=friend
 
  type=friend
 
  allow=gsm
 
  allow=gsm
 
  context=sip-internal
 
  context=sip-internal
  host=dynamic
+
  host=127.0.0.1  ; asumsinya OpenBts dan Asterisk berjalan di mesin yang sama
 +
 
 +
Bagi anda yang ingin mempelajari lebih lanjut tentang asterisk sangat di sarankan untuk membaca-baca tentang [[VoIP]] atau [[Internet Telepon]] karena disini akan di terangkan lebih jauh tentang berbagai konfigurasi asterisk dan bagaimana melakukan mapping ke +62XXX menggunakan teknologi [[ENUM]].
 +
 
 +
==Referensi==
 +
 
 +
* http://gnuradio.org/redmine/wiki/gnuradio/OpenBTSSettingUpAsterisk - Konfigurasi Asterisk + smsqueue
 +
* http://gnuradio.org/redmine/wiki/gnuradio/OpenBTSAsteriskscript - hotdesk dialplan
 +
* http://gnuradio.org/redmine/wiki/gnuradio/OpenBTSThe_use_of_autocreatepeer=yes - Registrasi SIM automatis
 +
 
 +
==Pranala Menarik==
 +
 
 +
* [[OpenBTS]]
 +
* [[OpenBTS: Arsitektur secara umum]]
 +
 
 +
===Persiapan===
 +
 
 +
* [[USRP: High Precision Clock]]
 +
* [[USRP: Menyambungkan ClockTamer ke USRP1]]
 +
* [[USRP: Kalibrasi ClockTamer]]
 +
* [[USRP: ClockTamer Control Protocol]]
 +
* [[USRP: ClockTamer Flashing]]
 +
* [[USRP: Instalasi Board]]
 +
* [[OpenBTS: GIT Source Code]]
 +
* [[USRP: Rangkaian Board USRP]]
 +
* [[OpenBTS: Tethr untuk Bencana Alam]]
 +
* [[USRP: Tip Pemesanan]]
 +
 
 +
===Script===
 +
 
 +
* [[OpenBTS: Script Membuat GNURadio 3.4.2 di Ubuntu 13.04]]
 +
* [[OpenBTS: Script Membuat OpenBTS dan yate di Ubuntu 13.04]]
 +
* [[OpenBTS: Script Membuat OpenBTS 2.8.0 di RangeNetwork Dev Kit]]
 +
* [[OpenBTS: Script Membuat OpenBTS di RangeNetwork Dev Kit]]
 +
 
 +
===OpenBTS 2.6===
 +
 
 +
* [[GNURadio]]
 +
* [[GNURadio: Ubuntu Install]]
 +
* [[GNURadio: Menggunakan UHD]]
 +
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''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: Spectrum Analizer GSM]]
 +
* [[GNURadio: Mengubah board RFX1800 menjadi RFX900]]
 +
* [[GNURadio: Programming Untuk Pemula]]
 +
* [[OpenBTS: Ubuntu Install]] '''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: Kalibrasi]]
 +
* [[OpenBTS: Konfigurasi Asterisk untuk OpenBTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Menjalankan smqueue]]
 +
* [[OpenBTS: Mengoperasikan BTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Tampilan di Nokia saat pakai OpenBTS]]
 +
* [[OpenBTS: Operasi 1800 MHz]]
 +
* [[OpenBTS: Beberapa Tips]]
 +
* [[OpenBTS: USRP2]]
 +
* [[OpenBTS: Amplifier]]
 +
* [[OpenBTS: SMS]]
 +
* [[AirProbe]]
 +
 
 +
===OpenBTS 2.8===
 +
 
 +
* [[GNURadio: Ubuntu 11.10 Install]] ''NOT RECOMMENED''
 +
* [[GNURadio: Ubuntu 11.10 instalasi menggunakan Repo]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Download GNURadio]]
 +
* [[GNURadio: Install UHD]]
 +
* [[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 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.3.2]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Install dari GIT GNURadio]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 cek USRP Daughter Board]]
 +
* [[GNURadio: UHD]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Image]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD burn EEPROM RFX Board di USRP1]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Identifikasi Device]]
 +
* [[OpenBTS: Ubuntu 11.10 Install]]
 +
* [[OpenBTS: dari GIT ttsou]]
 +
* [[OpenBTS: 2.8 dari SVN Install]]
 +
* [[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 2.8.0 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 Edit User di sqlite3.db]] '''RECOMMEND'''
 +
* [[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: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Menjalankan]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Konfigurasi]]
 +
* [[OpenBTS: 2.8 Konfigurasi Cognitive Radio Elsabagh]]
 +
* [[OpenBTS: 2.8 Konfigurasi Subscriber Registery]]
 +
* [[OpenBTS: Database SQLite]]
 +
* [[OpenBTS: Set SQLite Subscriber Registry secara manual]]
 +
* [[OpenBTS: FreeSWITCH]]
 +
 
 +
===Multi OpenBTS 2.8===
 +
 
 +
* [[OpenBTS: Pola Multi OpenBTS]] '''RECOMMENDED'''
 +
* [[Multi OpenBTS: Catatan Konfigurasi]] '''RECOMMENDED'''
 +
 
 +
===OpenBTS 3.1.x===
 +
 
 +
* [[OpenBTS: Install UHD untuk USRP1]]
 +
* [[OpenBTS: UHD Identifikasi Device]]
 +
* [[OpenBTS: OpenBTS 3.1.3 Compile]] '''Tidak bisa untuk USRP1'''
 +
* [[OpenBTS: Yate Compile]]
 +
 
 +
===Ettus E110===
 +
 
 +
* [[OpenBTS: E110 Cara Login]]
 +
* [[OpenBTS: E110 Install Image di MicroSD]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Cek Daughter Board]]
 +
* [[OpenBTS: E110 Mengubah Master Clock]]
 +
* [[OpenBTS: E110 Kalibrasi Clock]]
 +
* [[OpenBTS: E110 Konfigurasi Jaringan]]
 +
* [[OpenBTS: E110 Bekerja dengan opkg]]
 +
* [[OpenBTS: E110 Instalasi iptables]]
 +
* [[OpenBTS: E110 GNURadio]]
 +
* [[OpenBTS: E110 Compile UHD]] ''Not Recommended''
 +
* [[OpenBTS: E110 Compile UHD dari Release Bukan git]] ''Not Recommended''
 +
* [[OpenBTS: E110 UHD burn EEPROM RFX Board]] ''Not Recommended''
 +
* [[OpenBTS: E110 Install UHD Image]] ''Not Recommended''
 +
* [[OpenBTS: E110 Instalasi OpenBTS]]
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Yate Softswitch]]
 +
 
 +
===Ettus N210===
 +
 
 +
* [[OpenBTS: N210 Instalasi GPSDO Kit]]
 +
* [[OpenBTS: N210 GNURadio]]
 +
* [[OpenBTS: N210 GNURadio 3.7.0]]
 +
* [[OpenBTS: N210 Instalasi OpenBTS]]
 +
* [[OpenBTS: N210 Instalasi Yate]]
 +
* [[OpenBTS: N210 Yate Config Test]]
 +
* [[OpenBTS: N210 Burn Firmware]]
 +
 
 +
===RangeNetworks===
 +
 
 +
* [[OpenBTS: RangeNetwork Default Setting]]
 +
* [[OpenBTS: RangeNetwork Compile GNURadio UHD]]
 +
* [[OpenBTS: RangeNetwork Compile]]
 +
* [[OpenBTS: RangeNetwork Compile OpenBTS 3.1.3]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: RangeNetwork Yate Compile]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: RangeNetwork Web Interface]]
 +
* [[OpenBTS: RangeNetwork Trunk ke Asterisk Lain]]
 +
* [[VoIP: Trunk]]
 +
 
 +
 
 +
===GPRS===
 +
 
 +
* [[OpenBTS: GPRS]]
 +
* [[OpenBTS: GPRS Konfigurasi]]
 +
* [[OpenBTS: GPRS untuk dibelakang Router dengan NAT]]
 +
 
 +
===Briker OpenBTS===
 +
 
 +
* [[OpenBTS: Briker]]
 +
 
 +
===FreeSWITCH OpenBTS===
 +
 
 +
* [[OpenBTS: FreeSWITCH]]
 +
 
 +
===Power Amplifier===
 +
 
 +
* [[Driver 900MHz]]
 +
* [[Power Amplifier 900MHz]]
 +
* [[Duplexer]]
 +
* [[OpenBTS: Menaikan Jangkauan OpenBTS]]
 +
 
 +
===Lain Lain===
 +
 
 +
* [[OpenBTS: Materi Magang di ICTWATCH]]
 +
* [[OpenBTS: Seminar Outline]]
 +
* [[OpenBTS: Workshop Outline]]
 +
* [[Membuat Base Station GSM Open Source]]
 +
* [[Teknologi Selular]]
 +
* [[GSM: Daftar Channel Frekuensi]]
 +
* [[Wireless Internet]]
 +
* [[OpenBSC]]
 +
* [[AirProbe]]
 +
* [[Base station subsystem]]
 +
* [[GSM]]
 +
* [[Asterisk]]
 +
* [[Mobile phone]]
 +
 
 +
===Catatan Legal dan Pendukung===
  
 +
* [[Siapa Bilang OpenBTS Ilegal?]]
 +
* [[OpenBTS: Catatan MNC dan MCC Indonesia]]
 +
* [[OpenBTS: Catatan MNC dan MCC COOL]]
 +
* [[OpenBTS : Alokasi Frekuensi Operator GSM Indonesia]]
 +
* [[GSM: Daftar Channel Frekuensi]]
  
This defines a SIP user called "310410186585294".
+
===Catatan Sejarah===
Assigning an Address in extensions.conf¶
 
We recommend this macro for dialing OpenBTS users:
 
  
[macro-dialGSM]
+
* [[2011/04/30 - Workshop OpenBTS Pertama di Indonesia dilakukan di Univ Gajah Putih Takengon Aceh Tengah]]
exten => s,1,Dial(SIP/${ARG1})
+
* [[OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan]]
exten => s,2,Goto(s-${DIALSTATUS},1)
+
* [[OpenBTS: Daftar Artikel di Media]]
exten => s-CANCEL,1,Hangup
+
* [[OpenBTS: Permohonan Kanal dan DID untuk OpenBTS]]
exten => s-NOANSWER,1,Hangup
+
* [[OpenBTS: 2013/02/19 - OpenBTS TelkomSel Mengudara di Muscat Oman]]
exten => s-BUSY,1,Busy(30)
+
* [[OpenBTS: Beroperasi di Papua]]
exten => s-CONGESTION,1,Congestion(30)
 
exten => s-CHANUNAVAIL,1,playback(ss-noservice)
 
exten => s-CANCEL,1,Hangup
 
  
 +
===Dokumentasi Video===
  
(And if any Asterisk expert has improvements to that, please feel free to submit them.) With that macro in place, the GSM handset can be assigned an extension just like any other Asterisk terminal device.
+
* http://www.metrotvnews.com/read/newsprograms/2012/10/14/14624/212/Teknologi-BTS
For example, this macro assigns extension "2103" to the handset with ISMI "310410186585291":
+
* http://youtu.be/8ogOcUSpINU (1/6)
 +
* http://youtu.be/F5d7HGuhppk (2/6)
 +
* http://youtu.be/90Jgq6bOgrQ (3/6)
 +
* http://youtu.be/cNkx_qNqdfc (4/6)
 +
* http://youtu.be/6LCuoeI57ak (5/6)
 +
* http://youtu.be/-dEqcHoIlYk (6/6)
 +
* http://www.youtube.com/watch?v=Ff_rw4kAOZg&feature=share
  
;; the name in the brackets is the context, it should be the same with the context line in sip.conf
+
===Perjuangan OpenBTS===
  
[sip-external]
+
* http://www.technologyreview.com/news/522371/how-remote-places-can-get-cellular-coverage-by-doing-it-themselves/?utm_campaign=socialsync&utm_medium=social-post&utm_source=twitter
exten => 2103,1,Macro(dialGSM,310410186585291)
 
  
  
And this macro allows a specific block of 1,000 AT&T SIMs (310410186585000-310410186585999) to be dialed by the last 4 digits of the IMSI:
 
  
exten => _5XXX,1,Macro(dialGSM,310410186585${EXTEN:-3})
+
[[Category: Wireless]]
 +
[[Category: Selular]]

Latest revision as of 08:59, 16 February 2014

Integrasi OpenBTS ke Asterisk sangat sederhana secara prinsip. Setiap SIM akan di konfigurasi sebagai SIP user menggunakan IMSI sebagai username. Proses memasukan pelanggan OpenBTS melalui dua tahap:

  1. Mendapatkan IMSI dari SIM, hal ini di implementasi dengan mengirim SMS saat handphone tersambung ke OpenBTS
  2. Masukan ke sip.conf dan extensions.conf untuk mendukung SIP user baru tersebut.

Pada dasarnya tidak banyak yang perlu di konfigurasi di Asterisk agar dia dapat berbicara dengan OpenBTS. Kita terutama perlu mengedit file

/etc/asterisk/sip.conf
/etc/asterisk/extensions.conf

Contoh konfigurasi ada di folder

/usr/local/src/openbts-2.6.0Mamou/AsteriskConfig

Di OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca OpenBTS: SMS


Cek Nomor IMSI di OpenBTS

Kita dapat juga mencek nomor IMSI di OpenBTS, setelah kita masuk ke prompt OpenBTS>

Welcome to OpenBTS.  Type "help" to see available commands.
OpenBTS> 


Ketik

tmsis

akan keluar

TMSI       IMSI            IMEI              age  used
0x4f309ebf 510890929069598               ?   22h   22h
0x4f309ec0 510112410440152               ?   22h    5s
0x4f309ec1 510110301694405               ?   22h   22h
0x4f309ec2 510104725431198               ?   22h   22h
0x4f31da5b 510110026566622               ?   15s   15s 

Nomor-nomor 510XXX adalah nomor SIM card yang terdaftar di OpenBTS yang kita operasikan.


Konfigurasi sip.conf

Contoh isi /etc/asterisk/sip.conf adalah sebagai berikut

[IMSI510110301694405]
canreinvite=no
type=friend
defaultuser=2101
; context=default
allow=gsm
host=dynamic


Atau kalau ingin menggunakan context default pastikan ada context [default] di extensions.conf

[IMSI520010104743577]
callerid=1000
canreinvite=no
type=friend
allow=gsm
context=default
host=dynamic

[IMSI510110301694405]
callerid=1111
canreinvite=no
type=friend
allow=gsm
context=default
host=dynamic

[IMSI510112410440152]
callerid=1112
canreinvite=no
type=friend
allow=gsm
context=default
host=dynamic

Konfigurasi extensions.conf

Contoh isi /etc/asterisk/extensions.conf, edit

vi /etc/asterisk/extensions.conf

cari kata-kata

[default]
;
; By default we include the demo.  In a production system, you
; probably don't want to have the demo there.
;
include => demo

Masukan sesudah kata-kata di atas, misalnya

; exten => _21XX,1,Dial(SIP/${EXTEN},30,rt)
exten => 1111,1,Dial(SIP/IMSI510110301694405,60,rt)
exten => 1112,1,Dial(SIP/IMSI510112410440152,60,rt)
exten => 2102,1,Dial(SIP/IMSI238209700014858,60,rt)
exten => 2103,1,Dial(SIP/IMSI310260254136340,60,rt)


Angka IMSI520154100006647 di peroleh dari SMS yang di terima oleh user OpenBTS.

Registrasi SIM automatis

Sumber: http://gnuradio.org/redmine/wiki/gnuradio/OpenBTSThe_use_of_autocreatepeer=yes Beberapa konfigurasi tambahan di /etc/asterisk/sip.conf yang memungkinkan registrasi SIM automatis

[general]
allowoverlap=no   ; Disable overlap dialing support. (Default is yes)
bindport=5060     ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0  ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes     ; Enable DNS SRV lookups on outbound calls

; line untuk automatic sim registration
autocreatepeer=yes
canreinvite=no
call-limit=1
type=friend
allow=gsm
context=sip-internal
host=127.0.0.1   ; asumsinya OpenBts dan Asterisk berjalan di mesin yang sama

Bagi anda yang ingin mempelajari lebih lanjut tentang asterisk sangat di sarankan untuk membaca-baca tentang VoIP atau Internet Telepon karena disini akan di terangkan lebih jauh tentang berbagai konfigurasi asterisk dan bagaimana melakukan mapping ke +62XXX menggunakan teknologi ENUM.

Referensi

Pranala Menarik

Persiapan

Script

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

OpenBTS 3.1.x

Ettus E110

Ettus N210

RangeNetworks


GPRS

Briker OpenBTS

FreeSWITCH OpenBTS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video

Perjuangan OpenBTS