Difference between revisions of "Compile OpenSER"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
Menginstalsi OpenSER dengan cara mengcompile jauh lebih sulit daripada menginstalasi menggunakan apt-get install. Sangat di sarankan untuk mengggunakan apt-get install.
 +
 +
 
Siapkan software pendukung
 
Siapkan software pendukung
  
Line 78: Line 81:
 
* [[OpenSER Softswitch]]
 
* [[OpenSER Softswitch]]
 
* [[VoIP]]
 
* [[VoIP]]
 +
'''Bold text'''

Revision as of 06:36, 11 March 2008

Menginstalsi OpenSER dengan cara mengcompile jauh lebih sulit daripada menginstalasi menggunakan apt-get install. Sangat di sarankan untuk mengggunakan apt-get install.


Siapkan software pendukung

# apt-get install flex bison gcc make
# apt-get install libperl5.8 libperl-dev
# apt-get install libxmlrpc-c3 libxmlrpc-c3-dev
# apt-get install unixodbc unixodbc-dev
# apt-get install libradiusclient-ng2 libradiusclient-ng-dev
# apt-get install libxml2
# apt-get install openssl libsctp1 libsctp-dev
# apt-get install libexpat1 libexpat1-dev
# apt-get install libldap2 libldap2-dev
# apt-get install libsnmp10 libsnmp-dev
# apt-get install libconfuse0 libconfuse-dev
# apt-get install libmysqlclient15off libmysqlclient15-dev mysql-client-5.0 mysql-server
# apt-get install zlib1g zlib1g-dev

Jika kita ingin menggunakan PostgresQL

# apt-get install libpq5 libpq-dev

Ambil source code dari

http://www.openser.org/pub/openser/latest/src/

Jika anda tidak menggunakan TLS, lakukan

# cp openser-1.3.0-notls_src.tar.gz /usr/local/src/
# cd /usr/local/src/
# tar zxvf openser-1.3.0-notls_src.tar.gz
# cd openser-1.3.0-notls

Jika anda menggunakan TLS, lakukan

# cp openser-1.3.0-tls_src.tar.gz /usr/local/src/
# cd /usr/local/src/
# tar zxvf openser-1.3.0-tls_src.tar.gz
# cd openser-1.3.0-tls

Compile menggunakan perintah

# make
# make modules
# make install

Atau

# make && make modules && make install


Konfigurasi OpenSER

Semua file konfigurasi openser hasil compile terdapat di

/usr/local/etc/openser

Edit /usr/local/etc/openser/openser.cfg

# vi /usr/local/etc/openser/openser.cfg

Pastikan

loadmodule "mysql.so"
loadmodule "auth.so"
loadmodule "auth_db.so"


modparam("usrloc", "db_mode",   0)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")



Pranala Menarik

Bold text