Difference between revisions of "Instalasi openser"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Cara ini cukup stabil digunakan di Ubuntu 7.10. Tapi tampaknya tidak terlalu stabil di Ubuntu 8.04. | |
− | $ sudo apt-get install openser | + | Instalasi OpenSER menggunakan apt-get dapat dilakukan dengan perintah berikut, Perhatikan kita menginstalasi menggunakan user biasa, bukan root, |
+ | |||
+ | $ sudo apt-get install openser openser-mysql-module mysql-server | ||
[sudo] password for user: | [sudo] password for user: | ||
+ | |||
+ | Sayang, tampaknya teknik ini tidak stabil untuk OpenSER versi 1.3. Tampaknya untuk versi 1.3 lebih di sarankan untuk meng[[Compile OpenSER | compile OpenSER]] daripada menginstalasi menggunakan apt-get. | ||
+ | |||
Edit file /etc/default/openser | Edit file /etc/default/openser | ||
Line 11: | Line 16: | ||
RUN_OPENSER=yes | RUN_OPENSER=yes | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Konfigurasi Minimal== | ||
+ | |||
+ | |||
+ | Edit /etc/openser/openser.cfg | ||
+ | |||
+ | # vi /etc/openser/openser.cfg | ||
+ | |||
+ | Pastikan | ||
+ | |||
+ | loadmodule "mysql.so" | ||
+ | loadmodule "auth.so" | ||
+ | loadmodule "auth_db.so" | ||
+ | loadmodule "mi_fifo.so" | ||
+ | |||
+ | |||
+ | # modparam("usrloc", "db_mode", 0) | ||
+ | modparam("usrloc", "db_mode", 2) | ||
+ | modparam("auth_db", "calculate_ha1", yes) | ||
+ | modparam("auth_db", "password_column", "password") | ||
+ | modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo") | ||
+ | |||
+ | |||
+ | Lakukan | ||
+ | |||
+ | # touch /tmp/openser_fifo | ||
+ | |||
+ | |||
+ | ==Inisialisasi Database MySQL== | ||
+ | |||
+ | |||
+ | Selanjutnya adalah proses inisialisasi database openser. Pada openser yang lama dapat menggunakan perintah openser_mysql. | ||
+ | |||
+ | Bagi anda yang menggunakan openser versi yang baru mungkin harus menggunakan perintah openserdbctl untuk melakukan inisialisasi & operasi database. hal ini di terangkan dengan lebih detail di bagian [[Menggunakan openserdbctl]] | ||
+ | |||
+ | |||
+ | Bagi pengguna openser lama, aktifkan openser database | ||
+ | |||
+ | # openser_mysql create | ||
+ | MySQL password for root: | ||
+ | creating database openser ... | ||
+ | Core OpenSER tables succesfully created. | ||
+ | Install presence related tables ?(y/n):y | ||
+ | creating presence tables into openser ... | ||
+ | Presence tables succesfully created. | ||
+ | Install extra tables - imc,cpl,siptrace,domainpolicy ?(y/n):y | ||
+ | creating extra tables into openser ... | ||
+ | Extra tables succesfully created. | ||
+ | Install SERWEB related tables ?(y/n):y | ||
+ | Domain (realm) for the default user 'admin': 192.168.0.2. | ||
+ | |||
+ | creating serweb tables into openser ... | ||
+ | SERWEB tables succesfully created. | ||
+ | |||
+ | Akan keluar warning | ||
+ | |||
+ | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
+ | ! ! | ||
+ | ! WARNING ! | ||
+ | ! ! | ||
+ | ! There was a default admin user created: ! | ||
+ | ! username: admin@192.168.0.2. | ||
+ | ! password: openserrw | ||
+ | ! ! | ||
+ | ! Please change this password or remove this user ! | ||
+ | ! from the subscriber and admin_privileges table. ! | ||
+ | ! ! | ||
+ | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
+ | |||
+ | |||
+ | Biasanya bisa di ignore saja | ||
+ | |||
+ | |||
Line 16: | Line 98: | ||
# /etc/init.d/openser restart | # /etc/init.d/openser restart | ||
+ | |||
+ | |||
+ | |||
+ | Kadang-kadang openser suka hang & tidak jalan terutama kalau komputer di shutdown. Selama komputer masih running biasanya aman-aman saja. Solusinya "ajaib" harus remove & install ulang, seperti di bawah ini, | ||
+ | |||
+ | # apt-get remove openser openser-mysql-module | ||
+ | # apt-get install openser openser-mysql-module | ||
+ | # /etc/init.d/openser restart | ||
+ | |||
+ | Cek mengunakan apakah openser beroperasi dengan baik menggunakan | ||
+ | |||
+ | # openserctl moni | ||
Line 23: | Line 117: | ||
* [[OpenSER Softswitch]] | * [[OpenSER Softswitch]] | ||
+ | * [[Konfigurasi Minimal OpenSER]] | ||
+ | * [[Menggunakan openserctl]] | ||
+ | * [[Menggunakan openserdbctl]] | ||
+ | * [[Masalah File /tmp/openser_fifo]] | ||
* [[Instalasi OpenSER administrator]] | * [[Instalasi OpenSER administrator]] | ||
* [[Linux Howto]] | * [[Linux Howto]] | ||
* [[VoIP]] | * [[VoIP]] |
Latest revision as of 09:37, 17 June 2008
Cara ini cukup stabil digunakan di Ubuntu 7.10. Tapi tampaknya tidak terlalu stabil di Ubuntu 8.04.
Instalasi OpenSER menggunakan apt-get dapat dilakukan dengan perintah berikut, Perhatikan kita menginstalasi menggunakan user biasa, bukan root,
$ sudo apt-get install openser openser-mysql-module mysql-server [sudo] password for user:
Sayang, tampaknya teknik ini tidak stabil untuk OpenSER versi 1.3. Tampaknya untuk versi 1.3 lebih di sarankan untuk meng compile OpenSER daripada menginstalasi menggunakan apt-get.
Edit file /etc/default/openser
# vi /etc/default/openser
Pastikan ada
RUN_OPENSER=yes
Konfigurasi Minimal
Edit /etc/openser/openser.cfg
# vi /etc/openser/openser.cfg
Pastikan
loadmodule "mysql.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "mi_fifo.so"
# modparam("usrloc", "db_mode", 0) modparam("usrloc", "db_mode", 2) modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "password") modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
Lakukan
# touch /tmp/openser_fifo
Inisialisasi Database MySQL
Selanjutnya adalah proses inisialisasi database openser. Pada openser yang lama dapat menggunakan perintah openser_mysql.
Bagi anda yang menggunakan openser versi yang baru mungkin harus menggunakan perintah openserdbctl untuk melakukan inisialisasi & operasi database. hal ini di terangkan dengan lebih detail di bagian Menggunakan openserdbctl
Bagi pengguna openser lama, aktifkan openser database
# openser_mysql create MySQL password for root: creating database openser ... Core OpenSER tables succesfully created. Install presence related tables ?(y/n):y creating presence tables into openser ... Presence tables succesfully created. Install extra tables - imc,cpl,siptrace,domainpolicy ?(y/n):y creating extra tables into openser ... Extra tables succesfully created. Install SERWEB related tables ?(y/n):y Domain (realm) for the default user 'admin': 192.168.0.2.
creating serweb tables into openser ... SERWEB tables succesfully created.
Akan keluar warning
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! ! WARNING ! ! ! ! There was a default admin user created: ! ! username: admin@192.168.0.2. ! password: openserrw ! ! ! Please change this password or remove this user ! ! from the subscriber and admin_privileges table. ! ! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Biasanya bisa di ignore saja
Restart openser
# /etc/init.d/openser restart
Kadang-kadang openser suka hang & tidak jalan terutama kalau komputer di shutdown. Selama komputer masih running biasanya aman-aman saja. Solusinya "ajaib" harus remove & install ulang, seperti di bawah ini,
# apt-get remove openser openser-mysql-module # apt-get install openser openser-mysql-module # /etc/init.d/openser restart
Cek mengunakan apakah openser beroperasi dengan baik menggunakan
# openserctl moni