Scroll to navigation

osipsconsole(8) OpenSIPS osipsconsole(8)

NAME

osipsconsole - utility for provisioning OpenSIPS

SYNOPSIS

osipsconsole

osipsconsole command [ parameters ]

DESCRIPTION

osipsconsole is a console like utility for provisioning OpenSIPS SIP server. It can be used to manage users, domains, aliases and other server options. If command arguments are passed it will work in non-interactive mode, and behave as old opensipsctl and opensipsdbctl tools. If no arguments are passed, it behaves as a console - you will get a prompt, and can run the available commands, with embedded help and command history -.

FILES

/etc/opensips/osipsconsolerc
~/.osipsconsolerc

COMMANDS

Displays a short usage description, including all available options.

display online users

show server's internal status

ping <uri> with SIP OPTIONS

show in-RAM online users
show in-RAM online users in short format
delete user's usrloc entries
introduce a permanent usrloc entry
introduce a temporary usrloc entry

restart OpenSIPS
start OpenSIPS
stop OpenSIPS

creates new rootCA
creates user certificate default <etcdir> is /usr/local/etc/opensips/tls

show user membership
grant user membership (*)
revoke user membership(s) (*)

show tables
reload tables
show in memory tables
add a tree
rm a tree
[<prob>] [<strip>] [<rewrite_prefix>] [<rewrite_suffix>] [<flags>] [<mask>] [<comment>] add a carrier
rm a carrier

add rpid for a user (*)
set rpid to NULL for a user (*)
show rpid of a user

add a new subscriber (*)
change user's password (*)
delete a user (*)

show db content
show cache content
reload db table into cache
add a new entry address rm <grp> <ip> <mask> <port> remove all entries for the given grp ip mask and port

show dispatcher gateways
reload dispatcher gateways
show in memory dispatcher gateways
add gateway
delete gateway

execute SQL query
execute read-only SQL query
execute SQL query from $id variable
execute read-only SQL query from $id variable
display table content

show speeddial details
list speeddial for uri
add a speedial (*)
remove a speeddial (*)
help message

list AVPs
add AVP (*)
remove AVP (*)
help message

show alias details
list aliases for uri
add an alias (*)
remove an alias (*)
help message

reload domains from disk
show current domains in memory
show domains in the database
add the domain to the database
delete the domain from the database

send raw FIFO command

show dialplan tables
reload dialplan tables
add a rule
removes the entire dialplan table
removes all the given dpid entries
removes all the given dpid/prio entries

send raw unixsock command

adds new route
removes route
lists route(s)
lists route(s)
lists all routes
droute help
adds new rule(s)
removes rules
lists rules(s)
lists rules(s)
lists rules(s)
dr rules help
dr help

db presence adds the presence related tables
adds the extra tables
migrates DB from 1.5 to 1.6
!entirely deletes tables!
!entirely deletes and than re-creates tables!
dumps current database to file
restores tables from a file
creates a new db from an existing one

lists the underlying db files in DB_PATH
db_dump the underlying db file to STDOUT
installs db.new by db -> db.old; db.new -> db
appends data to an existing db;output DB_PATH/db.new
appends data to a new instance of db; output DB_PATH/db.new
exports table data to plain-txt files in dump_dir
imports plain-txt table data and creates new db tables in db_path

NOTES

Commands labeled with (*) will prompt for a MySQL password. If the environment variable PW is set, the password will not be prompted.

IP addresses must be entered in dotted quad format e.g. 1.2.3.4

AUTHORS

see /usr/share/doc/opensips/AUTHORS

This manual page was written by Alejandro Rios P. <alerios@debian.org>, based on opensipsctl manpage by Bogdan-Andrei Iancu <bogdan@opensips.org>, for the Debian project (and may be used by others).

SEE ALSO

opensips(8),opensips.cfg(5),opensipsctl(8),osipsconfig(8)

Full documentation on opensips is available at http://www.opensips.org/.

Mailing lists:

users@lists.opensips.org - opensips user community

devel@lists.opensips.org - opensips development, new features and unstable version
22.11.2009 opensips-console