Difference between revisions of "Menggunakan openserctl"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | ==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 | # openserctl | ||
/usr/sbin/openserctl 1.2 - $Revision: 2135 $ | /usr/sbin/openserctl 1.2 - $Revision: 2135 $ |
Revision as of 17:26, 7 March 2008
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