Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

ArgumentParameterDescription
-h, --help Shows the help message.
-c, --createlogin_nameCreates a new account.
-u, --updatelogin_nameUpdates an account.
-r, --removelogin_nameRemoves an account.

...

ArgumentParameterDescription
--levelstringAccount level Account level (required for creation). Accepted values: ServiceProvider ,  Organization, User.
--namestringContact name (required for creation).
--loginlogin_nameControl panel login name (required for creation).
--auto<empty>Automatic password generation.
--passwordpasswordControl panel password (required for creation).
  • On account creation: if --phonepassword option is not supplied, the phone password is set equal to this password.
  • On account update: if previously the phone password was the same with the control panel password and --phonepassword option is not supplied, the phone password is set equal to this passwordif previously the phone password was the same with the control panel password and --phonepassword option is not supplied, the phone password is set equal to this password.
--phonepasswordphonepasswordPhone password (for level for level = User and phone terminal extensions only and phone terminal extensions only).
  • On account creation: if not supplied, the phone password is set equal to the control panel password.
  • On account update: if supplied, even if previously the phone password was the same with the control panel passwordphone password was the same with the control panel password, the phone password is updated.
--parent_loginlogin_nameLogin name of the account that creates this child account (required for creation of organizations and users).
--emailstringE-mail address (required for creation).
--companystringCompany Name.
--telephonenumberPhone number.
--faxnumberFax number.
--addressstringStreet.
--citystringCity.
--statestringUS state.
--pcodestringPostal code.
--countrystringCountry code (required for creation).
--timezonestringTimezone name (required for creation).
--languagestringInterface language as specified by the ISO 639–1 standard (required for creation).
--phone_languagestringPhone language as specified by the ISO 639–1 standard (required for extension creation).
--charging_planstringCharging plan name. The charging plan must already be created in the parent account.
--template_idnumberID of the permissions and limits template. You must provide the ID of a template for the account level you want to create.
--typestringExtension type (for level =   User only). Allowed values: 'term', 'queue', 'ivr', 'conference', 'voicecenter', 'callback', 'callcard', 'intercom', 'queuecenter' (this is not required).
--numbernumberExtension number (for level =   User only) (required for creation).
--labelstringExtension label (for level =   User only) (this is not required and if it is not provided, label will default to extension number).
--extension_template_idnumberID of extension template (for level =   User only) (this is not required).
--sendmail<empty value><empty value>Send an welcome email to the account owner.
Always sent on account creation. On update, sent only if this flag is set.
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 --remove newaccount

Update Phone Terminal PasswordUpdate Phone Terminal Password

Shell
/usr/local/voipnow/bin/account.sh --update newphoneterminal --phonepassword "21tryme68"

Resend Account DetailsResend Account Details

Shell
/usr/local/voipnow/bin/account.sh --update newaccount --company "Updated Organization" --password "pass20G5Z" --sendmail

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.