Install ChanSkype on FreePBX/Trixbox

Submitted by dcbour on June 19, 2007 - 10:29am.

This is my first posting (ever) so please, go easy on me.  I will state up front that this work is based on the input of several people and draws on those resources including the excellent script by Tim Hunt as well as feedback from ChanSkype themselves.

Once again, this is for a FreePBX (confirmed installation on Centos 4.4/4.5 and Trixbox 2.0/2.2 systems)

I've posted in bold the actual text to type.  Hopefully split lines are not a problem.

Begin, by ensuring the necessary packages are available...gcc, qt-devel, kernel-devel, asterisk-devel

yum install gcc qt-devel kernel-devel.i686 asterisk-devel

Next, download and install the Tim Hunt chanskype installation package

wget http://www.timhunt.net/stuff/chanskype/chanskype-trixbox.tgz
tar -zxf chanskype-trixbox.tgz
cd chanskype.trixbox
./install.sh

Once installed, you need to create accounts (aka channels in ChanSkype language...remember the personal license only supports 1, the business license is however many channels you buy

./makeaccount.sh 1

Now, based on the advise from ChanSkype their recommendation is to use RatPoison, a low overhead windows manager.  Tim's script already installed TWM.  The next stage removes TWM and replaces it with RatPoison

yum remove twm
wget http://savannah.nongnu.org/download/ratpoison/ratpoison-1.4.1.tar.gz
tar -zxf ratpoison-1.4.1.tar.gz
cd ratpoison-1.4.1
./configure
make
make install

Next, check to ensure the vncserver service will automatically start.  I've seen this already configured over half the time, but this will simply ensure it.

/usr/sbin/ntsysv

Find vncserver in the list, and mark it for autostart.

Next, the package itself...ChanSkype ... download latest release of chanskype located at ftp://ftp.chanskype.com/download/packages/ ... find the RedHat enterprise version (usually FC3), ie ends with FC3-RHEL4.bin, ie... chanskype-1.2.9-FC3-RHEL4.bin

wget ftp://ftp.chanskype.com/download/packages/chanskype*FC3-RHEL4.bin
chmod +x chanskype*
./chanskype-x.x.x.-FC3-RHEL4.bin

where x.x.x is the release you downloaded.

If it fails (ie, running TrixBox) repeat with 1DOT2 after the command

./chanskype-x.x.x.-FC3-RHEL4.bin 1DOT2

Next, I know...we hate to do them, but I've not found a way to get everything going right so please reboot (yes, one of two I'm going to make you do....instructions on avoiding this welcome...)

reboot

Access vnc for your server using a vnc viewer for each channel / account you installed and log into skype with your account info.  ie my server is 192.168.101.150:1 (first port assigned for skype1 account)  Nothing seems to install at port 0, the vnc default.

If when you log in, you don't see the Skype program visible but instead have a black console window with a series of errors about "pidof not found", use an editor like nano and add the following line to each of the .bash_profile files in each of the skype directories... ie:

nano /home/skype1/.bash_profile

Now add the following line:

export PATH=/sbin/:/usr/sbin/:$PATH

save it (in the case of nano, type a Ctrl-X).  Now restart vncserver by typing:

/etc/init.d/vncserver restart

log in again to the vnc account and see if Skype started...it should be running now.

Now, for each account created, assign user account in Skype.  You can close your VNC session now.

Next, edit /etc/asterisk/skype.conf for number of channels in use (same as the number from makeaccount).

nano /etc/asterisk/skype.conf

Find the line specifying the number of channels and set it accordingly...ie

channels=1

Now open freepbx...create custom trunk...add dial plan as desired...preface any dial with 00+ i.e.

001+nxxnxxxxxx
00+1nxxnxxxxxx

Then under outgoing settings, custom dial string... add:

Local/$OUTNUM$@skype

Using your editor again...add following 3 lines to extensions_custom.conf if you call it via any other contexts (ie, Dundi)

[skype]
exten => _X.,1,Dial(Skype/any/${EXTEN})
exten => _X.,2,Hangup

Remember to save settings as I've so often done by moving away without doing that...

And remember I promised one more reboot...here it is...last one...I promise...

reboot

One of the issues in Skype is it's a gui program taking it's queue from Windows Vista requiring you to validate other programs controlling it.. this is the only real quirk I've come across...albeit until I found this little hack, a real nuisance to say the least.

