This script allows you to change account (service providers, organizations or users) permissions, limits, and phone numbers.
Usage
/usr/local/voipnow/bin/accountprefs.sh --update[options]
where the [options] available are:Argument | Parameter | Description |
---|---|---|
--organizations_mng | true|false | Manages organizations. |
--organization_perm_mng | true|false | Manages organization or user permissions. |
--extensions_mng | true|false | Extension management. |
--bill_plans_mng | true|false | Charging plan management. |
--ext_feat_mng | true|false | Extension feature management. |
--sounds_mng | true|false | Sound management. |
--phone_sip_mng | true|false | Phone extension SIP management. |
--see_stacked_mng | true|false | See stacked phone numbers. |
--strunk_mng | true|false | Phone SIP trunking management |
--callapi_manag | true|false | Manage CallAPI. |
--callerid_manag | true|false | Manage CallerID. |
--public_phone_mng | true|false | Phone numbers management. |
--prov_manag | none|view|modify | Provisioning management. |
--allow_see_extensions | true|false | Allow the account to view all the extensions for a client. Extension level only. |
--multi_user | true|false | User is multi-user aware. User level only. |
--organizations_cnt | number|unlimited | Maximum number of organizations. Service provider level only. |
--users_cnt | number|unlimited | Maximum number of users. Service provider and organization levels. |
--terminal_cnt | number|unlimited | Maximum number of phone extensions. Service provider, organization, and user levels. |
--queuemember_cnt | number|unlimited | Maximum number of queue members. Service provider, organization, and user levels. |
--queue_cnt | number|unlimited | Maximum number of Queue extensions. Service provider, organization, and user levels. |
--ivr_cnt | number|unlimited | Maximum number of IVR extensions. Service provider, organization, and user levels. |
--conference_cnt | number|unlimited | Maximum number of Conference extensions. Service provider, organization, and user levels. |
--callback_cnt | number|unlimited | Maximum number of Callback extensions. Service provider, organization, and user levels. |
--callcard_cnt | number|unlimited | Maximum number of Calling Card extensions. Service provider, organization, and user levels. |
--callerid_cnt | number|unlimited | Maximum number of callback CallerIDs. Service provider, organization, and user levels. |
--callcardcode_cnt | number|unlimited | Maximum number of calling card codes. Service provider, organization, and user levels. |
--intercom_cnt | number|unlimited | Maximum number of Intercom/paging extensions. Service provider, organization, and user levels. |
--voicecenter_cnt | number|unlimited | Maximum number of Voicemail Center extensions. Service provider, organization, and user levels. |
--queuecenter_cnt | number|unlimited | Maximum number of Queue Login Center extensions. Service provider, organization, and user levels. |
--mailboxes_cnt | number|unlimited | Maximum number of mailboxes. Service provider, organization, and user levels. |
--storage_size | number|unlimited | Maximum disk size available for files (in MB). All levels. |
--voice_size | number|unlimited | Maximum disk size available for voicemail (in MB). Service provider, organization, and user levels. |
--record_size | number|unlimited | Maximum disk size available for call recording (in MB). Service provider, organization, and user levels. |
--max_concurent | number|unlimited | Maximum number of public concurrent calls. Service provider, organization, and user levels. |
--max_intconcurent | number|unlimited | Maximum number of internal concurrent calls. Service provider, organization, and user levels. |
--text2speech_cnt | number|unlimited | Maximum number of concurrent text to speech. Service provider, organization, and user levels. |
--expire | date(YYYY-MM-DD)|unlimited | Date of account expiration. Service provider, organization, and user levels. |
--channels | number,number, ... | none | Assigned public phone numbers. Service provider, organization, and user levels. |
--organization_type | business|residential | Type of organization. Organization level only. |
Examples
Enable Service Provider Child Accounts Management
The example below enables Organizations management as well as Extensions and Users management for the service provider account.
/usr/local/voipnow/bin/accountprefs.sh --update newserviceprovider --organizations_mng true --extensions_mng true
Set Service Provider Permissions and Limits
The example below enables all of the service provider's permissions and sets all its limits to the 100 value.
/usr/local/voipnow/bin/accountprefs.sh --update newserviceprovider --organizations_mng true --organization_perm_mng true --extensions_mng true --bill_plans_mng true --ext_feat_mng true --sounds_mng true --phone_sip_mng true --see_stacked_mng true --strunk_mng true --callapi_manag true --callerid_manag true --public_phone_mng true --prov_manag none --allow_see_extensions true --organizations_cnt 100 --users_cnt 100 --terminal_cnt 100 --queuemember_cnt 100 --queue_cnt 100 --ivr_cnt 100 --conference_cnt 100 --callback_cnt 100 --callcard_cnt 100 --callerid_cnt 100 --callcardcode_cnt 100 --intercom_cnt 100 --voicecenter_cnt 100 --queuecenter_cnt 100 --mailboxes_cnt 100 --voice_size 1200 --record_size unlimited --storage_size 20--max_concurent 1000 --max_intconcurent 1200 --expire unlimited
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.