<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thank you sir, will give this a shot!<br><br><div><hr id="stopSpelling">From: gmaruzz@gmail.com<br>Date: Thu, 21 Aug 2014 23:58:03 +0200<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: [Freeswitch-users] mod_skypopen, new HOWTO<br><br><div dir="ltr"><div><span id="ecxSkype_4.3.37_is_the_only_Skype_client_version_that_works">Many users have discovered with dismay they can no more operate the old Skype client used by mod_skypopen.<br></span></div><div>
<span id="ecxSkype_4.3.37_is_the_only_Skype_client_version_that_works"></span><br>Starting first week of August 2014, Microsoft stopped operating the
authorization <br>servers for Linux Skype clients prior to version 4.3.37.
<br><br><span id="ecxSkype_4.3.37_is_the_only_Skype_client_version_that_works">Skype 4.3.37 is the only Skype client version that works</span>. <br>Those new Linux Skype clients require Pulseaudio.
<br><br></div><div>New Skype clients and Portaudio use much more CPU on your machine.<br><br></div><div>With new Skype client, MAX 6 INSTANCES OF THE SAME SKYPEUSERNAME (see below)<br></div>Follow this page and use the automatic installer, you will be all
set.<BR>Please read it all.<br> <BR><div>===========================================================================<br><h2><span id="ecxSHORT_BLUEPRINT:_STEPS_NEEDED_TO_USE_SKYPOPEN">SHORT BLUEPRINT: STEPS NEEDED TO USE SKYPOPEN </span></h2>
<ul><li> Compile and install FreeSWITCH
</li><li> Compile and install mod_skypopen
</li><li> Install (on Linux) Xvfb and Pulseaudio
</li><li> Configure Pulseaudio for low cpu usage
</li><li> Download and install Skype client (on Linux, this is done by the <b>INTERACTIVE INSTALLER</b>)
</li><li> Configure Skype client (on Linux, this is done by the <b>INTERACTIVE INSTALLER</b>)
</li><li> Install and edit mod_skypopen config file (on Linux, this is done by the <b>INTERACTIVE INSTALLER</b>)
</li><li> Create a script to start the Skype clients with needed parameters (on Linux, this is done by the <b>INTERACTIVE INSTALLER</b>)
</li><li> Start Skype clients using the script
</li><li> Start FreeSWITCH
</li><li> Load mod_skypopen in FreeSWITCH
</li><li> Profit!
</li></ul>
<b>NEW Interactive INSTALLER for LINUX</b>: using the provided
script, you'll end up with a complete and configured, ready for calls,
installation of Skypopen on FreeSWITCH!!! (see below)
<BR><br><br><h3><span id="ecxWhich_Skype_Client_to_use_on_Linux">Which Skype Client to use on Linux</span></h3>
Use the <b>dynamic</b> build of the <b>stable</b> Skype client (4.3.37), is the only one that works <br><BR>(the <b>interactive installer automatically download and install the correct Skype client</b>, see below).
<BR><b>Don't</b> use the package for your distro
<BR>
<h3> <span id="ecxSupported_Platforms_and_Distros"> Supported Platforms and Distros</span></h3>
Skypopen runs well on Linux and Windows. Does <b>not work on Mac OSX</b>.
<BR>Most used Linux distro are:
<BR>
<ul><li> Debian 7 64 bit server (wheezy)
</li><li> CentOS 6.5.x 64 bit server(RHEL6)
</li><li> Ubuntu SERVER LTS 64 bit (Trusty - 14.04)
</li></ul><h3><span id="ecxLinux">Linux </span></h3>
<h4> <span id="ecxWhich_packages_are_required_to_build_mod_skypopen_on_Linux"> Which packages are required to build mod_skypopen on Linux </span></h4>
You will need the libraries needed by Skype client and by the fake X server.
<BR><b>REALLY, you need all the packages below!</b>
<BR>You can cut and paste the follow:
<BR>
<h5> <span id="ecxDebian_7.x_required_packages"> Debian 7.x required packages </span></h5>
In addition to the packages required to build and run FreeSWITCH, you will need the following:
<BR>
<pre> # Dependencies for building mod_skypopen:
apt-get install \
libx11-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev \
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
</pre>
<pre> # Infrastructure needed to run skype client:
apt-get install \
xvfb pulseaudio
</pre>
<pre> # Dependencies of skype client:
# Enable i386 libraries installing
dpkg --add-architecture i386
apt-get update
# Install libraries
apt-get install \
fontconfig fontconfig-config gcc-4.7-base:i386 libasound2:i386 \
libasound2-plugins:i386 libasyncns0:i386 libattr1:i386 libaudio2:i386 \
libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 \
libavcodec53:i386 libavutil51:i386 libc6:i386 libc6-i686:i386 libcap2:i386 \
libcomerr2:i386 libcups2:i386 libdbus-1-3:i386 libdirac-encoder0:i386 \
libexpat1:i386 libffi5:i386 libflac8:i386 libfontconfig1 libfontconfig1:i386 \
libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libglib2.0-0:i386 \
libgnutls26:i386 libgpg-error0:i386 libgsm1:i386 libgssapi-krb5-2:i386 \
libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libice6:i386 \
libjack-jackd2-0:i386 libjbig0:i386 libjpeg8:i386 libjson0:i386 \
libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 \
liblcms1:i386 liblzma5:i386 libmng1:i386 libmp3lame0:i386 libogg0:i386 \
libopenjpeg2:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpcre3:i386 \
libpng12-0:i386 libpulse0:i386 libqt4-dbus:i386 libqt4-network:i386 \
libqt4-xml libqt4-xml:i386 libqtcore4 libqtcore4:i386 libqtdbus4 \
libqtdbus4:i386 libqtgui4:i386 libqtwebkit4:i386 libsamplerate0:i386 \
libschroedinger-1.0-0:i386 libselinux1:i386 libsm6:i386 libsndfile1:i386 \
libspeex1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386 \
libstdc++6:i386 libtasn1-3:i386 libtheora0:i386 libtiff4:i386 libuuid1:i386 \
libva1:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx1:i386 libwrap0:i386 \
libx11-6:i386 libx11-xcb1:i386 libx264-123:i386 libxau6:i386 libxcb1:i386 \
libxdmcp6:i386 libxext6:i386 libxi6:i386 libxml2:i386 libxrender1:i386 \
libxss1:i386 libxt6:i386 libxtst6:i386 libxv1:i386 libxvidcore4:i386 qdbus \
ttf-dejavu-core uuid-runtime zlib1g:i386
</pre>
<br>
<BR>
<h5> <span id="ecxUbuntu_14.04.x_required_packages"> Ubuntu 14.04.x required packages </span></h5>
In addition to the packages required to build and run FreeSWITCH, you will need the following:
<BR>
<pre> # Dependencies for building mod_skypopen:
apt-get install \
libx11-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev \
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
</pre>
<pre> # Infrastructure needed to run skype client:
apt-get install \
xvfb pulseaudio
</pre>
<pre> # Dependencies of skype client:
apt-get install \
fontconfig fontconfig-config gcc-4.7-base:i386 libasound2:i386 \
libasound2-plugins:i386 libasyncns0:i386 libattr1:i386 libaudio2:i386 \
libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 \
libavcodec53:i386 libavutil51:i386 libc6:i386 libc6-i686:i386 libcap2:i386 \
libcomerr2:i386 libcups2:i386 libdbus-1-3:i386 libdirac-encoder0:i386 \
libexpat1:i386 libffi5:i386 libflac8:i386 libfontconfig1 libfontconfig1:i386 \
libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libglib2.0-0:i386 \
libgnutls26:i386 libgpg-error0:i386 libgsm1:i386 libgssapi-krb5-2:i386 \
libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libice6:i386 \
libjack-jackd2-0:i386 libjbig0:i386 libjpeg8:i386 libjson0:i386 \
libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 \
liblcms1:i386 liblzma5:i386 libmng1:i386 libmp3lame0:i386 libogg0:i386 \
libopenjpeg2:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpcre3:i386 \
libpng12-0:i386 libpulse0:i386 libqt4-dbus:i386 libqt4-network:i386 \
libqt4-xml libqt4-xml:i386 libqtcore4 libqtcore4:i386 libqtdbus4 \
libqtdbus4:i386 libqtgui4:i386 libqtwebkit4:i386 libsamplerate0:i386 \
libschroedinger-1.0-0:i386 libselinux1:i386 libsm6:i386 libsndfile1:i386 \
libspeex1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386 \
libstdc++6:i386 libtasn1-3:i386 libtheora0:i386 libtiff4:i386 libuuid1:i386 \
libva1:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx1:i386 libwrap0:i386 \
libx11-6:i386 libx11-xcb1:i386 libx264-123:i386 libxau6:i386 libxcb1:i386 \
libxdmcp6:i386 libxext6:i386 libxi6:i386 libxml2:i386 libxrender1:i386 \
libxss1:i386 libxt6:i386 libxtst6:i386 libxv1:i386 libxvidcore4:i386 qdbus \
ttf-dejavu-core uuid-runtime zlib1g:i386
</pre>
<br>
<BR>
<h5> <span id="ecxCentOS_6.5.x_required_packages"> CentOS 6.5.x required packages </span></h5>
In addition to the packages required to build and run FreeSWITCH, you will need the following:
<BR>
<pre> # Dependencies for building mod_skypopen:
yum install \
libx11-devel
</pre>
<pre> # Infrastructure needed to run skype client:
yum install \
pulseaudio Xvfb xorg-x11-fonts* xz pulseaudio-utils
</pre>
<pre> # Dependencies of skype client:
# Enable libraries repo
yum localinstall <a rel="nofollow" href="http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm" target="_blank">http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm</a>
# Install libraries
yum install \
qt-x11.i686 qtwebkit.i686 glibc.i686 libgcc.i686 libstdc++.i686 libXv.i686 \
libX11.i686 libXext.i686 libXScrnSaver.i686 libcanberra-gtk2.i686 \
gtk2-engines.i686 PackageKit-gtk-module.i686
</pre>
<h4> <span id="ecxBuild_procedure_.28all_Linuxes.29_for_FS_and_mod_skypopen"> Build procedure (all Linuxes) for FS and mod_skypopen </span></h4>
Note you must install the <b>hd sounds and music</b> packages, that
includes both 8khz and 16khz (skype works at 16 khz native), eg: from
FreeSWITCH source directory: "make hd-sounds-install && make
hd-moh-install"
<BR><b>After you finished to compile FreeSWITCH, in FreeSWITCH source directory edit modules.conf and uncomment the mod_skypopen line</b>. Then, "make install" again from the FreeSWITCH root directory (this will compile and install just the mod_skypopen module).
<BR>
<pre>make install #yes, again, this time will add mod_skypopen
</pre>
<br>
<BR>
<h4> <span id="ecxPulseaudio_Configuration"> Pulseaudio Configuration </span></h4>
<h5> <span id="ecxDebian_7"> Debian 7 </span></h5>
Configuration files:
<BR>
<pre>edit /etc/default/pulseaudio
PULSEAUDIO_SYSTEM_START=1
</pre>
<pre>edit /etc/pulse/<a href="http://system.pa" target="_blank">system.pa</a> # delete or comment out all file contents, and add at the end:
load-module module-null-sink
load-module module-native-protocol-unix
</pre>
<pre>edit /etc/init.d/pulseaudio
# delete --high-priority
</pre>
<pre>edit /etc/pulse/daemon.conf
# add at the end of the file:
daemonize = yes
system-instance = yes
resample-method = trivial
flat-volumes = yes
default-sample-rate = 48000
default-sample-channels = 1
default-fragment-size-msec = 20
</pre>
Add the user running the Skype clients to pulse-access group
<BR>
<pre>adduser root pulse-access
</pre>
<h5> <span id="ecxUbuntu_14.04"> Ubuntu 14.04 </span></h5>
Configuration files:
<BR>
<pre>edit /etc/init/pulseaudio.conf
# uncomment "start on ..."
edit /etc/pulse/<a href="http://system.pa" target="_blank">system.pa</a> # delete or comment out all file contents, and add at the end:
load-module module-null-sink
load-module module-native-protocol-unix
</pre>
<pre>edit /etc/init.d/pulseaudio
# delete --high-priority
</pre>
<pre>edit /etc/pulse/daemon.conf
# add at the end of the file:
daemonize = yes
system-instance = yes
resample-method = trivial
flat-volumes = yes
default-sample-rate = 48000
default-sample-channels = 1
default-fragment-size-msec = 20
</pre>
Add the user running the Skype clients to pulse-access group
<BR>
<pre>adduser root pulse-access
</pre>
<br>
<BR>
<h5> <span id="ecxCentOS_6.5"> CentOS 6.5 </span></h5>
Configuration files:
<BR>
<pre>edit /etc/init/pulseaudio.conf
# uncomment "start on ..."
edit /etc/pulse/<a href="http://system.pa" target="_blank">system.pa</a> # delete or comment out all file contents, and add at the end:
load-module module-null-sink
load-module module-native-protocol-unix
</pre>
<pre>edit /etc/pulse/daemon.conf
# add at the end of the file:
daemonize = yes
system-instance = yes
resample-method = trivial
flat-volumes = yes
default-sample-rate = 48000
default-sample-channels = 1
default-fragment-size-msec = 20
</pre>
Add the user running the Skype clients to pulse-access group
<BR>
<pre>usermod -G pulse-access -a root
</pre>
Disable SELinux
<BR>
<pre>edit /etc/sysconfig/selinux # disabled!
</pre>
Start Pulseaudio, there is no /etc/init.d/pulseaudio, so you must start it "by hand" (eg: from /etc/rc.local):
<BR>
<pre>/usr/bin/pulseaudio --system=true --daemonize=true --log-level=info --log-target=syslog
</pre>
<h4> <span id="ecxInteractive_Skype_Client_INSTALLER_and_CONFIGURATOR"> Interactive Skype Client INSTALLER and CONFIGURATOR </span></h4>
Go to the "install" subdir of mod_skypopen sources, then execute the "<a href="http://install.pl" target="_blank">install.pl</a>" script.
<BR>
<pre>cd /usr/src/freeswitch/src/mod/endpoints/mod_skypopen/install
./<a href="http://install.pl" target="_blank">install.pl</a>
</pre>
It will ask you questions and will let you review all the values you entered before to do any real action.
<BR>Then it will download and install (where you told it) the correct
Skype client, and will create and install (where and how you told it)
all the needed configurations and startup scripts.
<BR>You'll end up with a complete and configured installation of mod_skypopen for FreeSWITCH, ready for calls.
<BR>From 0 to Skype calls in 30 seconds !!!
<BR>
<h5> <span id="ecxSkype_4.3.37_is_the_only_Skype_client_version_that_works"> Skype 4.3.37 is the only Skype client version that works </span></h5>
Starting first week of August 2014, Microsoft stopped operating the
authorization servers for Skype clients prior to version 4.3.37.
They require Pulseaudio.
Following this page and using the automatic installer you will be all
set, no problem.
<BR>
<h4> <span id="ecxHow_to_start_the_Skype_clients.2C_then_start_FreeSWITCH_and_load_mod_skypopen_on_Linux"> How to start the Skype clients, then start FreeSWITCH and load mod_skypopen on Linux </span></h4>
First you start the Skype clients with the script created by the
interactive configurator, then you start FreeSWITCH, and load
mod_skypopen in it.
<BR>
<pre>sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
/usr/local/freeswitch/bin/freeswitch
load mod_skypopen
</pre>
Yay!
<BR>
<h5> <span id="ecxProblems_in_starting_skype_clients_.3F"> Problems in starting skype clients ? </span></h5>
Check you disabled both SELinux (on CentOS) or AppArmor (on Ubuntu)
<BR><br><h3><span id="ecxMultiple_concurrent_incoming_calls_to_the_same_Skype_username">Multiple concurrent incoming calls to the same Skype username </span></h3>
<b>Solutions based on "transfer" the call to another Skype username do not work anymore with new Skype client</b>
<BR>
<h3> <span id="ecxRunning_multiple_instances_.28MAX_6.29_of_the_same_Skype_username_on_Linux.2C_for_BOTH_incoming_and_outbound_calls"> Running multiple instances (MAX 6) of the same Skype username on Linux, for BOTH incoming and outbound calls </span></h3>
<b>The new Skype client limits the concurrent instances of the same username to 6</b>
<BR><b>MAX 6 INSTANCES PER SKYPENAME</b>
(you can have many skypenames, each one with a max of 6 concurring
instances, eg: myskypenameA is used by 6 concurrent skype clients,
myskypenameB is used by 6 concurrent skype clients, myskypenameC is used
by 6 concurrent skype clients, total 36 concurrent instances on your
machine)
<BR>On Linux, you can run multiple instances of the same Skype
username (eg: multiple Skype clients that register with the Skype
networks as the same username, eg: 6 instances of the username "Bob").
On Windows, is not possible.
<BR>Please use the <b>INTERACTIVE INSTALLER</b>, it will setup all
(download and install the correct Skype client, script to start the
Skype clients, Skype client configs, skypopen.conf.xml config file).
<BR>The trick is to launch the client instances with separate
Xservers (as always with multiple clients) AND separate directories for
the Skype client's database (eg: by default it resides in the ".Skype"
directory in the user's home).
<BR>You can find an example configuration file and launch scripts in configs/multiple-instance-same-skype-username/ directory.
<BR><br><br><br clear="all"><div>Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : +39-347-2665618<br></div>
</div></div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                            </div></body>
</html>