Amportal
-------------FreePBX Control Script--------------------
Использование: amportal start|stop|restart|kill|chown
start - Starts Asterisk and Flash Operator Panel server if enabled
stop - Gracefully stops Asterisk
restart - Stop and Starts
kill - Kills Asterisk
chown - Сделать пользователем всех файлов FreePBX, текущего пользователя apache.
# amportal a ma -help
Please wait... # amportal a ma --help Please wait... USAGE: /var/lib/asterisk/bin/module_admin [params] <operation> <module> [parameters.. ] PARAMETERS: -f Force operation (skips dependency and status checks) WARNING: Use at your own risk, modules have dependencies for a reason! -R, --repo, --repos repo1,repo2,repo3...) List of repositories to check, valid options: extended,standard,commercial,unsupported) Locally installed modules will be checked despite the repository list.) OPERATIONS: checkdepends <module> Check if module meets all dependencies delete <module> Disable, uninstall, and delete the specified module deleteall Disable, uninstall, and delete ALL MODULES WARNING: Use at your own risk, this will remove ALL MODULES from your system! disable <module> Disable the specified module download <module> Download the module from the website If -f is used, downloads even if there is already a copy. enable <module> Enable the specified module info <module> Get information about a given module i18n <module> print out i18n required text for the given module install <module> Install the module (must exist in the modules directory) installlocal Installs any module not installed that is locally available installall Installs all module that exist in the repository refreshsignatures ReDownloads all modules that have invalid signatures list List all local modules and their current status listonline List all local and repository modules and their current status reload Reload the configuration (same as pressing the reload bar) reversedepends <module> Show all modules that depend on this one showupgrades Show a list of upgradable modules showannounce Shows any annoucements that maybe displayed at freepbx.org for this version uninstall <module> Disable and uninstall the specified module upgrade <module> Equivalent to running download and install upgradeall Downloads and upgrades all modules with pending updates enablerepo <repo> Enables a remote repository disablerepo <repo> Disables a remote repository
Примеры
Вывод списка установленных и доступных локально модулей
amportal a ma list
# amportal a ma list Please wait... no repos specified, using: [standard,extended] from last GUI settings Module Version Status ------------------- ----------------- ------------------- accountcodepreserve 2.11.0.0 Enabled announcement 2.11.0.4 Enabled arimanager 12.0.3 Enabled asterisk-cli 2.11.0.3 Enabled asteriskinfo 12.0.1 Enabled asternic_cdr 1.5.1 Enabled backup 12.0.8 Enabled blacklist 12.0.1 Enabled builtin Enabled bulkdids 2.11.1.4 Enabled bulkextensions 2.11.0.7 Enabled callback 2.11.0.4 Enabled callforward 12.0.5 Enabled callrecording 12.0.1.2 Enabled callwaiting 12.0.3 Enabled campon 2.11.0.2 Enabled cdr 12.0.11 Enabled certman 12.0.2 Enabled cidlookup 2.11.1.11 Enabled conferences 12.0.8 Enabled contactmanager 12.0.0beta8 Enabled core 12.0.12 Enabled customappsreg 2.11.0.2 Enabled cxpanel 3.1.8 Enabled dahdiconfig 2.11.47 Enabled dashboard 12.0.21 Enabled daynight 2.11.0.4 Enabled dictate 2.11.0.3 Enabled digium_phones 2.11.2.1 Enabled digiumaddoninstaller Not Installed (Locally available) directory 12.0.1 Enabled disa 12.0.2 Enabled donotdisturb 12.0.3 Enabled fax 12.0.5 Enabled featurecodeadmin 12.0.1 Enabled findmefollow 12.0.10 Enabled framework 12.0.17 Enabled fw_ari 12.0.7 Disabled fw_langpacks 2.11.2 Enabled hotelwakeup 2.11.3 Enabled iaxsettings 2.11.0.3 Enabled infoservices 2.11.0.3 Enabled irc 2.11.0.4 Enabled ivr 2.11.0.9 Enabled javassh 2.11.2 Enabled languages 2.11.0.2 Enabled logfiles 12.0.6 Enabled manager 12.0.2 Enabled miscapps 2.11.0.2 Enabled miscdests 2.11.0.4 Enabled music 12.0.1 Enabled outroutemsg 2.11.0.2 Enabled paging 12.0.8.1 Enabled parking 12.0.6 Enabled pbdirectory 2.11.0.1 Enabled phonebook 2.11.0.2 Enabled phpagiconf 2.11.0.0 Enabled phpinfo 2.11.0.1 Enabled pinsets 2.11.0.8 Enabled presencestate 12.0.16 Enabled printextensions 2.11.0.1 Enabled queuemetrics 2.11.0.1 Enabled queueprio 2.11.0.2 Enabled queues 12.0.13.1 Enabled recordings 12.0.3 Enabled restart 12.0.1 Enabled ringgroups 12.0.2 Enabled setcid 2.11.0.4 Enabled sipsettings 12.0.6 Enabled sipstation Not Installed (Locally available) speeddial 2.11.0.2 Enabled superfecta 2.11.16 Enabled timeconditions 12.0.6 Disabled ucp 12.0.0beta40 Enabled userman 12.0.17 Enabled vmblast 12.0.1 Enabled voicemail 12.0.26 Enabled weakpasswords 12.0.2 Enabled webrtc 12.0.0beta9 Enabled
Удаление модулей
amportal a ma uninstall <name>
# amportal a ma uninstall campon Please wait... Module campon successfully uninstalled
Установка модулей
amportal a ma install <name>
# amportal a ma install manager Please wait... Module manager successfully installed SETTING FILE PERMISSIONS................Done Removing any dangling symlinks Dangling symlinks removed