First, add repository to system
deb http://files.freeswitch.org/repo/deb-master/debian/ wheezy main
Then add GPG key to repository
gpg --keyserver pool.sks-keyservers.net --recv-key D76EDC7725E010CF gpg -a --export D76EDC7725E010CF | apt-key add -
Now, update repository
FreeSWITCH is ready to install. Just run
apt-get install freeswitch freeswitch-meta-vanilla
Vanilla is package with configuration files. FreeSWITCH will not create config files, so we must download them separately.
Now, copy new config files
cp -a /usr/share/freeswitch/conf/vanilla /etc/freeswitch
Basicly, FreeSWITCH is ready, and you can use it.
Set values defined in old FreeSWITCH
FreeSWITCH is now listening on port 5060, which may colide with other SIP proxies.
You can set SIP port in file /etc/freeswitch/sip_profiles/internal.xml
On line 88 set desired value of SIP port (We had FreeSWITCH previously on port 5090)
vim /etc/freeswitch/sip_profiles/internal.xml <param name="sip-port" value="5090"/>
If you had users created in FreeSWITCH, copy them to new FreeSWITCH
Compilled FreeSWITCH is located in /usr/local/freeswitch
cd /usr/local/freeswitch/conf/directory/default cp user.xml /etc/freeswitch/directory/default
You can simply rewrite whole dialplan folder
cp /usr/local/freeswitch/conf/dialplan /etc/freeswitch
If you had configured access-lists, you can also rewrite whole file
cp /usr/local/freeswitch/conf/autoload_configs/acl.conf.xml /etc/freeswitch/autoload_configs
Do not forget restart FreeSWITCH
service freeswitch restart
That is all. You can now remove old FreeSWITCH and enjoy your new version.