Build a Skype Server for Your Home Phone System
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:
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.
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.
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
|Trying to Tame the Tablet||May 08, 2013|
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Home, My Backup Data Center
- New Products
- Tech Tip: Really Simple HTTP Server with Python
- RSS Feeds
- Find new cell phone and tablet pc
4 min 7 sec ago
1 hour 32 min ago
- Automatically updating Guest Additions
2 hours 41 min ago
- I like your topic on android
3 hours 28 min ago
- Reply to comment | Linux Journal
3 hours 49 min ago
- This is the easiest tutorial
10 hours 3 min ago
- Ahh, the Koolaid.
15 hours 42 min ago
- git-annex assistant
21 hours 41 min ago
- direct cable connection
22 hours 4 min ago
- Agreed on AirDroid. With my
22 hours 14 min ago
Enter to Win an Adafruit Prototyping Pi Plate Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Prototyping Pi Plate Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- Next winner announced on 5-21-13!
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.