Difference between revisions of "OpenSIPS: Instalasi Minimal di Ubuntu 16.04"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 68: | Line 68: | ||
+ | ==Restart== | ||
+ | opensipsctl restart | ||
+ | ==Monitor== | ||
+ | |||
+ | opensipsctl monitor | ||
+ | |||
+ | akan keluar | ||
+ | |||
+ | |||
+ | [cycle #: 8; if constant make sure server lives] | ||
+ | Server:: OpenSIPS (2.2.2 (i386/linux)) | ||
+ | Now:: Fri Oct 21 07:06:24 2016 | ||
+ | Up since:: Fri Oct 21 07:05:28 2016 | ||
+ | Up time:: 56 [sec] | ||
+ | |||
+ | Transaction Statistics: | ||
+ | tm:UAS_transactions:: 0 | ||
+ | tm:UAC_transactions:: 0 | ||
+ | tm:inuse_transactions:: 0 | ||
+ | |||
+ | Stateless Server Statistics: | ||
+ | sl:sent_replies:: 0 | ||
+ | sl:sent_err_replies:: 0 | ||
+ | sl:received_ACKs:: 0 | ||
+ | |||
+ | UsrLoc Stats: | ||
+ | usrloc:registered_users:: 0 | ||
+ | usrloc:location-users:: 0 | ||
+ | usrloc:location-contacts:: 0 | ||
+ | usrloc:location-expires:: 0 | ||
==Referensi== | ==Referensi== | ||
* https://www.opensips.org/Documentation/Install | * https://www.opensips.org/Documentation/Install |
Revision as of 07:06, 21 October 2016
Sumber: https://www.opensips.org/Documentation/Install
Siapkan aplikasi pendukung
apt-get install flex bison gcc make perl libperl-dev libxmlrpc-core-c3 libxmlrpc-core-c3-dev \ unixodbc unixodbc-dev libfreeradius2 libfreeradius-client-dev libxml2 openssl libsctp1 libsctp-dev \ libexpat1 libexpat1-dev libldap-2.4-2 libldap2-dev libsnmp30 libsnmp-base libsnmp-dev libconfuse0 libconfuse-dev \ libmysqlclient-dev mysql-client mysql-server zlib1g zlib1g-dev libmysql++ libmysql++-dev libpcre3 \ libpcre3-dbg libpcre3-dev libncurses5-dev libmysqlclient-dev libsctp-dev libssl-dev
apt-get install perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl
Optional untuk DBD::Oracle
Download the .tar.gz archive from: http://search.cpan.org/~pythian/DBD-Oracle-1.22/Oracle.pm Decompress and unpack it cd DBD-Oracle-1.22 perl Makefile.PL make make test make install
Download Source Code
cd /usr/local/src wget http://opensips.org/pub/opensips/latest/opensips-2.2.2.tar.gz tar zxvf opensips-2.2.2.tar.gz cd /usr/local/src/opensips-2.2.2
Compile
make menuconfig
pilih
Configure Compile Options Configure Excluded Modules [*] proto_sctp [*] proto_tls Save Changes Generate OpenSIPS Script Residential Script Configure Residential Script [*] ENABLE_TCP [*] ENABLE_TLS [*] USE_NAT [*] USE_HTTP_MANAGEMENT_INTERFACE Save Residential Script Generate Residential Script Compile And Install OpenSIPS Exit & Save All Changes
Copy scripts
cp -Rf /usr/local/src/opensips-2.2.2/scripts/* /usr/local/lib/opensips/opensipsctl/
Cek Configurasi
opensips -c -f /usr/local/etc/opensips/opensips.cfg
Restart
opensipsctl restart
Monitor
opensipsctl monitor
akan keluar
[cycle #: 8; if constant make sure server lives] Server:: OpenSIPS (2.2.2 (i386/linux)) Now:: Fri Oct 21 07:06:24 2016 Up since:: Fri Oct 21 07:05:28 2016 Up time:: 56 [sec] Transaction Statistics: tm:UAS_transactions:: 0 tm:UAC_transactions:: 0 tm:inuse_transactions:: 0 Stateless Server Statistics: sl:sent_replies:: 0 sl:sent_err_replies:: 0 sl:received_ACKs:: 0 UsrLoc Stats: usrloc:registered_users:: 0 usrloc:location-users:: 0 usrloc:location-contacts:: 0 usrloc:location-expires:: 0