The next step allows ChanSkype to control it so you don't have to log in every time and "allow" ChanSkype to use Skype.#cd to your account created for skype (repeat for each account)...i.e.:

cd skype1

Now to traverse the rest of the path to allow the authentication process to be automatic in Skype's startup

cd .Skype

Don't miss the period in front of the word Skype as it's a hidden folder..next your login account on skype i.e.:

cd davebour

Edit the config.xml:

nano config.xml

Find the line:

<Authorizations></Authorizations>

Change to:

<Authorizations>chan_skype</Authorizations>

If you purchased a new license, run the registration with your code:

ivregister CS-xxxxxxxxxxxxxxxxxxxxxxxx

Now remember to backup your license file somewhere off this system should something happen.  You get two attempts at running ivregister.

Restart the vncserver once again:

/etc/init.d/vncserver restart

That's it, you should be ready to go. Log into your box, and connect to the asterisk session and check your channels...should show as 1 (or however many you purchased) licensed channels:

/usr/sbin/asterisk -rvx "skype status"

Now go make an outgoing trunk to use the Skype channel(s).  Try a test call.  You should be good.

Since Skype has a little issue in that if the internet drops, it doesn't automatically re-login when the internet becomes available, I created a basic hack script to test if Skype dropped, and by killing (albeit not gracefully - better suggestions welcome) Skype, which is monitored by ChanSkype.  When ChanSkype detects Skype is no longer running, it restarts the program.

Create the following crontab entry:

* * * * * /usr/sbin/skypetracker.sh

now using your favorite editor...

nano /usr/sbin/skypetracker.sh

enter the following

#! /bin/sh
#
/usr/sbin/asterisk -rvx "skype status" |grep "Licensed channels" |awk '{print $3}' >/skypechan
exec < /skypechan
while read SKYPECHAN
do
# if SKYPECHAN < 1, restart vncserver triggering
echo $SKYPECHAN
if [ $SKYPECHAN -lt 1 ]; then
/etc/init.d/vncserver restart
fi
done

Save and finish off by added execute permissions to the file...

chmod +x /usr/sbin/skypetracker.sh

That's it.  You've now got Skype running on your FreePBX/Trixbox with a simple monitor to ensure the channel stays connected in the event Skype loses the connection for whatever reason.

Author: atlas
July 28, 2010 - 5:53pm

Wish I have the luxury of time to consider using the benefits these site can offer.....

school grants

Author: star09
July 26, 2010 - 4:10pm

if a human being believes some past failings or individual shortcomings are attributable to convenient aspects of their life or surroundings, they are better able to expand and cope productively in the future. body armor

Author: star09
July 25, 2010 - 2:23pm

I have seen this already configured over half the time, but this will simply ensure it.
payday loan

Author: lehua999
July 22, 2010 - 9:18pm

For some reasons Replica Watches are thought to be one of the best in their way. Replica Watches,Swiss Replica Watches, Cheap Watches, Wholesale Watches, Rolex Watches, A.Dunhill Watches, A.Lange&Sohne Watches, Alain Silberstein Watches, Audemars Piguet Watches, B.R.M Watches, For the ladies is designed in chic styles and designs and there shiny appearance enhances ladies elegance. Baume & Mercier Watches, Bell&Ross Watches, Blancpain Watches, BMW Watches, Breguet Watches, Breitling Watches, Burberry Watches, Bvlgari Watches, Calvin Klein Watches, Carl F. Bucherer Watches, Are definitely a excellent decision if you're looking for higher excellent watches with captivating look. Cartier Watches, Chanel Watches, Chopard Watches, Christian Dior Watches, Chronoswiss Watches, Concord Watches, Corum Watches, D&G Watches, De Witt Watches. All real E-Sprit Watches are sold at heavy prices that go far beyond the spending budget of many widespread people. Ebel Watches, Emporio Armani Watches, Fendi Watches, Ferrari Watches, Fossil Watches, Franck Muller Watches. New Girard Perregaux Watches – L.U.C Tourbillon Tech Steel Wings. Glashutte Watches, Graham Watches, Gucci Watches, Guess Watches, Hamilton Watches, Harry Winston Watches, Hermes Watches, Is one of its most popular and one of the most unique men's watches available today.

Author: chan
July 21, 2010 - 9:01pm

