Technical Information

PBX Configuration - Native Asterisk

Although many asterisk users use one of the GUI interfaces such as Elastix or Freepbx, some users prefer to configure using the text files.

The files are typically located in the etc/asterisk directory.  You will need to edit the files using vi, pico or an other text editor.  It is wise to make a backup copy of the file before editing just in case.

 

 

By default, your SIP trunk will be initially setup to use SIP registration with user and password.  For added security, you may want to configure your trunk  to authenticate on your IP address if you have a static Ip address.  This change can be done in our portal. The instructions below relate to the SIP regisatration setup.

 

You will be supplied with 4 parameters: 

  1. The Ip address of our switch (shown as 12.34.56.78 in our examples)
  2. The username (shown as user00) in our examples)
  3. A secret (show as KMvJQC4sAM5SCD as a random password in our examples)
  4. A DID number (5141234567 in our examples)

 

Two files need to be edited.  SIP conf sets up the trunk to connect to our switch.  Extensions.conf is used to direct the incoming did to its destination

 

SIP.CONF

 

  1. Add the register string in the [general] section.  register => client00:KMvJQC4sAM5SCD@12.34.56.78
  2. Add the server definition for this route.  In the example below, this has been called [prodosec]
  3. Depending on your network configuration, the user and secret configuration lines may not be necessary
  4.  We recommend using the ulaw g711 codec.  We can configure for g729 alaw, but this is only recommended if you are facing bandwidth restrictions. Voicequality is slightly worse with the g729  code.

 

EXTENSIONS.CONF

 

  1. In the context referred to in the SIP.conf file ([from_trunk] in this example, add the routing for your DID

 

You will need to run asterisk -r ad reload for the new settings to take

 

sales@stormqloud.ca
Montreal 514-316-6400
Toronto 416-477-6070
Toll Free 877-424-0514
  4795 Ste Catherine W
  Suite 203
  Westmount
  Qc H3Z1S8