PBX Admin Tool
Managing PBX Administrators and Global Settings across a Vodia cluster
This utility enables centralized management of multiple Vodia PBXs or clusters, allowing administrators to add, delete and modify individual admin accounts, configure settings, and monitor version and system usage.
You will need to install Node.js and npm
Install the Vodia PBX Admin Tool via NPM.
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g pbx-admin
Verify the instalation
pbx-admin --version
1.0
Configuration
This tool requires a configuration file located at ~/.pbx-admin.conf
This file must include the following settings:
-
username
The administrator username. -
password
The administrator password. -
server
The server address.
Ensure that this file is properly configured before using the tool.
Example Configuration File:
Create the file - nano ~/.pbx-admin.conf
username:admin
password:securepassword123
server:https://pbx1.example.com https://pbx2.example.com https://pbx3.example.com
Options
pbx-admin add
Add a new PBX administrator. This option requires the following parameters:
Required:
-
--username <admin_username>
Specify the username of the new administrator. -
--password <admin_password>
Set the password for the new administrator.
Optional:
-
--display <admin_display_name>
Provide a display name for the administrator. Defaults to the username if not specified. -
--email <admin_email>
Provide an email address for the administrator. Defaults to none. -
--ip <ip_restrictions>
Define IP restrictions for the administrator. Accepts individual IP addresses or CIDR ranges. -
--api <true|false>
Enable or disable API access for the administrator. Defaults tofalse. -
--phone <admin_phone>
Provide a phone number for the administrator. Defaults to none.
Usage Examples:
pbx-admin add --username jerry --password "password!" --display "Jerry Thomas" --email jerry@vodia.com --phone 0433337285 --ip 1.1.1.1/32
pbx-admin delete
Delete an existing PBX administrator. Provide the username of the administrator to be removed.
Required:
<admin_username>
Specify the username of the administrator to delete.
Usage Example:
pbx-admin delete jerry
pbx-admin modify
Modify the details of an existing PBX administrator. This option requires the following parameters: