Difference between revisions of "Menggunakan openserctl"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | 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. | ||
+ | |||
+ | |||
==Menyiapkan openserctl== | ==Menyiapkan openserctl== | ||
Revision as of 17:31, 7 March 2008
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.
Menyiapkan openserctl
Edit /etc/openser/openserctlrc
# vi /etc/openser/openserctlrc
Pastikan
## your SIP domain SIP_DOMAIN=openser.org
## database type: MYSQL or PGSQL, by defaulte none is loaded DBENGINE=MYSQL
## database host DBHOST=localhost
## database name DBNAME=openser
## database read/write user DBRWUSER=openser
## database read only user DBROUSER=openserro
## password for database read only user DBROPW=openserro
## database super user DBROOTUSER="root"
## type of aliases used: DB - database aliases; UL - usrloc aliases ## - default: none ALIASES_TYPE="DB"
## control engine: FIFO or UNIXSOCK ## - default FIFO CTLENGINE="FIFO"
## path to FIFO file OSER_FIFO="FIFO"
## check ACL names; default on (1); off (0) # VERIFY_ACL=1
## ACL names - if VERIFY_ACL is set, only the ACL names from below list ## are accepted # ACL_GROUPS="local ld int voicemail free-pstn"
## presence of serweb tables - default "no" # HAS_SERWEB="yes"
## verbose - debug purposes - default '0' # VERBOSE=1
## do (1) or don't (0) store plaintext passwords ## in the subscriber table - default '1' # STORE_PLAINTEXT_PW=0
Menjalankan openserctl
# openserctl /usr/sbin/openserctl 1.2 - $Revision: 2135 $ Existing commands:
-e -- command 'start|stop|restart' restart ............................ restart OpenSER start .............................. start OpenSER stop ............................... stop OpenSER
-e -- command 'cisco_restart' - restart CISCO phone (NOTIFY) cisco_restart <uri> ................ restart phone configured for <uri>
-e -- command 'online' - dump online users from memory online ............................. display online users
-e -- command 'monitor' - show internal status monitor ............................ show server's internal status
-e -- command 'ping' - ping a SIP URI (OPTIONS) ping <uri> ......................... ping <uri> with SIP OPTIONS
-e -- command 'ul|alias' - manage user location or aliases ul show [<username>]................ show in-RAM online users ul show --brief..................... show in-RAM online users in short format ul rm <username> [<contact URI>].... delete user's UsrLoc entries ul add <username> <uri> ............ introduce a permanent UrLoc entry ul add <username> <uri> <expires> .. introduce a temporary UrLoc entry
-e -- command 'fifo' fifo ............................... send raw FIFO command