<div dir="ltr"><div><span class="" id="Skype_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 class="" id="Skype_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 class="" id="Skype_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><p>Follow this page and use the automatic installer, you will be all
set.</p><p>Please read it all.<br> </p><div>===========================================================================<br><h2><span class="" id="SHORT_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>
<p><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)
</p><br><br><h3><span class="" id="Which_Skype_Client_to_use_on_Linux">Which Skype Client to use on Linux</span></h3>
<p>Use the <b>dynamic</b> build of the <b>stable</b> Skype client (4.3.37), is the only one that works <br></p><p>(the <b>interactive installer automatically download and install the correct Skype client</b>, see below).
</p><p><b>Don't</b> use the package for your distro
</p>
<h3> <span class="" id="Supported_Platforms_and_Distros"> Supported Platforms and Distros</span></h3>
<p>Skypopen runs well on Linux and Windows. Does <b>not work on Mac OSX</b>.
</p><p>Most used Linux distro are:
</p>
<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 class="" id="Linux">Linux </span></h3>
<h4> <span class="" id="Which_packages_are_required_to_build_mod_skypopen_on_Linux"> Which packages are required to build mod_skypopen on Linux </span></h4>
<p>You will need the libraries needed by Skype client and by the fake X server.
</p><p><b>REALLY, you need all the packages below!</b>
</p><p>You can cut and paste the follow:
</p>
<h5> <span class="" id="Debian_7.x_required_packages"> Debian 7.x required packages </span></h5>
<p>In addition to the packages required to build and run FreeSWITCH, you will need the following:
</p>
<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>
<p><br>
</p>
<h5> <span class="" id="Ubuntu_14.04.x_required_packages"> Ubuntu 14.04.x required packages </span></h5>
<p>In addition to the packages required to build and run FreeSWITCH, you will need the following:
</p>
<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>
<p><br>
</p>
<h5> <span class="" id="CentOS_6.5.x_required_packages"> CentOS 6.5.x required packages </span></h5>
<p>In addition to the packages required to build and run FreeSWITCH, you will need the following:
</p>
<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" class="" href="http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm">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 class="" id="Build_procedure_.28all_Linuxes.29_for_FS_and_mod_skypopen"> Build procedure (all Linuxes) for FS and mod_skypopen </span></h4>
<p>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"
</p><p><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).
</p>
<pre>make install #yes, again, this time will add mod_skypopen
</pre>
<p><br>
</p>
<h4> <span class="" id="Pulseaudio_Configuration"> Pulseaudio Configuration </span></h4>
<h5> <span class="" id="Debian_7"> Debian 7 </span></h5>
<p>Configuration files:
</p>
<pre>edit /etc/default/pulseaudio
PULSEAUDIO_SYSTEM_START=1
</pre>
<pre>edit /etc/pulse/<a href="http://system.pa">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>
<p>Add the user running the Skype clients to pulse-access group
</p>
<pre>adduser root pulse-access
</pre>
<h5> <span class="" id="Ubuntu_14.04"> Ubuntu 14.04 </span></h5>
<p>Configuration files:
</p>
<pre>edit /etc/init/pulseaudio.conf
# uncomment "start on ..."
edit /etc/pulse/<a href="http://system.pa">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>
<p>Add the user running the Skype clients to pulse-access group
</p>
<pre>adduser root pulse-access
</pre>
<p><br>
</p>
<h5> <span class="" id="CentOS_6.5"> CentOS 6.5 </span></h5>
<p>Configuration files:
</p>
<pre>edit /etc/init/pulseaudio.conf
# uncomment "start on ..."
edit /etc/pulse/<a href="http://system.pa">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>
<p>Add the user running the Skype clients to pulse-access group
</p>
<pre>usermod -G pulse-access -a root
</pre>
<p>Disable SELinux
</p>
<pre>edit /etc/sysconfig/selinux # disabled!
</pre>
<p>Start Pulseaudio, there is no /etc/init.d/pulseaudio, so you must start it "by hand" (eg: from /etc/rc.local):
</p>
<pre>/usr/bin/pulseaudio --system=true --daemonize=true --log-level=info --log-target=syslog
</pre>
<h4> <span class="" id="Interactive_Skype_Client_INSTALLER_and_CONFIGURATOR"> Interactive Skype Client INSTALLER and CONFIGURATOR </span></h4>
<p>Go to the "install" subdir of mod_skypopen sources, then execute the "<a href="http://install.pl">install.pl</a>" script.
</p>
<pre>cd /usr/src/freeswitch/src/mod/endpoints/mod_skypopen/install
./<a href="http://install.pl">install.pl</a>
</pre>
<p>It will ask you questions and will let you review all the values you entered before to do any real action.
</p><p>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.
</p><p>You'll end up with a complete and configured installation of mod_skypopen for FreeSWITCH, ready for calls.
</p><p>From 0 to Skype calls in 30 seconds !!!
</p>
<h5> <span class="" id="Skype_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>
<p>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.
</p>
<h4> <span class="" id="How_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>
<p>First you start the Skype clients with the script created by the
interactive configurator, then you start FreeSWITCH, and load
mod_skypopen in it.
</p>
<pre>sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
/usr/local/freeswitch/bin/freeswitch
load mod_skypopen
</pre>
<p>Yay!
</p>
<h5> <span class="" id="Problems_in_starting_skype_clients_.3F"> Problems in starting skype clients ? </span></h5>
<p>Check you disabled both SELinux (on CentOS) or AppArmor (on Ubuntu)
</p><br><h3><span class="" id="Multiple_concurrent_incoming_calls_to_the_same_Skype_username">Multiple concurrent incoming calls to the same Skype username </span></h3>
<p><b>Solutions based on "transfer" the call to another Skype username do not work anymore with new Skype client</b>
</p>
<h3> <span class="" id="Running_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>
<p><b>The new Skype client limits the concurrent instances of the same username to 6</b>
</p><p><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)
</p><p>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.
</p><p>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).
</p><p>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).
</p><p>You can find an example configuration file and launch scripts in configs/multiple-instance-same-skype-username/ directory.
</p><br><br><br clear="all"><div>Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : +39-347-2665618<br></div>
</div></div>