OpenBTS: Yate Config Test

From OnnoWiki
Jump to navigation Jump to search

Konfigurasi untuk percobaan

regfile.conf

Edit

vi /usr/local/etc/yate/regfile.conf 

Isi dengan

[2030]
password=123456
caller=2030

[2031]
password=123456
caller=2031

[2032]
password=123456
caller=2032

regexroute.conf

Edit

vi /usr/local/etc/yate/regexroute.conf

Isi dengan

[default]
; untuk call ke cell & pstn
${rtp_forward}^yes$^=;formats=${oformats}
^08.*$=sip/sip:\0@192.168.0.6:5060
^021.*$=sip/sip:\0@192.168.0.6:5060

atau

${rtp_forward}^yes$^=;formats=${oformats}
^08.*$=sip/sip:\0@192.168.0.5:5061
^021.*$=sip/sip:\0@192.168.0.5:5061


; terakhir, semua telepon di approve supaya tidak Unauthorized
${rtp_forward}^yes$^=;formats=${oformats}
.*=return true


regexroute.conf langsung untuk IMSI

Ini bisa di tambahkan langsung untuk debugging

^9999$=sip/IMSI510555550000000@127.0.0.1:5062

Beberapa Teknik Debugging

Selalu lihat

  • /var/log/yate
  • /tmp/VBTS.log

Buat trap pada regexroute.conf

.*=tone/milliwatt


Beberapa Teknik Routing Outgoing call yang GAGAL TOTAL

Teknik ini Gagal & jangan digunakan

^08\(.*\)$=sip/sip:2032@192.168.0.5:5061/08\1;tonedetect_out=yes
^08.*$=sip/sip:2032@192.168.0.5:5061/\0
^021.*$=sip/sip:2032@192.168.0.5:5061/\0
^021\(.*\)$=sip/sip:2032@192.168.0.5:5061/021\1;tonedetect_out=yes

tonedetect_out=yes tidak berefek apa-apa :( ..


Teknik Routing yang perlu di Test

Kalau kita punya dua (2) Analog Telepon Adapter (ATA) ada baiknya coba fork

  • Coba Dial Sekaligus
^08.*$=fork sip/sip:\0@192.168.0.5:5061 sip/sip:\0@192.168.0.6:5060;stoperror=busy
^021.*$=fork sip/sip:\0@192.168.0.6:5060 sip/sip:\0@192.168.0.5:5061;stoperror=busy
  • Coba Dial Satu-Satu, kalau gagal semua kirim busy tone
^08.*$=fork sip/sip:\0@192.168.0.5:5061 | sip/sip:\0@192.168.0.6:5060;stoperror=busy
^021.*$=fork sip/sip:\0@192.168.0.6:5060 | sip/sip:\0@192.168.0.5:5061;stoperror=busy
  • Coba dial satu-satu, beri selang 3 detik; terakhir kalau gagal kirim busy tone
^08.*$=fork sip/sip:\0@192.168.0.5:5061 |next=3000 sip/sip:\0@192.168.0.4:5060;stoperror=busy
^021.*$=fork sip/sip:\0@192.168.0.4:5060 |next=3000 sip/sip:\0@192.168.0.5:5061;stoperror=busy

Referensi

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