Build a Skype Server for Your Home Phone System
November 29th, 2005 by Andrew Sheppard in
One irritating feature of Skype is that it must be running on a computer for you to make and receive calls. That is, when your computer is off, Skype doesn't work. Moreover, when you run Skype on the computer you use day in and day out, Skype's performance (call quality, reliability and so forth) can suffer if you are doing other things that deprive it of the runtime resources it needs.
My solution was to build a Skype server that provides 24/7 phone service with the minimum of hassle and fuss. By dumping your regular phone company and taking back control of your home phone wiring using a Skype server, you will have not only a phone system with nearly the same capabilities as before—indeed, in some ways better—you will also save a bundle of money! In my case, I save a little less than $700 US each year (this year, next year, and the year after that, and so on), or about 82% off of my old phone bill.
Using a Skype server plugged in to the existing copper phone wiring of your home means that you can lift a receiver anywhere in your home, at any time, and get a regular dial tone. Incoming calls either from Skype users or regular phones ring all handsets throughout your home. Basically, you can make Skype behave like a regular phone line, but at a tiny fraction of the cost.
You have three choices when building a Skype server: buy a new computer, build a new computer or convert an old machine you have conveniently at hand. This article shows you how to build a new computer from scratch to act as a Skype server. However, whichever path you take, the configuration is the same and is covered in this article.
Skype is not an all-or-nothing proposition, as you can mix and match Skype with your existing phone system, and run the new alongside the old in parallel. That way you have the comfort of having a regular land line and, at the same time, reap the benefits of Skype, such as free Skype-to-Skype calls, and long-distance and international calls at very low rates. This is the approach this article takes, and the configuration you should be aiming for should look something like that in Figure 1. Keeping one of your regular phone lines neatly sidesteps issues such as 911, 411, regular fax and alarm system monitoring (make sure the regular phone line you keep is the one used by your home alarm).
The setup shown in Figure 1 also simplifies the configuration of your Skype server a good deal. Indeed, making multiple instances of Skype run under Linux to support multiple phone lines is another article in itself!
Whether you buy, build new or piece together a Skype server from computer parts you have at hand, you must first make sure that what you end up with will meet Skype's minimum software and hardware requirements, which are:
Fedora Core 3 (Skype also supports SUSE 9, Mandriva 10.1 and Debian 3 or newer. However, Linux support for Skype add-on hardware is presently extremely limited. In the case of the SkypeMate software used in this article, it is limited to Fedora Core 3 only).
400MHz processor.
128MB of RAM.
10MB of disk space
OSS-compatible sound device (or ALSA with OSS-compatibility layer enabled).
Broadband Internet connection.
Pay particular attention to the fact that these are minimum hardware requirements for a single phone line. If you scale these requirements in proportion to the number of phone lines you want your Skype server to support in the long run, you won't go far wrong. You might even want to build in some margin for future expansion. Skype is advancing at a phenomenal rate, with each new release bringing new features and improvements to existing features. All of this new functionality must surely come at the cost of increased hardware resources.
For my Skype server, I decided to build a new machine that would be small, both in terms of its physical size and its power consumption (as it runs 24 hours a day, 365 days a year). The specification, and cost, of my Skype server is shown in Table 1. Remember, a Skype server needs no mouse, keyboard, monitor, CD-ROM or floppy drive—other than at the time of its configuration.
Table 1. Typical Cost of Building a New Skype Server from Scratch
| Component | Cost (US) |
|---|---|
| IN-WIN BT610P.180BFU2 Black steel MicroATX computer case, 180W power supply | $39.99 |
| BIOSTAR M7VIG400 MicroATX motherboard with AMD Duron 800 mobile CPU | $69.00 |
| OCZ value series 512MB (2 x 256MB) 184-pin unbuffered PC 2700 DDR SDRAM | $43.75 |
| 10GB Hard disk drive (used—salvaged from an old system) | Free |
| Skype-to-Phone USB adapter (Figure 2) | $43.90 |
| Linux operating system | Free |
| Total cost | $196.64 |
Building your Skype server requires that you assemble it from the parts. I won't cover the nitty-gritty details as there are plenty of on-line resources to help you in this task; for example, there's a step-by-step guide to building your own PC at PCMechanic.
I'll assume that because you're a Linux Journal reader, getting Fedora Core 3 up and running on your Skype server is a no-brainer. The only important thing to remember is that Skype is a Qt application (though it's also available in a version with Qt statically linked), and the Skype API uses D-BUS. Also, disable the screensaver (after all, there won't be any screen to “save”) and power standby features as these may interfere with Skype.
Here's a step-by-step guide to setting up Linux to work with Skype (it assumes you have set up a Linux user account named skype for the purpose):
With your Skype server powered off, plug your Skype-to-Phone adapter in to your server using a USB cable and, for test purposes, connect its TEL socket to a regular phone handset.
Power up the server and log in to Linux as skype.
Download and install Skype for Linux. If you don't install from an RPM, you will have to add this file by hand, /etc/dbus-1/system.d/skype.conf:
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <!- skype.conf --> <policy context="default"> <allow own="com.Skype.API"/> <allow send_destination="com.Skype.API"/> <allow receive_sender="com.Skype.API"/> <allow send_path="/com/Skype"/> </policy> </busconfig>Start Skype and then log in. Next (steps 5 and 6) configure Skype.
Make sure Skype starts automatically at login (select Skype→Tools→Options→Privacy, and then check the box opposite Remember my password).
As you want your Skype server to provide 24/7 phone service, you will want other Skype users to see your on-line status as always Online. Select Skype→Tools→Options→General, and then set Show me as “Away” when inactive to 0 instead of 5 minutes. Set Show me as “Not Available” when inactive to 0 instead of 20 minutes. Zero, in this case, means infinity or never.
Switch to superuser mode by entering the command su and the root password.
Download install-SkypeMate.zip and unzip it to get the file install-SkypeMate (this assumes your Skype-to-Phone adapter is compatible with the SkypeMate software—check before you buy).
Change the permissions for install-SkypeMate to make it executable (skype@fc3:~$ is the command prompt; what follows is the command you should enter):
skype@fc3:~$ chmod +x install-SkypeMate
Run the SkypeMate install program:
skype@fc3:~$ ./install-SkypeMate
Exit superuser mode and reboot the Skype server. Log in again as skype.
Double-click the SkypeMate icon on your desktop (which points to /usr/bin/SkypeMate). Skype will pop up a window asking you to give SkypeMate permission to use its API to control Skype (Figure 3). Check the box Do not ask me again, and then click Yes (that way, you won't be asked to give permission again).
Select your USB Skype-to-Phone adapter as the audio device for calls (select Skype→Tools→Options→Hand/Headsets, and then under Audio Devices select the appropriate device from the pull-down list).
For your convenience when dialing, you may want to set up speed-dial numbers for your contacts list. That way, you can pick up a phone handset and simply dial, say 10#, to call a specific contact.
Test Skype by calling the echo123 call-testing service.
If you want to make calls to regular phones, you will have to sign up your Skype server account for SkypeOut, and if you want to receive incoming calls from regular phones, you will have to sign up for SkypeIn. Both services are available at Skype's cheap rates.
Where are you going to locate your Skype server? Ideally, it should be somewhere with access to power, good ventilation, an Internet connection, your regular phone lines (RJ11 sockets) and out of sight. My choice was to install my Skype server in my basement (Figure 4), which is possibly the ideal location, but not necessarily one open to everybody. If your choices are more limited, that's all the more reason to think long and hard about where to put your Skype server once it's built.

Figure 4. Skype server to provide 24/7 phone service. Server is at the top of the photo, cable modem and wireless router are to the left, and the patch board for household phone wires is to the right. In the center of the picture is the power distribution cabinet for my house.
Here's a step-by-step guide to installing your Skype server in your home:
Cancel one of your regular phone lines (not the one that serves your home alarm system).
Cut the incoming phone line that has been canceled where it enters your home (see sidebar).
Connect the Skype-to-Phone adapter to all the handsets of your canceled phone line by connecting its TEL socket to the wall socket of the canceled line using a regular phone cable having RJ11 sockets at both ends.
Test Skype again using the handsets plugged in to the canceled line.
Power down your server and remove any borrowed hardware that was used during its configuration, but that is not needed for its operation, such as a CD-ROM and floppy drive.
Move the server to its new location. Plug in all the cables and connectors, then power it on.
Log in and test Skype once more.
Remove the mouse, keyboard and monitor.
If all has gone well, you now have 24/7 phone service on one phone line provided exclusively by Skype.
For those readers who are security-conscious, and don't trust Skype as an application, building a Skype server has an added advantage. By placing the Skype server on your Internet connection outside your firewall, you gain the peace of mind that should a hacker break in to your server, or compromise Skype somehow, then as the server interfaces with nothing more than a copper phone line into your home beyond the firewall, any damage will necessarily be contained and limited to the Skype server outside the firewall. Worst case is that you'll need to do a reinstall on your Skype server, and perhaps, a better job of locking it down from a security point of view so that it can protect itself. Indeed, if your firewall is sufficiently restrictive that Skype won't work on the inside, then placing your Skype server outside your firewall is the only way in which you can take advantage of Skype's phone services.
Phone bills have a lot in common with taxes. Both are mind numbingly complex, and both take a lot and give little in return! To help work out your potential savings from switching to Skype for your phone services, in whole or in part, I've written a spreadsheet that simplifies the process and can be downloaded from the Elpis Web site (see the on-line Resources).
You should factor in the cost of building and running a Skype server into your savings analysis. Running costs will depend on the machine that you choose to use in order to run Skype 24/7. An old clunker of a machine may consume so much power that it would be worthwhile to build a new machine in the long run. As always, run the numbers and make some decisions.
Let's look at the cost of running a small Skype server 24 hours a day, 365 days a year. Without a monitor and other peripherals to guzzle power, a small modern computer typically consumes between 50W and 100W. If your cost of electricity is $0.10 per kWh, then the annual cost of running your Skype server is between $44 and $88. These are just ballpark numbers and you'll no doubt do your own, but it does show that the cost of running a Skype server 24/7 is not insignificant. (Cost = power consumed in kW x 365 days x 24 hours x cost per kWh, where a power consumption of 50W is 0.05kW and 100W is 0.1kW.)
Resources for this article: /article/8644.
Subscribe now!
Breaking News
| "We'll Stop Fighting" Means Something Strange for Microsoft | 18 hours 5 min ago |
| AMD Calls Out Intel...We Think. | 3 days 19 hours ago |
| Bye-Bye TorrentSpy, So Long MPAA's Money | 3 days 21 hours ago |
| Sun Finds the Keys to Unlock MySQL | 5 days 15 hours ago |
Featured Video
Linux Journal Gadget Guy, Shawn Powers, takes us through installing Ubuntu on a machine running Windows with the Wubi installer.
Live From the Field
The latest posts from the Linux Journal team.





Delicious
Digg
Reddit
Newsvine
Technorati






adding Extention
On January 17th, 2008 Anonymous (not verified) says:
Hi Geegs
Can we built extension with this system, I built it and worked well, now I want to make a phone system out of it, with autoatend and voice mail with the Linux box, does any one know how to? is it possible?
An Asterisk server could
On April 20th, 2008 Holmes (not verified) says:
An Asterisk server could potentially do both at once and is comparitivley cheap, as it is openware.
You would fair better using a SIP provider as opposed to Skype, as Asterisk naitivley supports SIP trunking.
Visit www.asterisk.org for more info.
Couldn't agree with the vonage people more
On September 23rd, 2007 Anonymous (not verified) says:
Seems to me, $15/mo plus free equip for vonage is the way to go. It's $180 per year for 500min a mo. But you get to port your existing number and have E911, web access to voicemail, etc. Paying $50 to $80 for SIP equipment, then Gizmo wants $99 a year for a phone number that's not ported and 1.9 c/min in the U.S. ($10/mo - $120/year), I don't really see any savings. Actually, I think Skype's a little cheaper, like $100+/year (depending on exchange rates which suck right now) for in/out and unlimited calling. I would rank Vonage highest - U.S. based, hopefully will be around allthough lots of competition, good quality (had them before, now I have comcast triple play which sucks, I will be going back to vonage).
You don't necessarily have to cut phone lines
On August 19th, 2007 DS (not verified) says:
You don't have to cut the incoming phone wire. If you have a fairly common telephone connection box on the outside of your house (like this: http://www.tech-faq.com/network-interface-device.jpg ), just disconnet the one or two phone RJ11 connectors in the phone box. No cutting; separates your phone line (one or both) from the telco's phone lines; still works.
What else I learned from working with this page: You don't have to connect the Skype-to-Phone adapter at any particular phone jack; any jack will do. Also, on my particular model, the DLink DPH-50U, instead of plugging the phone cable into the Line jack on the DPH-50U, I had to plug it into the Phone jack. Now, all of my house's phone jacks are live for my Skype phone connection, and I can dial out via Skype from any phone.
Thanks for putting up this page! It really got me fixed up.
What's the point?
On October 25th, 2007 CoreyJRoman (not verified) says:
Why would you want to go through all of this trouble just to serve pstn style phones in your home. Here is an easier method...
Take the skype usb to phone adapter and connect it to your computer. Out at your phone service box outside disconnect the main service plug rendering the lines completely free from voltage. Replace all standard phones in your home with cheap cordless phones(or good ones if you can afford) as they do not require line voltage to power themselves. Now on your usb to skype adapter connect one end of a phone extension cord into the adapter and the other into an empty phone wall socket and voila! All of the phone jacks in your house will be hot and ready to use(with a cordless phone). If you need a phone at the jack you connect your adapter to then simply cut the phone cord and wire it into the internals of the wall jack and you will have another usable jack there as well. I have 7 phones in my 2600 sq ft home and all of them have worked fine this way for over a year now. If your service is slowed by computer usage then perhaps your connection speed is too low or you need more memory, faster processor or a new computer.
Not Skype Server
On June 20th, 2007 Mike (not verified) says:
I would like to note here (politely) that this is not a Skype server. It is a Skype client allowing you to connect multiple phones.
While I really like your project, and I think it really is great, I think it's not a "Skype Server" as much as it is a "Skype sort-of-server-but-really-a-centralized-client"
I will explain a little, because I'm sure some will want to know why. I was looking to run an actual Skype server so I could create local skype accounts to interface Skype-based wireless phones to a local server, for interface with Asterisk/Trixbox for VoIP or even over existing PSTN. I have been looking for nice wireless phones (not USB phones) to use as cordless phones in my office, or on the road where I could access my office server through other wireless services. This would give me a nice little cell-phone sized wireless phone at many locations, which could connect back to the office, and dial out on our already-cheap VoIP providor (not Skype tho). I have noticed that Skype is still more expensive and has more user-intervention, so ... there's my thought.
Anyway, still, great project and very nice to see. ;)
Cheers
Mike
Great Work
On April 2nd, 2007 Max (not verified) says:
This was a well though out project and something to be proud of I actually started building the same project using your post thanks.
just get vonage. its a lot
On February 15th, 2007 hacker not cracker (not verified) says:
just get vonage. its a lot more cheaper, reliable, and easier to install!
What's the point?
On November 13th, 2006 Max (not verified) says:
I totally fail to see the point of doing this with Skype. There are so many cheaper and more reliable options that would require much less work. Just get a little ATA and sign up for deep-discount SIP origination and termination. You'll get better results, use less equipment, have a less technologically fragile arrangement, and be able to switch vendors whenever you feel like it.
"Just get a little ATA and
On October 23rd, 2007 Correiasim (not verified) says:
"Just get a little ATA and sign up for deep-discount SIP origination and termination. You'll get better results, use less equipment, have a less technologically fragile arrangement, and be able to switch vendors whenever you feel like it."
Which Deep-discount SIP would you recommend?
r u MAX from pal ?
On July 21st, 2007 ANDRO (not verified) says:
r u MAX from pal ?
Nice project - but an unlocked ATA + LES.NET is less hassle
On November 13th, 2006 Fred Snertz (not verified) says:
Nice project, and you should be proud (heck, I didn't know Skype for Linux was for real).
But you might be better off purchasing an unlocked SIP-based analog telephone adapter, then getting an account with one of the following:
- Gizmo (http://www.gizmoproject.com/)
- Les.Net
- Nufone.Net
- inphonex.com
Get an unlocked Sipura or Grandstream SIP ATA at VoIPSupply.com:
http://www.voipsupply.com/
I'd have a hard time justifying the cost for hardware, maintenance and upkeep for a modest Linux server just to run Skype, especially when a wall-wart-powered ATA does the trick quite nicely. After all, many of us gave up on our full-bore Linux routers in favor of Linksys-style router/switch equipment long ago.
Plus, SIP is an open protocol. Skype is a proprietary/closed protocol AFAIK. Why not extend your "open" thinking to your telecom standards as well?
I've been very happy running my Sipura SPA-2000 with Gizmo and/or Les.Net for months now. I've got a "peer" (like SkypeOut) as well as a local DID (like SkypeIn), and it's CHEEEEEEEEEEEEAP!
for Canada also check out
On November 23rd, 2007 Anonymous (not verified) says:
for Canada also check out Brama Telecom - this guys will also give you dirt cheap phone line with all the features included
I'm in Canada, eh?
On March 16th, 2007 CarlB (not verified) says:
I'm in Canada, eh? and agree that les.net or another pay-as-you-go SIP provider is likely to be a far better alternative to Skype. It's not just a question of eBay's refusal to comply with existing standards; Skype charges far more than les.net, vbuzzer.com and many others, they also don't offer any Canadian inbound numbers (DIDs).
Can you comment more on the
On November 21st, 2006 ctran2 (not verified) says:
Can you comment more on the SkypeOut/SkypeIn of Gizmo? Or links?
Why use skype instead of asterisk?
On November 13th, 2006 WhizzMan (not verified) says:
Everywhere people setting up PBXes for home or office use, using asterisk. It is open-source, uses open standards and is free to use. Why would I want to use a closed source application that will not support a lot of telephone hardware if there is a very good open-source alternative that is used in thousands of business telephone exchanges around the world already?
Skype Server on windows XP
On November 13th, 2006 Zen (not verified) says:
Hi,
Can a Skype Server be built on a Windows XP box?
Thanks!
Set up a Skype phone system using PrettyMay
On December 6th, 2007 Jacky Fu (not verified) says:
If you have a Windows XP box, check out PrettyMay Call Center for Skype which is a Skype Based PBX software for Windows.
Skype/Telbox on XP
On June 25th, 2007 dave (not verified) says:
Neat project and well documented!
I am running the Skype/Telbox setup with my XP laptop. Runs 24/7 and gives access to the landline and Skype phones. Our rural location will lose power ocasionally but the laptop and BBU batteries do hold up for a few hours. The laptop is a P3 and occasionally the CPU has a problem keeping up with the virus scanning etc. and drops out Skype.
Maybe it is time to try out my Ubuntu laptop on Skype.
Has anyone got the Telbox working with Ubuntu yet?
Dave.
Command line
On June 7th, 2006 Henry (not verified) says:
Um ... maybe I'm missing something, but how does this work if you don't want to keep your linux box (in my case FC4) logged in to the GUI? In other words, can Skype be invoked from the command line? I hate the thought of having my server logged into Gnome much less hooking upa monitor and keyboard to it. Plus if the box is ever cycled I wouldn't want to have to load up Skype again manually.
Is there a way to do this from the command line?
Command line respose
On July 20th, 2006 Sanzone (not verified) says:
Hey Henry, very good questions. Wish I new the answer, did you get one? I would like to know, I want to build one that is command driven also?
John
xp
On April 16th, 2008 Anonymous (not verified) says:
Why leave it logged in? create a service and it will run in the background under a service account
Skype-to-Phone USB adapter
On January 26th, 2006 imageek says:
Where would i get one of these? Is it named exactly like that? Thanks for any repsonse
SpeedDial
On February 24th, 2006 steve (not verified) says:
Build the server, got skypemate working and skype on REDHAT.
How do you do speed dial. Linux skype does not have speeddial alocation.?????
Slackware
On December 17th, 2005 Milktoast (not verified) says:
I'm trying slackware 10.2 now but the SkypeMate will not install.
The instructions are not very clear... install this/install that... usually an RPM or something and there is not much documentation on the web about SkypeMate.
I hate that the instructions in LJ are usually based on REDHAT... not everyone uses that crap... how about trying a source install once in a while... e.g. Slackware.
Sorry to rant but this really bugs me.
HAHA
On November 13th, 2006 Anonymous (not verified) says:
You think RedHat is crap? Slackware is dead man, even Debian has better more often updated packages then Slack. Sorry, don't agree with you on that one...
If you really think you should make some waves talking smack about other Linux distros, use Debian and then we're talking!
Peace!
BullFeathers!
On February 17th, 2007 Doctor Who says:
Not me.
I just implied that RedHat isn't a mainstream one. Debian contains too many you must do this, you must do that. Slackware doesn't care if you do not set up a mail service straightaway, or even if you don't need X windows. They even gave up Gnome not long ago.
Especially since the good people at Skype now tell me they are indeed looking into working with Slackware, to test things out. Given time even they will come around.
Debian on the other hand won't. We're lucky that its still considered relevant for other platforms.
And when was the last time you even looked at Slackware? It evolves slowly. Like you humans do.
I also see you replied to my other self. I Strongly suggest that you take the time to try out Slackware 11.0. It may even work for you.
---
__________________________I keep time in a TARDIS. What is that thing on your wrist doing?
I keep time in a TARDIS. What is that thing on your wrist doing?
Gentoo baby Gentoo!
On November 13th, 2006 x3nos (not verified) says:
www.gentoo.org
I'd rather be compiling. Ha ha.
You would, would you?
On January 31st, 2007 Anonymous (not verified) says:
You *really* would prefer compiling?
Skypemate on Slack
On December 30th, 2005 Ioannisb (not verified) says:
Hi there!!!
Did you find any solution about Skypemate on Slack?
I have the same problem!!!!
I even mail to the programmers that wrote it ....... but there's no answer...
I have "easy bluebox" voip box and I cant make it work....
Thanks
Skypemate on Slack
On March 20th, 2006 Harry (not verified) says:
It's been a few months. I'm wondering if anyone has had any luck using skypemate on Slack 10 yet?
Harry
Skype on Slackware 10.2
On June 10th, 2006 Leo Whiteway (not verified) says:
Actually I have changed from Slackware 10.2 to Vector 5.1.1
Vector is a derivative of Slackware.
I have Skype running and quite well. It was not a problem. I just installed it.
I do have a problem and that is that I can't seem to make it ring when I get a call. Very annoying but if I am near the computer and see the little box come on and it tells me I have an incoming call, I can answer. The other thing that works is I can see if I have missed a call and then can return the call.
Skypemate on Slack
On March 21st, 2006 Harry (not verified) says:
I've had more time to play with SkypeMate. I give up on getting it to work under Slackware 10.2. I ended up using strace to figure out what was going on. To make a long story short, SkypeMate is written for Fedora Core 3. Additional packages will need to be installed and/or upgraded for SkypeMate to work under Slackware 10.2. Example: dbus needs to be installed, gcc needs to be upgraded to 3.4, extra unused mixer devices need to be removed (/dev/mixer3), etc.
At this point, I've pretty much given up on Skype and SkypeMate. Now on to Asterisk.
Harry
SkypeMate on Ubuntu LInux
On April 17th, 2006 Lonetree (not verified) says:
so much of comments and discussion on RH, slackware etc. why isn't anyone taling about ubuntu? I have tried this on ubuntu but it seems that it didn't work at all, anyone of you has done this before?
thanks
RHEL/CentOS4
On December 11th, 2005 repetty says:
With Fedora Core being so closely related to Red Hat Enterprise Linux, has anyone tried this with RHEL or CentOS?
Skype for Fedora3 installs and launches on CentOS4 without error. I've downloaded the SkypeMate software, also for Fedora3, but it insists on have the Skype-to-Phone adapter in place before proceding with the install.
--Richard
Reliability of Phone vs Cable connection
On November 13th, 2006 Anonymous (not verified) says:
While I have had both Cable and phone I have found that the cable can go out for days on end but the phone will only be out for a few hours (longer if the wires are down). Anyone going this way should be prepared for the possibility of no phone or internet for days on end.
Where and when do you live?
On January 5th, 2007 Anonymous (not verified) says:
I haven't had my cable internet go "out" for like 4 years.... I do live in a big city, but still....
Cable Can go away for toronto big city.
On August 16th, 2007 Anonymous (not verified) says:
Hello ,
I just remeber in last month, It went out for 10 hour cable connection.