Sunday, December 21, 2014

Asterisk Freeswitch FreePBX FreeTDM Skypopen FusionPbx Mysql Odbc

download Asterisk: Asterisk-13
Libpri: libpri-1.4-current
Dahdi: dahdi-linux-complete-current
Download AsteriskNOW: AsteriskNOW-current-x86_64-DVD

Asternic Call Center Stats Lite:asternic-stats-1.x
Asternic CDR Stats freePBX Module: AsternicCDR1.x

Chan_dongle
chan_dongle-1.1.r14
chan_dongle-asterisk13

download FreePBX
FreePBX13.0.0
FreePBX2.11

Download FreePBX Distro
FreePBX Distro13, 64bit, Asterisk13

freeswitch:freeswitch_install
Automatic Calling subscribers-25,000rubles:
CallCenter | Webinterface | Databaseoutgoingcalls

Installing FreeSWITCH FusionPBX Skypopen FreeTDM DAHDI mode on Centos
yum update
Disable SELinux
/bin/sed-i-es, 'SELINUX=enforcing', 'SELINUX=disabled', /etc/selinux/config
reboot

install dependencies
yum install make ncurses-devel unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel autoconf automake gcc-c++ git-core libjpeg-devel libtool subversion autoconf
automake libtoolgcc-c++ ncurses-devel makelibX11-devel Xvfbalsa-utilslibXv libXScrnSaver xorg-x11-fonts*alsa-lib libXScrnSaver libtiff-devel libjpeg-devel kernel kernel-devel gitxzxz-devel mesa-dri-drivers
sqlite sqlite-devel pcrepcre-devel speex-devel libedit-devel bison patch
alsa-libfontconfigfreetype glibc libgcc libICElibSMl ibstdc++ libX11 libXau libxcb
libXcursor libXext libXfixes libXi libXinerama libXrandr libXrender libXScrnSaver libXv
php php-pdo php-mysql

set ldns and ldns-devel
yum install ldnsldns-devel-y
yum install http*
yum install mysql*
chkconfig mysqld on
service mysqld start

Ask a MySQL password
/usr/bin/mysqladmin-urootpassword"yourpassword"

Install and configure the ODBC
yum install unixODBC-devel mysql-connector-odbc

We establish a symbolic link from libmyodbc5.soonlibmyodbc.so.[64]-64-batOS.
ln /usr/lib64/libmyodbc5.so /usr/lib64/libmyodbc.so

Run:
odbcinst-j. Displays alist  ofconfiguration files.

#Odbcinst-j
unixODBC2.2.14
DRIVERS............:/etc/odbcinst.ini
SYSTEMDATASOURCES:/etc/odbc.ini
FILEDATASOURCES..:/etc/ODBCDataSources
USERDATASOURCES..:/root/.odbc.ini
SQLULENSize.......:4
SQLLENSize........:4
SQLSETPOSIROWSize.:2

Uncomment the MySQL driver settings /etc/odbcinst.ini
Add  the following in formation to the odbc.ini file located in /etc/odbc.ini

[DEFAULT]
Driver=MySQL

[freeswitch]
Driver=MySQL
SERVER=localhost
PORT=3306
DATABASE=fusionpbx
OPTION=67108864
Socket=/var/lib/mysql/mysql.sock

We establish FreeSwit chcmod_skypopen.

cd /usr/src
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
cd freeswitch
./bootstrap.sh

git remote set-url origin https://freeswitch.org/stash/scm/fs/freeswitch.git

vim modules.conffile
Uncomment additional modules

mod_rtmp
mod_directory
mod_callcenter
mod_tts_commandline
mod_dingaling
mod_flite
mod_shout
mod_pocketsphinx
mod_cidlookup
mod_skypopen
mod_curl
mod_xml_curl

Install FreeSWITCH

cd /usr/src/freeswitch
./configure
make
make install

8kHz StandardAudio:
make sounds-install
make moh-install

16kHz High Definition Audio:
make hd-moh-install
make hd-sounds-install

32kHz Ultra High Definition Audio:
make uhd-moh-install
make uhd-sounds-install

48kHz CD QualityAudio:
make cd-sounds-install
make cd-moh-install


FreeTDM
https://wiki.freeswitch.org/wiki/FreeTDM
https://wiki.freeswitch.org/wiki/Freetdm.conf_Examples

Establish Skypopen
How to configure skypopen.ko OSSsound driver

Make sure that no audio drivers are not loaded ,otherwise nothing happens.
After entering:
lsmod|grepsnd

If you get a message drivers are loaded, try disabling the sound card in the bios.
Establish the dependence of Skype

yum install libqt xdg libqtxdg-devel qtwebkit qtwebkit-devel

When everything is in order, install audio driver Skypopen.
cd /usr/src/freeswitch/src/mod/endpoints/mod_skypopen/oss
make clean
make
insmod./skypopen.ko
mknod/dev/dspcMarch14

Interactive installer and configurator mod_skypopen.

cd /usr/src/freeswitch/src/mod/endpoints/mod_skypopen/install
./install.pl

Interactive Skype  configurator

Add a startup script inrc.local Skype client

echo "sh/usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh">> /etc/rc.d/rc.local

Related Links skypopen:
http://wiki.freeswitch.org/wiki/Mod_skypopen_Skype_Endpoint_and_Trunk

Continue FreeSwitch installation

AddUserFreeswitch:
useraddfreeswitch

Establish rules and owners to files FreeSwitch.
Copy the init script.

cd /usr/local/
chown -Rfreeswitch:freeswitchfreeswitch
chmod -Rg+w freeswitch
cd /usr/local/freeswitch/build
cp freeswitch.init.redhat /etc/init.d/freeswitch
chmod +x /etc/init.d/freeswitch
cp freeswitch.sysconfig /etc/sysconfig/freeswitch

Add installation freeswitch sysconfig

cat >> /etc/sysconfig/freeswitch<<EOT
PID_FILE=/var/run/freeswitch/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/usr/local/freeswitch/bin/freeswitch
FS_HOME=/usr/local/freeswitch
EOT

Change the rights to run an init script and add FreeSwitch to start at boot time.

chmod 765 /etc/init.d/freeswitch
/sbin/chkconfig--add freeswitch
/sbin/chkconfig--level 5 freeswitchon
/sbin/chkconfig--list freeswitch

Remove the default configs FreeSwitch from the default boot.

cd /usr/local/freeswitch/conf/dialplan/default
mv 00_ladspa.xml 00_ladspa.noload
mv 00_pizza_demo.xml 00_pizza_demo.noload
mv 01_Talking_Clock.xml 01_Talking_Clock.noload

Share CLI
cd /usr/local/bin/
ln-s /usr/local/freeswitch /bin/fs_clifs_cli

We establish FusionPBX
cd /var/www/html
mkdirfusionpbx
svn co http://fusionpbx.googlecode.com/svn/trunk/fusionpbxfusionpbx

FusionPBX correct permissions.

cd /var/www/html
chown -R apache:apachefusionpbx

cd /usr/local/freeswitch/conf/
chmod 770 'find.-typed'
chmod 660 'find.-typef'

Add apache user to the group freeswitch.
usermod -a-G freeswitch apache

We star tour services and set them to autostart.
service freeswitch start
service httpd restart
chkconfig freeswitch on
chkconfig httpd on

yum install monit

service monit start
chkconfig monit on

firefox http://youraddress/fusionpbx

softphones:
Zoiper
jitsi
MicroSIP
SjPhone
Phoner
PhonerLite
QuteCom

No comments:

Post a Comment