How to install FreePBX bulk extension module in Elastix
Bulk extension is a fabulous module to mass edit extensions. It’s a lot more useful than the in built export/import extensions in Elastix.
Here is the way to install:
- Download the module from this link: http://freepbx.org/trac/browser/contributed_modules/release/bulkextensions-18.104.22.168.tgz
- copy this file to /var/www/html/admin/modules
- tar -xvfz bulkextensions-2.5.01.tgz
- go to Unembeeded FreePBX GUI > Module Admin
- find the module and follow with the installation instructions
Disk Usage command
Sometimes it’s useful to be able to find out how much disk space a directory is taking. While there are some web interfaces or desktop applications that allows you to do that, it’s always useful to know how it can be done through a command shell.
The DU Command
To find out how much space is being used, you can use the DU (Disk Usage) command. Here a few examples of the DU command usage.
Listing a disk space summary of directory
# du -sh [directory]
Listing the disk space used for a directory and its subdirectories, sorted by disk usage
# du -h [directory] | sort -rn
Take note that the “h” switch allows displays the disk usage in human readable format (ie. kylobytes, megabytes, etc.).
Using Screen To Work Remotely
Screen is a Linux tool that allows you to keep your session alive in case your disconnected. Once you gain back remote access to your server, you can “reattach” yourself to your previous session.
One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.
To shift the window buttons to the right side do this:
allows tasks to be automatically run in the background at regular intervals. You could also use it to automatically create backups, synchronize files, schedule updates, and much more.
sudo crontab -e
This will open the crontab using the default editor.
Here is the format to add cronjobs:
* * * * * /bin/execute/this/script.sh
Here is the list of important data on AstDB
CLI> database show ampuser/1007
List DND-enabled extensions
If the DND is set using the DND feature of the IP-Phone then there is no way you can list them. Otherwise, if it is set using FreePBX feature code (*78) then here is the way to do it:
The grep program is a standard UNIX utility that searches through a set of files for an arbitrary text pattern, specified through a regular expression. By default, grep is case-sensitive (use -i to ignore case). By default, grep ignores the context of a string (use -w to match words only). By default, grep shows the lines that match (use -v to show those that don’t match).
Here is the list of some useful CLI commands
This is done using custom context module. If you’re using Elastix you must install this module (refer to Elastix witout tears)
Custom Contexts creates contexts that can be used to allow limited access to dial-plan
- Allows for time restrictions on any dialplan access.
- Allows for pattern matching to allow/deny.
- Allows for failover destinations, and PIN protected failover.
- This can be very useful for multi-tenant systems.
- Inbound routing can be done using DID or zap channel routing, this module
- allows for selective outbound routing.
- Phones can be placed in a restricted context allowing them only internal calls.