FreeSWITCH

How to Configure FreeSWITCH on Windows Part 1

Last week we looked at how to install FreeSWITCH along with a basic overview of the popular VoIP platform.
Now it’s time to get into the good stuff. In this article I will describe a simple scenario where FreeSWITCH could be installed and provide its services. We will also go through all the necessary configuration files and the basic configuration options that you definitely need to know when configuring FreeSWITCH.
Note: Keep in mind that this article (and the complete FreeSWITCH article series) is based on Windows installation, although configuration files on any platform are more or less the same.

FreeSWITCH Network Scenario

Freeswitch can be incorporated into your existing data network by just connecting your FreeSWITCH hosted PC into your existing LAN network. Softclient phones can be installed on your network PCs, VoIP phones can be separately incorporated into the LAN and also analog phones can be used by attaching them on special adaptors called ATAs.
All that is missing is your connectivity to the “outside world,” therefore a connection to a VoIP provider is all you need to “rock your world.” A schematic representation of your local VoIP network is shown below:
FreeSWITCH Network Scenario

Giving Life to Your PBX system

Based upon our simple network layout, we need to make sure that users are able to register on our FreeSWITCH Network Scenario PBX. Therefore, first, we need to create users and configure the internal SIP profile for accepting these users. Then we need to manipulate our dial-plan in order to be able to route calls towards the service provider and vice versa and also to enable basic service functionality.

How to Create Extension Numbers in FreeSWITCH

By default, FreeSWITCH comes with a few predefined 4-digit PBX extensions in the range of 1000 – 1020. In order to create your own extensions based on your own dial plan then you need to perform the following:
  • Move to /conf/directory/default folder and copy one of the already existing xml files into the same place and rename it as you like. My suggestion is to name it after the extension number you are about to create. For example if you want to create “5630″ user then create a file called 5630.xml.
  • Right click on the file and select “Edit.” The contents of the file should like this (Comments are written in green):
FreeSWITCH PBX extension
If you want to add your extension number into a specific call group then you need to edit thedefault.xml file located under /conf/directory. The contents of this file should look like this:
default.xml file in FreeSWITCH
Now that you have created your PBX extensions, it is time to activate your Internal SIP profile and start accepting Registration requests from your users.

How to Configure the Internal SIP Profile in FreeSWITCH

The file we are interested in is called internal.xml and is located under /conf/sip_profiles. The important parts of this file are the following:
Internal SIP Profile in FreeSWITCH
Internal SIP Profile in FreeSWITCH

How to Test the Client Registration in FreeSWITCH

For the time being, it’s adequate to manually start your FreeSWITCH PBX. Later on I will show you how to automate FreeSWITCH initiation. You will find the executable startup file underC:/Freeswitch/Freeswitch.exe. Running that file will eventually activate your PBX.
I will focus on basic console troubleshooting commands in the next article series. Therefore, now is the time to run a free softclient called x-lite which you can download fromhttp://www.counterpath.com/x-lite-download.html. You should download the stable 4.0 release for Windows.
After downloading and installing X-lite on one of your network computers you should setup the client accordingly. I will setup a client having the following characteristics:
    Username: 5630
    Password: 12345
    Authentication User Name: 5630@trainsignal.com
    Domain: trainsignal.com
    IP PBX (proxy): 192.168.10.200
This is how it looks on X-lite:
Installing X-lite
With a little bit of luck you should be able to register your extension. The display screen on X-lite should look similar to this:
X-lite display screen

Comments

Popular posts from this blog

PHPMixBill V5 mikrotik Billing Solutions

How to install Asterisk and A2billing on Ubuntu Server 12.04LTS

odbcinst: SQLGetPrivateProfileString failed with