Share your content to the world; let’s people easy to find you. Social Bookmarking make it easy for you. Submit your breaking news and let’s we do the rest. If you want an easier way, Submit RSS feed to Directory so the people can follow your update automatically.

We know, at this time ‘Social bookmarking’ is increasing popular besides search engine where we can find the latest update of news. Almost all kinds of information we can get from them such as Car Brand, Sport, Business, etc; or a specific information like Bollywood Star or Latest Mobile Phone

For Used Stationary Bikes information, please visit the site was I found.

Author: star09
July 20, 2010 - 4:29pm

In the business license is however many channels you buy buy paragard

Author: star09
July 18, 2010 - 4:10pm

Butterflies appeared in his stomach and his knees felt weak as he wondered what she was imagining. His own thoughts were running rampant as he watched her, noticing how large her clit was as she rubbed it furiously hairy bush, reminding him once again how much Etienne reminded him of her mother hairy collection. ABB728019390 порно tactical gear

Author: lehua999
July 16, 2010 - 11:36pm

Yahoo! Shopping is the best place to comparison shop for Replica Watches, Swiss Replica Watches, Cheap Watches, Wholesale Watches, Rolex Watches, A.Dunhill Watches, A.Lange&Sohne WatchesAlain Silberstein Watches, Audemars Piguet Watches, B.R.M Watches, Baume & Mercier Watches, We carry cheap men's, women's, gold Watches and jewelry at discounted Prices. Bell&Ross Watches, Blancpain Watches, BMW Watches, Breguet Watches, Breitling Watches, Burberry Watches, Bvlgari Watches, Calvin Klein Watches, Carl F. Bucherer Watches, Cartier Watches, Chanel Watches, Chopard Watches, Christian Dior Watches, Chronoswiss Watches,Appears in the new advertising campaign of SAP, the inter-enterprise software company and software supplier. Concord Watches, Corum Watches, D&G Watches, De Witt Watches, E-Sprit Watches, Ebel Watches, Emporio Armani Watches, Fendi Watches, Ferrari Watches, Fossil Watches, Are some of the finest watches in the world, made by Italian watch makers. Franck Muller Watches, Girard Perregaux Watches, Glashutte Watches, Graham Watches, Gucci Watches, Guess Watches, Hamilton Watches, Harry Winston Watches, Hermes Watches, Compare products, compare prices, read reviews and merchant ratings.

Author: star09
July 17, 2010 - 4:45pm

I've not found a way to get everything going right so please reboot (yes, one of two I'm going to make you do....instructions on avoiding this welcome...) canadian pharmacy online

Author: QQQ
July 12, 2010 - 8:58am

Turning the knob gently, he looked in and saw his daughter fingering herself, lost in her own pleasure free porn videos. The sight of his little girl's fingers sliding effortlessly in and out of her love nest cause an immediate erection free sex videos. Butterflies appeared in his stomach and his knees felt weak as he wondered what she was imagining. His own thoughts were running rampant as he watched her, noticing how large her clit was as she rubbed it furiously hairy bush, reminding him once again how much Etienne reminded him of her mother hairy collection. ABB728019390 порно

Author: atlas
June 21, 2010 - 5:03pm

Wish I have the luxury of time to consider using the benefits these site can offer.....

hand cuffs

Author: john100
June 21, 2010 - 3:16am

Dear Datuk Seri I guess a congratulation is in order. A small one until the people responsible for this scandalous HP0-J22 thing are punished. It is a tribute to you to take the cover off this thing. I think this sent a message of what People First, Performance Now means. Action is better than words. And 70-649 braindump I think it will sent message that you mean business. This will be good for you and for MCA. As a member of the public, I am interested to find out who planned the scam and who were involved. There will not be any closure until these people are punished and punished severely. This must be done quickly else the anger HP0-J24 will mount. As it is we see one law for the rich and powerful and another law for the ordinary people. I hope you can emphasize to MACC not to drag its feet. Otherwise the stigma of cows and cars will bear home. The government have a lot HP0-J33 of thing to do correctly to gain back credibility and trust. I hope you will not let this be one of the thing that got lost along the way. It should not be an item in the next election. The faster this get disposed the better it will be. a small congratulation

Author: ipplayer
July 19, 2007 - 8:51pm

Hello,

Can the syste be installed on windows 2003 server?
Do you offer installation and configuration of Asterisk and chanskype? If so, how do you charge?
Thanks a lot.

