The opensipsctl
utility is a shell script installed in /sbin
. (The path depends on the installation prefix.) It is used to manage OpensSIPS from the command line. It can be used to perform the following functions:
Start, stop, and restart OpenSIPS
Show, grant, and revoke ACLs Add, remove, and list aliases
Add, remove, and configure an AVP
Manage a Low Cost Route (LCR)
Manage a Remote Party Identity (RPID)
Add, remove, and list subscribers
Add, remove, and show the
usrloc
table in-Random Access Memory (RAM)Monitor OpenSIPS
We will learn several of its options in the next chapters. The following is the output of the opensipsctl
help command:
To configure
opensipsctl
, you have to edit the resource file, opensipsctlrc
. This script is found in /etc/opensips
. It is parsed by the opensipsctl
utility to configure the database authentication and communication parameters. Usually, it uses the FIFO mechanism to send commands to the OpenSIPS daemon...