Professional Documents
Culture Documents
0 (java version)
Required files:
cvt server runtimes
cvt gateway pages runtimes
cvt page service runtimes
cvt status service runtimes
cvt reports runtimes
freeswitch source
dahdi driver source
libpri source
dahdi timer module source
tslcvtmono database scripts
freeswitch,tslcvt,tslpage and tslstatus startup scripts
java 8 runtimes
archives folder with dependecies deb files in it
sources.list.d folder and sources.list file
Install Dependencies:
cd dahdi-linux-complete-X.X.X+X.X.X
execute commands :
sudo make
sudo make install
sudo make config
cf42xxp driver
Install libpri :
Execute commands :
sudo make
save file.
Goto src/mod/applications/mod_conference in
freeswitch folder
open file : mod_conference.c
Search for line timer_name = "soft"; and make it
timer_name = "dahdi";
save file.
Before building freeswitch do:
sudo apt-get install gsm-utils
Indstall FreeTDM
Now we have to define some more properties related to each span in following
location:
<FreeSWITCH dir>/autoload_configs/freetdm.conf.xml
Sets context and several parameters
Here we are making first span as user side and other two as a network side using
Create dialpaln
Refer following dial plan:
<FreeSWITCH DIR>\conf\dialplan\default.xml
<? xml version="1.0" encoding="utf-8"?>
<include>
<context name="default">
<extension name="any">
<condition field="destination number" expression="^">
<action application="socket" data="127.0.0.1:8022 async full"/>
</condition>
</extension>
</context>
</include>
Now if call arrives on pri span which context set to default will be parked on
FreeSWITCH and waits for outbound socket to issue commands.
Same way we can have n number of sip extensions defined in following location:
<FreeSWITCH DIR>\conf\directory\default\
</interface>
</per_interface_settings>
</configuration>
Load Modules
Open file <FreeSWITCH
DIR>/conf/autoload_configs/modules.conf.xml
add lines
<load module="mod_dahdi_timer"/>
<load module="mod_freetdm"/>
<load module="mod_gsmopen"/>
save.
Install mono framework
sudo apt-get install mono-complete
sudo apt-get install mono-vbnc
If any package could not be installed just update first.
sudo apt-get update -fix-missing
sudo apt-get install xvfb
sudo reboot now
Install Mysql database
sudo apt-get install mysql-server
set lower_case_table_names=1 and set bind-address= * in mysql configuration file
/etc/mysql/my.cnf' under mysqld section.
start mysql server
sudo service mysql start
login to mysql
sudo mysql -u root -p
add connect permission to any remote pc.
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY
'yourpassword';
/usr/local/telesuite/scripts/tbl.sql
mysql>source /usr/local/telesuite/scripts/view.sql
Execute all mentioned sql files like this.
Install java
To install JDK 8 on ubuntu first get the jdk from oracle download site or from tsl
repo :
Filename : jdk-8u5-linux-x64.tar.gz
Download location :
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads2133151.html
Its a compressed tar file.
Copy the tar.gz file to /usr/local/src/
Open terminal.
Extract jdk tar ffile.
tar -xvf /usr/local/src/jdk-8u5-linux-x64.tar.gz
Go to usr/local/src/.
Cd /usr/local/src/
Then run the commands below to create a folder for Java JDK 8 files in the
/usr/lib directory.
sudo mkdir -p /usr/lib/jvm/jdk1.8.0/
Then run the commands below to move JDK content to the new folder.
sudo mv jdk1.8.0_05/* /usr/lib/jvm/jdk1.8.0/
To verify if Java is fully installed, run the commands below to test it.
java version
If it shows some earlier version of java there is are already old version of java
installed and used as default. To change that execute below command and
select 1.8 version of java.
Sudo update-alternatives config java
Install tomcat7
sudo apt-get install tomcat7 tomcat7-admin
sudo apt-get install authbind -this step is optional if above
step doesnt install authbind by default.
sudo service tomcat7 restart
Configure tomcat7 and jdk(java)
Make tomcat to listen on port 80:
First goto /etc/default/tomcat7 file and uncomment AUTHBIND=no and make it
AUTHBIND=yes
Now edit file /etc/tomcat7/server.xml and make port number 80 in line
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
If it shows some earlier version of java there is are already old version of java
installed and used as default. To change that execute below command and
select 1.8 version of java.
Sudo update-alternatives config java
<!--Passsowrd for inbound connection with freeswitch as defined in event socket config file-->
<entry key="fspassword">ClueCon</entry>
<!--Port numer for outbound connection from freeswitch as defined in default dialpaln-->
<entry key="fsoutboundort">8022</entry>
<!--Address of Freeswitch server-->
<entry key="fsip">192.168.100.242</entry>
<!--Maximum length if extension numbers excluding fixed phone number. Length of pilot number-->
<entry key="MaxDIDLength">3</entry>
<!--Maximum timeout to wait for switch up-->
<entry key="fsuptimeout">3</entry>
<!-- Datbase ip and name format : ip/DBname-->
<entry key="dbconnstr">192.168.100.242/tslcvtmono</entry>
<!--Database password-->
<entry key="dbpassword">freeswitch</entry>
<!--Database user name-->
<entry key="dbuser">root</entry>
<!--conference record directory same as in page services.-->
<entry key="confrecordpath">/usr/local/telesuite/cvt/recordings/conf/</entry>
<!--Path where greetings stored-->
<entry key="greetDir">/usr/local/telesuite/cvt/eng/conf/greetings/</entry>
<!--Path where prompts stored-->
<entry key="promptDir">/usr/local/telesuite/cvt/eng/conf/prompts/</entry>
<!--Path where BG music stored-->
<entry key="bgmDir">/usr/local/telesuite/cvt/bgm/</entry>
<!--Profile to use in conference.-->
<entry key="profileName">tsl</entry>
<!--Spans to use. coma separated-->
<entry key="SpansToUse">2</entry>
Path to folder usually tomcat virtual directory folder where to save the recordings. You can give http
url of that virtual directory if pages are accessed from network
<add key="VoiceFilePath" value="/var/lib/tomcat7/webapps/confrecords" />
or
<add key="VoiceFilePath" value="http://192.168.100.141/confrecords" />
apt-add-repository ppa:ehoover/compholio
apt-add-repository ppa:mqchael/pipelight
apt-get update -fix-missing
apt-get install pipelight
press tab to naviagte between buttons when license agreement asked on terminal