Hardware Reference
In-Depth Information
6.
With our configuration in place, let's start up the SIP Witch service:
pi@raspberrypi ~ $ sudo service sipwitch start
The SIP Witch server runs in the background and only outputs to a log file
viewable with this command:
pi@raspberrypi ~ $ sudo cat /var/log/sipwitch.log
7.
Now we can use the
sipwitch
command to interact with the running service.
Type
sipwitch
for a list of all possible commands. Here's a short list of
particularly handy ones:
Command
Description
sudo sipwitch dump
Shows how the SIP Witch server is currently
configured.
sudo sipwitch registry
Lists all currently registered softphones.
sudo sipwitch calls
Lists active calls.
sudo sipwitch message
[extension] "[text]"
Sends a text message from the server to an extension.
Perfect for sending status updates from the Pi through
scripting.
Connecting the softphones
Running your own telecommunications service is kind of boring without actual
phones to make use of it. Fortunately, there are softphone applications available
for most common electronic devices out there.
The configuration of these phones will be pretty much identical no matter which
platform they're running on. This is the basic information that will always need to
be specified when configuring your softphone application:
• User / Login name:
phone1
or
phone2
in our example configuration
• Password / Authentication: The user's secret in our configuration
• Server / Host name / Domain: The IP address of your Pi