In this tutorial I am going to cover following topics.

1) Setting up freeswitch on Ubuntu.

2)Try demo-ivr application,voicemail

3) Create  simple dialplan.

1)Setting up freeswitch on Ubuntu.

        Install FreeSWITCH

Setting freeswitch on ubuntu is pretty  easy. Open terminal and execute following commands.
apt-get install python-software-properties
add-apt-repository ppa:freeswitch-drivers/freeswitch-nightly-drivers
apt-get update
apt-get install freeswitch freeswitch-lang-en freeswitch-sounds-en-us-callie-8000

You can also download  freeswitch-lang-de, freeswitch-lang-fr  etc to support different language.freeswitch will be installed in /opt directory.

Enabling FreeSWITCH

nano /etc/default/freeswitch

FREESWITCH_ENABLED="true"

Start freeSWITCH.

execute invoke-rc.d freeswitch start or  sudo /opt/freeswitch/bin/freeswitch .

If you get  following error it means freeswitch is running in background.you can try sudo /opt/freeswitch/bin/fs_cli.
Error: stacksize 4194303 is too large: run ulimit -s 240 or run /opt/freeswitch/bin/freeswitch -waste.
auto-adjusting stack size for optimal performance...
Cannot lock pid file /opt/freeswitch/run/freeswitch.pid.
To stop freeswitch  execute invoke-rc.d freeswitch stop.

2) Try some sample demo IVR,voicemail,etc..

Go to /conf/diaplan/default.xml. Search for extension name  “ivr_demo”.  To try ivr_demo you need to call  on 5000 .

I assume you have started freeswitch in terminal and you have command prompt something like “freeswitch@user>”

Try following commands if you have not configured sip account.

load mod_portaudio

pa call 5000

pa hangup.

In /conf/dialplan/default.xml  search for  <extension name=”vmain”> . To try voicemail you need to call on 4000 .

3)Create simple dialplan

Go to /conf/diaplan/default.xml.  add following code

<extension name=”mydemo”>
<condition field=”destination_number” expression=”^5343$”>
<action application=”answer”/>
<action application=”say” data=”en number pronounced 12345″/>
</condition>
</extension>

in console execute   “reloadxml” and call on 5343 and see what happens.  please refer following link

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_say
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_phrase
http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML

Next Tutorial I will show how to configure freeswitch in German Language.