Mike

Author: AllManKind
June 27, 2007 - 1:31am

Thanks for the great how to

I got Http error 404 not found after i did a ./install.sh

i guess skype has removed that link.

i disable skype.repo and download manually skype
and installation so far so good

thanks

Author: edwin111
May 24, 2010 - 3:45am

My Major problem with chanskype is the voice quality.

Person A - (On SIP Phone)

Person B - (On Skype Phone)

The incoming voice is fine for person A. (100% fine, no issues what so ever)
The incoming voice for person B is honorable free scripts. (The actual voice can be heard. so its not garbled.. Its that it does not sound human, (Distant and very computerized) (Like no high or low frequency)
- If need be i can make a recording of it.

Skype to Skype call is 100% Fine free web hosting.
SIP to SIP Call 100% Fine.

Is this normal for chanskype cheap web hosting, or is everyone else getting no voice problems through it?

What SIP Codecs does chanskype work well with dedicated servers?
And whats the best way to use it.

Author: trevisa
September 25, 2007 - 12:39pm

The repo information has changed.
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc

after .../fedora/ there used to have a /3/, that no longer exists.
But, When I do yum install skype, I get missingf dependecies, like below.

Error: Missing Dependency: libQtDBus.so.4 is needed by package skype
Error: Missing Dependency: libQtNetwork.so.4 is needed by package skype
Error: Missing Dependency: libstdc++.so.6(GLIBCXX_3.4.4) is needed by package skype
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package skype
Error: Missing Dependency: libQtCore.so.4 is needed by package skype
Error: Missing Dependency: libsigc-2.0.so.0 is needed by package skype
Error: Missing Dependency: libQtGui.so.4 is needed by package skype
Error: Missing Dependency: qt4-x11 >= 4.2 is needed by package skype

How can I solve it?

Thaks,

Felipe

Author: dcbour
April 10, 2008 - 10:42pm

never figured I'd miss these ..but since they started a couple months after the posting, I never looked back...
If you by chance are following these comments, drop me a line back (via email) at - reverse name and domain - desktopsolutioncenter.ca@dcbour. Lame spam attempt I know but better than name at domain.com as that's too well hacked by the bots today.
D.

Author: star09
July 24, 2010 - 8:26pm

We are Huge fans of Celtic Thunder and we're praying they come back to Halifax, Nova Scotia. We enjoyed the show soooo much when they were here last year. Please, please, please come back! duty belts

Author: desprado7 (not verified)
April 22, 2010 - 6:25am

After a successful installation of Asterisk 1.4.8/Optware on the OpenWRT whiterussian 0.9, start the asterisk console. When "gtalk" and "jabber" commands are available, it is ready braindump for action:

root@OpenWrt:/opt/etc/asterisk# asterisk -r
Asterisk 1.4.8, Copyright (C) 1999 - 2007 Digium, Inc. and vmware certification others.
Created by Mark Spencer
Asterisk comes with PMI-001 ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type rcdd training 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.8 currently running on OpenWrt (pid = 28709)
Verbosity is at least 11
-- Remote UNIX connection

Author: marrydavidson101
July 24, 2010 - 7:44am

ccvpTurning the knob gently, he looked in and saw his daughter fingering herself, lost in her own pleasure free porn videos. The sight of his little girl's fingers sliding effortlesslycisaTurning the knob gently, he looked in and saw his daughter fingering herself, lost in her own pleasure free porn videos. The sight of his little girl's fingers sliding effortlesslycisco certificationTurning the knob gently, he looked in and saw his daughter fingering herself, lost in her own pleasure free porn videos. The sight of his little girl's fingers sliding effortlesslya+ certification

Author: cesar2024
July 23, 2008 - 9:14pm

can you help me to install Chanskype on trixbox 2.6.1
because hall the time y use the script CHanskype tell me the kernel devel is not installez but the kernel is install on my trixbox very sorry for my poor english y am french from montreal

Author: marrydavidson101
June 22, 2010 - 6:10am

sscp dumpskernel devel is not installez but the kernel is install on my trixbox very sorry for my poor english y am french from montrealvcp trainingkernel devel is not installez but the kernel is install on my trixbox very sorry for my poor english y am french from montrealXK0-002kernel devel is not installez but the kernel is install on my trixbox very sorry for my poor english y am french from montrealsun certification