This script allows you to create a new extension, update the extension's options, or remove an extension.
Usage
/usr/local/voipnow/bin/extension.sh[options]
where <command> is one of:Argument | Parameter | Description |
---|---|---|
-h, --help | Shows the help message. | |
-c, --create | number | Creates a new extension. |
-u, --update | number | Updates an extension. |
-r, --remove | extendednumber | Removes an extension. |
and available [options] are:
Argument | Parameter | Description |
---|---|---|
--auto | <empty> | Automatic password generation. |
--password | password | Password used for logging in to the phone. |
--parent_login | string | Login name of the user that creates this extension (required for create and update operation). |
--label | string | Extension label (default to number on extension creation). |
--type | string | Extension type (required for creation). |
--extension_template_id | number | ID of extension template. |
Examples
Add New Extension
/usr/local/voipnow/bin/extension.sh --create 010 --parent_login newqueue --label "Queue Extension" --type "queue"
Update Extension
/usr/local/voipnow/bin/extension.sh --update 010 --label "First Queue"
Remove Extension
/usr/local/voipnow/bin/extension.sh --remove 0040*010
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.