Elastix Basics Lab
Elastix Basics Lab
For you to register a device on an Elastix server you need to have valid credentials that will allow you
to identify your device to the server and enable you to use the server resources.
This provides a level of security where a random individual cannot plug in a VOIP device and start
using the server resources to make or receive calls.
To create extensions, type of trunk e.g. SIP, IAX2, ZAP or Custom, is done from the Create Extension
menu illustrated below:
There are a number of device types for the extensions. We need to determine which device type we are
using prior to creating the extension.
Generic SIP Device : SIP is the Standard protocol for VoIP handsets and ATA's.
Generic IAX2 Device : IAX is 'Inter Asterisk Protocol', a newer protocol supported by a few devices
(eg, PA1688 based phones, and the IAXy ATA).
Generic ZAP Device : ZAP is a hardware device connected to your Asterisk machine eg, X100P
TDM400, TE110P etc.
Other (Custom) Device : Custom is a general term used for any non standard device, such as H323. It
can also be used for "mapping" an extension to an external number (eg: to route extension 2010 to
1300151151, we can create a custom extension 2010 and in the "dial" text box enter:
Local/1300151151@outbound-allroutes.
We shall create a SIP extension. Therefore you should select Generic SIP Device from the device drop-
down list then click “Submit”.
You will notice a few fields that you will need to populate. The important ones are:
1.User Extension ( The extension number that people call to reach the device )
2. Secret ( the extensions password )
3. The FAX extension is disabled as we will not use that functionality.
4. Voicemail is not required (for now).
5. Privacy manager is disabled
6. Dictation service is also disabled.
Submit when done and don’t forget the red bar to apply the changes as shown in the image below.
Voicemail
To enable voicemail on an extension simply "enable" it when you create the extensions or it may be
added later on when you decide that the extension requires a voicemail. If you require email
notification of your voicemail, you may enter your email address in the email address field.
Go back to the Extension Option of Elastix and click on the extension for which you want to activate
the voicemail function. Scroll down to the Voicemail and directory section and do the following:
Follow Me
After setting up the extensions, you need to decide if you want Elastix to call another pre-
arranged extension, if the extensions called do not answer.
Select the extensions that you want to define (the extension selection is on the right of the
screen).
Ring strategy: ringallv2 (to call the main numbers then the other numbers)
Extension List: the list of extensions in order of the way you want them to ring.
Ring time: 20 seconds
Destination if no answer: Core – Hangup
Every time the primary extension is called, Elastix will try to connect to extension and if no answer, it
will call the other extensions in the order they were listed. If still no answer, it will simply hang up.
Ring Group
A ring group is a group of extensions that will ring when there is an external incoming call.
You can even put your Mobile Phone number in the ring group if you want to. For the
mobile phone to work, you must have the appropriate route and trunk set up.
When there is an incoming call to the ring group, the phones nominated in the selected
group will ring. You may select different ring group for each of the incoming trunk or you
may nominate the same group for all the trunks, in which case you will only need to define
only one ring group.
Endpoint Scan
This allows you to use Elastix to configure the phone with the correct Extension and the other details
needed for the phone to register with Elastix. It only covers the popular phone models, but I am sure
more will be added as time goes by. Also it is dependent on the model of phone as not all models
support this feature. It assumes that the phone is set as default (e.g. in the state it was when removed
from the box).
Before you use the Endpoint Manager, you should have setup your Extensions in Freepbx, as it will
provide these as a dropdown box so that you can assign each Extension to a phone.
You will notice the input box beside the ENDPOINT SCAN button. Here we will enter, the address of
our network, however, it differs slightly from what we may have entered into Elastix. The reason for
this is that the subnet mask uses a different method of describing it.
If you are running a simple network, you probably have a subnet mask set as 255.255.255.0. This can
also be written as /24. For most network technicians, this is common knowledge, and also know how
the similar numbers for other subnets and again it requires a subject on its own, so for the time being
accept that 255.255.255.0 equals /24
The reason for the change is that Elastix makes use of a product called NMAP which performs a search
on your Network, and with the Elastix implementation, it requires the subnet to be entered in the /24
format.
Once you have entered that, press SCAN and if successful, and you have some compatible phones, you
should see the following screen.
Under the Phone type, drop down the box and it should show the models. Select the correct model.
Next select the user extension that this phone will handle.
If done correctly, you should end up with something similar to above. Once you are happy with the
settings click on all the boxes underneath the SET button and click on the SET Button.
Monitoring Elastix
We shall monitor Elastix from the command line to view more detailed workings of the Elastix server.