The default music on hold included with Asterisk leaves somewhat to be desired, and getting high quality replacement music in the correct formats can be a challenge. I have not managed to figure out how to convert to G722, but you can easily convert to the native Asterisk SLN format with the following commands:
Thursday, 22 October 2015
Asterisk Wideband Music on Hold
The default music on hold included with Asterisk leaves somewhat to be desired, and getting high quality replacement music in the correct formats can be a challenge. I have not managed to figure out how to convert to G722, but you can easily convert to the native Asterisk SLN format with the following commands:
Monday, 5 October 2015
Multiple PPPoE Connections on Ubiquiti AirOS
Sometimes you need to push your available hardware and software a little bit beyond their original specifications. Because AirOS is built on Linux, you actually have a fair bit of flexibility in order to do whatever you like.
I had a need to be able to run multiple PPPoE accounts on the same antenna for two reasons. Firstly, when I need to separate VoIP traffic from Data traffic, and secondly when I have two users behind the same antenna. I then use VLANs to route the traffic independently.
I had a need to be able to run multiple PPPoE accounts on the same antenna for two reasons. Firstly, when I need to separate VoIP traffic from Data traffic, and secondly when I have two users behind the same antenna. I then use VLANs to route the traffic independently.
Friday, 2 October 2015
Wednesday, 30 September 2015
Friday, 11 September 2015
Wednesday, 9 September 2015
Ubiquiti AirOS 5.6 Virtual SSID Step by Step
One of the big gripes that people have with Ubiquiti is the lack of support for Virtual SSIDs. Here is a step by step tutorial for setting up VSSIDs on Airos 5.6 devices with Vlans back to the upstream router. Please note that you will not be able to use Airmax when you have Virtual SSIDs.
This tutorial is based on information from the Ubiquiti Forums, specifically this post by AnubisSL.
Tuesday, 1 September 2015
Ubuntu 14.04 LTS/ FreeRadius / Postgresql Step-by-step
Step by step instructions for installing
FreeRadius with Postgresql on
Ubuntu 14.04 LTS
Why 14.04, well it is the current LTS release, and for production environments, I tend to stick to the latest LTS.
I am not going to be going into detail into how to install Ubuntu 14.04 Server, there are enough tutorials on that elsewhere. I need you to get to the point where you have a clean server, with SSH access, and a root prompt.
Installing software
First, let us update the apt-get info:
apt-get update
Now we need to install the basic components, these include:
Freeradius, Postgresql and it's utilities as well as the postgresql module for freeradius:
apt-get install freeradius freeradius-postgresql postgresql postgresql-contrib
This will install all the necessary components, it is normal for the DH Parameter generation to take a couple of minutes.
Configure Postgres
The Postgres installation automatically creates a user called postgres, in order to configure Postgres, you need to log into that account.
sudo -i -u postgres
Now we create the radius user and database, when creating the user, you will be prompted to create a password, make it nice and secure, and make a note for later use:
createuser radius --no-superuser --no-createdb --no-createrole -P
createdb radius --owner=radius exit
createdb radius --owner=radius exit
Change the database authentication from peer to md5 to allow login from the console:
vim /etc/postgresql/9.3/main/pg_hba.conf
Find the line that matches:
local all postgres peer
and change it to:
local all postgres md5
also find:
local all peer
and change it to:
local all md5
Reload postgresql
service postgresql restart
Import the database schema using the command below:
cd /etc/freeradius/sql/postgresql
psql -U radius radius < schema.sql
psql -U radius radius < schema.sql
Configure FreeRadius to use Postgres
Change the sql configuration as follows:
cd /etc/freeradius
vim sql.conf
vim sql.conf
change the following lines to suit your setup:
database = "postgresql"
password = "yourpassword"
password = "yourpassword"
You will also need to change the login name to leave out the realm when logging in:
Change the sql configuration as follows:
vim radiusd.conf
change the following line:
sql_user_name = "%{User-Name}"
To:
sql_user_name = "%{Stripped-User-Name}"
Also uncomment the line that reads:
$INCLUDE sql.conf
Now uncomment the line that reads "sql" under the authorize{} section, on my default config it is line 177,
also uncomment the "sql" line under the accounting{} section,
also uncomment the "sql" line under the post-auth{} section
also uncomment the "sql" line under the accounting{} section,
also uncomment the "sql" line under the post-auth{} section
cd /etc/freeradius/sites-available
vim default
Also uncomment the line that reads "sql" under the authorize{} section of /etc/freeradius/sites-available/inner-tunnel, on my default config it is line 131
vim inner-tunnel
Restart the FreeRadius server to load the new config, and you should be good to go.
service freeradius restart
Thursday, 13 August 2015
Step by Step - Fallout Shelter on your PC Tutorial
So, you want to play Fallout Shelter on your PC?
It is actually not all that difficult, just follow the steps below and you will be up and running in no time.
I tested this on my Lenovo Laptop, running on Windows 10 64-bit, your mileage may vary, but if you have any questions, just ask them in the comments section.
I must say, it is much nicer than playing on phone or even a tablet:
Ubiquiti AirOS Hairpin NAT
When setting up a port forward (Destination NAT) on a Ubiquiti AirOs device, you will find that users inside your network will not be able to use the WAN IP to access the internal device. This is because you need to add what is known as a "Hairpin NAT". Read below for instructions on how to do that, and why it is necessary.
Friday, 7 August 2015
Disabling Windows 10 Update Uploading
In a move that has a lot of users up in arms, Microsoft has changed the way that updates are delivered in Windows 10. The new Windows update system uses a torrent like function of using PCs that have already downloaded an update, to share it back onto the internet. This is fine for users with unmetered internet, but for a lot of users, these uploads churn through their data caps quite fast.
Wednesday, 5 August 2015
Ubiquiti AirOS 5.6 Cacti Templates
After many requests and much procrastination, here are the templates for AirOS 5.6 for Cacti.
You will now be able to graph individual client connection details directly from the AP!
Graphs Available:
Access Point / Client Direct Polling:
- CPU
- Combined Link Details
- Uptime
- Interface Traffic
- Air Rate
- Signal
- Airmax
- Air Rate
Connected Client Graphs:
- Combined Link Details
- Airmax
- Traffic
- Signal
- Air Rate
AP Only
- Station Count
Thursday, 16 July 2015
Monday, 13 July 2015
Monday, 29 June 2015
Wednesday, 17 June 2015
Yealink T21P Review
The Yealink T21P is an entry level IP Phone. It is in the same product class as the Snom 300, but comes in at about 20% cheaper.
The T21 comes in two models, the T21P being the POE version, which is the one I will be looking at. The only difference between the T21 and the T21P is in fact that the T21P supports 802.11af Power over Ethernet.
The T21 comes in two models, the T21P being the POE version, which is the one I will be looking at. The only difference between the T21 and the T21P is in fact that the T21P supports 802.11af Power over Ethernet.
Thursday, 28 May 2015
Top Free Windows Softphones Compared
![]() |
Photo by Irita Kirsbluma |
Which softphone you use may depend largely on why you want to use a softphone in the first place. For example, if you are looking for an alternative to FOP (Flash Operator Panel) then I would suggest the excellent Dialplate application, but if you are just a normal desktop user looking for a cheap way to make use of your company's existing VOIP infrastructure, then have a look at these.
When comparing features I will only be looking at the features available in the free version, and not the premium one where applicable.
Wednesday, 27 May 2015
Mikrotik DHCP Option 43 Tutorial
Step by step instructions to get DHCP Option 43 working on Mikrotik RouterOS 6.x
Many consumer devices allow you to pass configuration parameters like auto provisioning servers and such via dhcp. DHCP option 43 is used by Yealink, Ubiquiti and Ruckus as well as many others.
My need was to use it to send the address of the provisioning server to a number of Yealink T23G IP phones to make deployment easier.
Wednesday, 13 May 2015
Top Mikrotik Tips
Running Mikrotiks in the field? Here are my top tips for making the most of your Mikrotik Experience:
1. Secure
1.1 - Users and Passwords
1.2 - Access Ports
1.3 - Protect against brute force hacks
1.4 - Anonymize your connection
2. Manual Backups (and why a backup is not a backup)
3. Blocking Sites
5. Remote wake your computer
6. Remote access to your network
Friday, 8 May 2015
Asterisk Dialplan Show and Tell 1
NEW FEATURE ALERT!!
I hope to make this a regular feature on my blog. If you have an awesome dialplan that you would like to share, please let me know and I will analyze and feature it here!
My first share is the dialplan that I use for clients who need added features beyond basic calling. This includes call diverts as well as voicemail.