...
Shell |
---|
/usr/local/voipnow/bin/account.sh <command> [options] |
Argument | Parameter | Description |
---|---|---|
-h, --help | Shows the help message. | |
-c, --create | login_name | Creates a new account. |
-u, --update | login_name | Updates an account. |
-r, --remove | login_name | Removes an account. |
...
Argument | Parameter | Description |
---|---|---|
--level | string | Account level (required for creation). Accepted values: ServiceProvider , Organization , User . |
--first_name | string | Contact's first name (required for creation). |
--last_name | string | Contact's last name (required for creation). |
--login | login_name | Control panel login name (required for creation). |
--auto | <empty> | Automatic password generation. |
--password | password | Control panel password (required for creation).
|
--phonepassword | phonepassword | Phone password (for level = User and phone terminal extensions only).
|
--parent_login | login_name | Login name of the account that creates this child account (required for creation of organizations and users). |
string | E-mail address (required for creation). | |
--company | string | Company Name. |
--telephone | number | Phone number. |
--fax | number | Fax number. |
--address | string | Street. |
--city | string | City. |
--state | string | US state. |
--pcode | string | Postal code. |
--country | string | Country code (required for creation). |
--timezone | string | Timezone name (required for creation). |
--language | string | Interface language as specified by the ISO 639–1 standard (required for creation). |
--phone_language | string | Phone language as specified by the ISO 639–1 standard (required for extension creation). |
--charging_plan | string | Charging plan name. The charging plan must already be created in the parent account. |
--template_id | number | ID of the permissions and limits template. You must provide the ID of a template for the account level you want to create. |
--type | string | Extension type (for level = User only). Allowed values: 'term', 'queue', 'ivr', 'conference', 'voicecenter', 'callback', 'callcard', 'intercom', 'queuecenter' (this is not required). |
--number | number | Extension number (for level = User only) (required for creation). |
--label | string | Extension label (for level = User only) (this is not required and if it is not provided, label will default to extension number). |
--extension_template_id | number | ID of extension template (for level = User only) (this is not required). |
--sendmail | <empty value> | Send an welcome email to the account owner. Always sent on account creation. On update, sent only if this flag is set. |
--role | string | Role of the user to be created (for level = User only). Allowed values: 'member', 'administrator' , 'owner' (required for creation). |
Note |
---|
When creating a User level account, it is also possible to create an associated extension using the --type, --number, --label, --extension_template_id parameters. Extension creation is optional. |
...
Shell |
---|
/usr/local/voipnow/bin/account.sh --create newserviceprovider --level ServiceProvider --first_name "Service" --last_name "Provider Name" --password "pass20G5Z" --email "newservice_provider@example.com" --company "Service Provider Company" --telephone "021.21.223.23" --fax "021.21.223.23" --address "This is the service provider address" --city "Some City" --state "Alsace" --pcode "111111" --country "Fr" --timezone "Europe/Paris" --language en --charging_plan "Default charging plan" |
...
Shell |
---|
/usr/local/voipnow/bin/account.sh --create neworganization --level Organization --first_name "Organization" --last_name "Name" --password "pass20G5Z" --parent_login newserviceprovider --email "neworganization@example.com" --company "Organization Company" --telephone "021.21.223.23" --fax "021.21.223.23" --address "This is the organization address" --city "Some City" --state "Alsace" --pcode "111111" --country "Fr" --timezone "Europe/Paris" --language en |
...
Shell |
---|
/usr/local/voipnow/bin/account.sh --create newuser --level User --first_name "User Name" --last_name "Test" --password "pass20G5Z" --parent_login neworganization --email "newuser@example.com" --company "User Company" --telephone "021.21.223.23" --fax "021.21.223.23" --address "This is the user address" --city "Some City" --state "Alsace" --pcode "111111" --country "Fr" --timezone "Europe/Paris" --language en --phone_language en --role administrator |
Update Account Email
Shell |
---|
/usr/local/voipnow/bin/account.sh --update newaccount --email "newcl2@example.com" |
...
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.