Difference between revisions of "YATE: Konfigurasi User"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 24: | Line 24: | ||
${username}^$=-;error=noauth | ${username}^$=-;error=noauth | ||
+ | |||
+ | |||
+ | ==Contoh untuk OpenBTS== | ||
+ | |||
+ | Edit | ||
+ | |||
+ | vi /usr/local/etc/yate/regfile.conf | ||
+ | |||
+ | Isi | ||
+ | |||
+ | [2030] | ||
+ | password=123456 | ||
+ | [2031] | ||
+ | password=123456 | ||
+ | [2032] | ||
+ | password=123456 | ||
+ | |||
==Referensi== | ==Referensi== |
Latest revision as of 15:42, 3 August 2012
Regfile adalah modul registrasi. Regfile dapat digunakan untuk authentikasi, registrasi, dan routing dari user dari file. Regfile dikembangkan sebagai modul demo bagi mereka yang ingin mengembangkan sendiri authentikasi, registrasi atau modul routing. File config-nya adalah regfile.conf
; you have to put username as a category and password into key password [username] ;password=something
Contoh, untuk meregistrasi Grandstream Budgetone SIP phone, dengan username bt101, formatnya adalah:
[bt101] password=mysecretpass
Di regfile.conf tersedia bagian spesial [general]
[general] ; auth setups the user.auth handler priority auth=100 ; register setups the user.register and user.unregister ; handlers priority register=100 ; route setups the call.route handler priority route=100
CATATAN!! Jika kita ingin agar hanya mereka yang terdaftar yang dapat melakukan call. Jika perlu menambahkan di regexroute.conf di bagian [default] kalimat berikut,
${username}^$=-;error=noauth
Contoh untuk OpenBTS
Edit
vi /usr/local/etc/yate/regfile.conf
Isi
[2030] password=123456 [2031] password=123456 [2032] password=123456