Snom 4S Media Server Use and care manual

Administrator‘s
Manual
snom 4S
SIP Media Server
Version 2.24

snom 4S Media Server Version 2.24 Administrator Manual
3. Edition 2004
© 2004 snom technology Aktiengesellschaft. All Rights Reserved.
This document is supplied by snom technology AG for information purposes only to licensed
users of the snom 4S media server and is supplied on an “AS IS” basis, that is, without any
warranties whatsoever, express or implied.
Information in this document is subject to change without notice and does not represent any
commitment on the part of snom technology AG. The software described in this document
is furnished under a license agreement and may be used only in accordance with the terms
of that license agreement. It is against the law to copy or use this software except as
specifically allowed in the license. No part of this document may be reproduced, republished
or retransmitted in any form or by any means whatsoever, whether electronically or
mechanically, including, but not limited to, by way of photocopying, recording, information
recording or through retrieval systems, without the express written permission of snom
technology AG.

snom technology AG • 3
Table of Contents
1 Foreword .......................................................7
2 Introduction ..................................................9
2.1 Signaling and Media ....................................................... 9
2.2 Response Times ........................................................... 10
2.2.1 Multitasking ....................................................................................................................................................................... 10
2.2.2 Hard Disks ........................................................................................................................................................................... 11
3 Installation .................................................13
3.1 Windows ..................................................................... 13
3.1.1 Installation .......................................................................................................................................................................... 13
3.1.2 Uninstalling in Windows ................................................................................................................................... 18
3.2 Linux .......................................................................... 18
3.3 Command Line Options ................................................. 18
4 Setup ..........................................................21
4.1 Licensing .................................................................... 21
4.1.2 License Key ........................................................................................................................................................................ 22
4.2 System Settings .......................................................... 23
4.2.1 Log Level ............................................................................................................................................................................... 23
4.2.2 Recording File ................................................................................................................................................................. 23
4.2.3 DNS Identity ..................................................................................................................................................................... 24
4.2.4 Default SIP Domain ................................................................................................................................................ 24
4.2.5 Start RTP Port and End RTP Port ........................................................................................................ 24
4.2.6 Max Number of Connections ..................................................................................................................... 25
4.3 Webserver Settings ...................................................... 25
4.3.1 HTTP and HTTPS port .......................................................................................................................................... 25
4.3.2 HTTP User and Password ............................................................................................................................... 26
4.4 SIP Settings ................................................................ 26
4.4.1 Outbound Proxy ........................................................................................................................................................... 26
4.4.2 SIP Port ................................................................................................................................................................................... 27
4.4.3 Session Timer ................................................................................................................................................................. 27
4.4.4 Retry Timeout ................................................................................................................................................................ 27

4 • Table of Contents
[ S N O M 4S ME D I A S ERVER M A N U A L ]
4.4.5 Max-Forwards ................................................................................................................................................................. 28
4.4.6 MWI Attachents ........................................................................................................................................................... 28
4.5 Codecs ....................................................................... 28
4.5.1 Representing Voice ................................................................................................................................................. 28
4.5.2 Representing User Input ................................................................................................................................. 30
4.5.3 Codec Negotiation .................................................................................................................................................... 30
4.6 Dial Plan ..................................................................... 31
4.7 Mailbox Template ......................................................... 33
5 Accounts .....................................................35
5.1 Registering Accounts .................................................... 36
5.2 Passwords ................................................................... 36
5.3 Outbound Proxy ........................................................... 37
5.4 Hangup ...................................................................... 37
5.5 Passing Variables ......................................................... 37
6 Specific Account Types ................................39
6.1 Music On Hold ............................................................. 39
6.1.1 How to use MOH ......................................................................................................................................................... 39
6.1.2 Configuration of the MOH account ................................................................................................... 40
6.2 Mailbox ...................................................................... 40
6.2.1 Using the Mailbox Account ........................................................................................................................... 41
6.2.2 Configuring a Mailbox Account ............................................................................................................... 41
6.2.3 Answer Delay ................................................................................................................................................................ 41
6.2.4 Identity .................................................................................................................................................................................... 42
6.2.5 MWI Destination ......................................................................................................................................................... 42
6.2.6 Record Length, Max Messages ............................................................................................................... 42
6.2.7 Jump Out ............................................................................................................................................................................... 42
6.2.8 Time Difference .......................................................................................................................................................... 43
6.2.9 Password ............................................................................................................................................................................... 43
6.3 Conference Server ....................................................... 43
6.3.1 Calling a Conference ............................................................................................................................................. 43
6.3.2 Remote Initiation of Conferences ...................................................................................................... 43
6.4 Auto Attendant ............................................................ 44
6.5 Error-Information ......................................................... 45
6.5.1 Playing Messages using SIP ....................................................................................................................... 46
6.5.2 Playing Messages using HTTP .................................................................................................................. 46
6.6 Other Types ................................................................ 47
7 Email-Support .............................................49
7.1 Sending Emails Directly ................................................ 49

snom technology AG • 5
[ S N O M 4S ME D I A S ERVER M A N U A L ]
7.2 Logging Email Reception ............................................... 50
7.3 Using Multiple Email Accounts ........................................ 50
8 Maintenance ................................................51
8.1 Trace .......................................................................... 51
8.2 Open Calls .................................................................. 52
8.3 Logfile ........................................................................ 52
8.4 Memory Usage ............................................................ 52
8.5 System Information ..................................................... 52

6 • Table of Contents
[ S N O M 4S ME D I A S ERVER M A N U A L ]

snom technology AG • 7
1 Foreword
In today’s telephone networks, there are many situations when
you are talking to a machine. Typical examples include the mailbox,
auto attendant or just music on hold. Over time, the telephone industry
has developed many advanced interactive voice dialogs like arranging
meetings, reservation systems, tracking systems and so on. In a VoIP
network, these features must also be present. By having a media server in
the network, a VoIP telephony system will have at least the same features
as your “good old” PBX had.
Technically, the snom 4S Media Server is much more than a
SIP media server. It includes the logic to handle complex applications.
Together with a SIP proxy the media server provides the functionality that
fulfils the needs of your telephone users and might also offer some more
and helpful features not known from traditional PBX.
We chose the term media server to indicate that this component
takes care about everything that is related to audio streams. This makes
sense because handling audio is a real time task and sets different
requirements on the underlying hardware than not-so-critical requirements
of the call control. SIP allows and encourages this distinction and thus
makes scalable systems easier to implement. However, practically all
components of a small to medium size installation will run on the same
machine.
Interoperability is the glue of the growing VoIP industry. We have
tried to stick to the SIP standard as well as possible and tested together
with the equipment of other vendors whenever that was possible. We
hope that this will help to build up a flourishing VoIP telephone industry in
which the products of the different vendors work together like the products
in the computer industry do today. We believe that having a choice is good
for you and therefore good for us.
This manual is the best way to get started with the snom 4S
media server. However, because it’s hard to keep a manual up-to-date
with all the issues that come up, we provide a list of frequently asked
questions (FAQ) on out web site http://snom.com.
1

8 • Introduction
[ S N O M 4S ME D I A S ERVER M A N U A L ]
We hope that you enjoy using the media server and it helps you
setting up a great communication environment!
Sincerely,
Dr. Christian Stredicke
1

snom technology AG • 9
2 Introduction
This chapter explains the functionality of the media server and
gives you a feeling on what is important. You will learn the difference
between signaling and media and what is important to operate a media
server.
This is not intended to serve as introduction into VoIP and SIP in
general. You find great introductions and numerous links in the Internet
and in the literature. The snom 4S Proxy manual also gives a brief overview
on SIP.
If you are already with the underlying problems with a media
server, go can go straight to the next chapter.
2.1 Signaling and Media
In short words, there are two fundamental problems with
telephony: Finding the user you want to talk to and talking.
Finding the user is done with signaling. SIP is one way to find the
party you want to talk to. This job is characterized by a complexity, for
example when a user redirected his phone or can be reached on several
locations. If the finding process takes a second more or less, this is not
so critical.
When the user has been found, the problem shifts to transporting
the speech as fast as possible between the participants. One second
for transporting the voice from one user to another is a big burden for
the communication. It takes a lot of discipline if you want to establish a
conversation like this. When users are talking, typically every 20 ms a
piece of the conversation is transported over the network. If this stream
of packet gets delayed or stalls, the other side will experience a bad audio
quality.
While operating systems are very good at scheduling tasks (so
nothing gets forgotten), reacting very fast sometimes gives problems. If
you need to send a packet every 20 ms, you usually don’t have the time
2

10 • Introduction
[ S N O M 4S ME D I A S ERVER M A N U A L ]
to get audio data from a network server and even accessing the local hard
disk can degrade the quality.
2.2 Response Times
A modern PC is an unbelievable workhorse. An off-the-shelf
PC can process several billion operations per second and store easily a
month of a conversation. The bandwidth of a standard Ethernet card is
enough to handle more than a thousand uncompressed media streams.
Set up correctly, it can handle tens and hundreds of parallel calls without
a problem. However, in order to operate this workhorse you need to follow
a few rules.
2.2.1 Multitasking
All modern operating systems like Windows 32 and Linux support
multiprocessing or multitasking. Several processes share the same CPU
in a way that the CPU works for a short time on the first process and then
continues with the next process. The switching is done around a hundred
times per second and typically the user does not recognize this.
In a VoIP environment we are talking about sending packets at
a rate of fifty packets per second per call and that might result in a high
frequency of process switches.
The operating system knows that the media server has higher
requirements on time critical task switching (this is signaled during the
starting of the media server). However, when there are other tasks on
this computer, the operating system might not be able to give all of them
the CPU attention that they need. So in short words, if you run the media
server and some video games on the same machine don’t get surprised if
your users complain about stuttering voice.
The best approach to solve this problem is to run the media server
on a dedicated the host. Because the proxy usually does not request time
critical priority from the operating system, it is usually not a problem to
run the proxy on that machine as well. However, it is not a good idea to
run the media server on a file server.
This is the reason why snom offers the media server as a
preconfigured product in a dedicated box. Although this box has limited
resources compared to a modern PC, it can do a good job because the
2

snom technology AG • 11
[ S N O M 4S ME D I A S ERVER M A N U A L ]
resources are dedicated to VoIP related tasks and mechanical problems
do not occur.
We would like to point out that from a media server perspective,
both Windows and Linux are great operating systems to run the media
server process.
2.2.2 Hard Disks
Hard disks are another miracle of the computer industry. Modern
off-the-shelf hard disk can store several high-quality films and so it should
be good enough to store some mailbox messages.
The price to pay for this is access time. When information on the
hard disk is scattered, the time to gather information can become too long
to answer requests within twenty milliseconds.
Missing the twenty millisecond answer time does not mean the
end of the call. Phones usually tolerate late packets to a certain degree
and if the packet is missing it will fill the gap with other information. Only
when too many packets get lost, the call will stop.
The general strategy to avoid situations like these is called
caching. Operating systems usually keep files which have already been
opened in the main memory until they are not used and are replaced with
information which is needed more urgently. As long as a file stays cached
there will be no problem.
2

12 • Introduction
[ S N O M 4S ME D I A S ERVER M A N U A L ]
2

snom technology AG • 13
3 Installation
3.1 Windows
3.1.1 Installation
Tip: If you are doing an update, you need to stop and uninstall
the old media server first (see below on how to do this).
After double clicking on the setup executable, the installations
program starts up. Press Next to begin the installation.
3

14 • Installation
[ S N O M 4S ME D I A S ERVER M A N U A L ]
At the beginning of the installation the setup program asks you to
accept the license conditions. Please read them carefully, then select the
“accept” button and press “next” to accept the conditions. If you decline,
the installation will be aborted.
After accepting the license agreement, the next screen asks you
to enter a few basic installation settings. You should have received the list
of the hostnames and the matching license code with th purchase of this
product, please enter this into the respective fields.
You need to define on which ports the media server will operate.
This is important because otherwise it will be hard for you to find the right
port.
The http port defines where the web server of the media server
can be accessed. The default port for web servers is 80, and if you are
not running any other web services on the computer, port 80 is a good
choice. Otherwise, choose a free port and write the port number down
3

snom technology AG • 15
[ S N O M 4S ME D I A S ERVER M A N U A L ]
somewhere so you don’t have to search for it. If you don’t fill in any data
or cancel the dialog, port 80 will be used.
From a service perspective, it is ok to choose a different port
than port 80. Users normally don’t access the media server via the web
browser, therefore there is no reason to choose the “prominent” port 80.
The SIP port defines where the SIP traffic is expected. The default
port is 5060, but in case you are running a proxy on the same host you will
probably have to choose a different port. In this case, port 5062 is a good
choice. Again, as the users normally don’t directly call the media server
(they go though the proxy), it is recommended to choose a different port
than port 5060.
The settings in this mask can be changed later. You can continue
installation even if some information is missing; however you should
remember the http port, because otherwise you will have a hard time
locating the web server of the product.
3

16 • Installation
[ S N O M 4S ME D I A S ERVER M A N U A L ]
You can then select the location where the media server’s files
will be put. The installation program proposes a reasonable location but
if you want to you can change it. After this, the installation asks you
for the location where the media information will be put. This directory
needs write access and will contain the information for registered users.
The installation program proposes a location relative to the media server
installation directory, but it might be useful to specify a different location
for this, e.g. a temporary directory. It is important that the directory
exists; the media server will not create this directory.
Remember that for a good performance of the media server, the
media directory should be one the local hard disk.
The Installation process is then ready to start. Usually it will take
only a few seconds to copy the necessary files. At the end of the installation
process you are asked if you want to start the media server immediately.
If you do so, the program will be started as a regular program and will not
3

snom technology AG • 17
[ S N O M 4S ME D I A S ERVER M A N U A L ]
be visible in the services dialog of the operating system until you reboot
the machine.
After finishing the setup wizard, check that the media server is
running. If you do not want to reboot your system (because it is running
other critical applications), you can also manually start the service in the
services section of the Windows control interface.
Check that the installation has been successful by checking the
Services field of Windows. Open the services Window and look for “snom
4S Media Server”. The status should be “Started”. If this is not the case
you should invoke the media server by selecting “start”. In this case, we
recommend rebooting the system to make sure that the media server is
running after the reboot.
After making sure the media server is running, you should connect
to the media server to a web browser. In order to do this, you can connect
to the address of the local computer (http://127.0.0.1:8080 or http://
localhost:8080 if you are running the web browser on the same machine).
3

18 • Installation
[ S N O M 4S ME D I A S ERVER M A N U A L ]
If the http port is already occupied by other programs, the media server
will try to use ports 5068, 5069, 5070 and so on. It is important that you
connect to the media server to a web browser, because that is the only
way to control the media server.
If you have trouble locating the http port, you can use the netstat
command (netstat –b for Windows). You should then see the mediaserver
process running on the local machine.
3.1.2 Uninstalling in Windows
To uninstall the media server, first stop it in the services window.
Then go to the Software Window and click on “remove” for snom 4S Media
Server.
3.2 Linux
After you have downloaded the desired RPM you may install it
either with graphical front end of your distribution for installing additional
software or as root via the command line.
If you enter the command line ‘rpm -ihv snom*.rpm’ as user root
in the directory where the RPM is stored, it should install the RPM into
your system.
The process is not started automatically after the installation,
as was the case with the old snom software packages, because RPM’s
can not be installed with user interaction. The software is now installed
with default values for the HTTP and SIP ports. Please verify first if the
default values in /etc/sysconfig/snom* match your local requirements,
before you start the process in the usual manner with /etc/init.d/snom*
(or rcsnom* under SuSE).
3.3 Command Line Options
--log n: Specify the log level between 0 and 9. 9 means as much
messages as possible, 0 means only the most important messages.
--config f: Specify the file where the configuration information
is saved. This option is only in the Linux version available.
3

snom technology AG • 19
[ S N O M 4S ME D I A S ERVER M A N U A L ]
--http-port n: Explicitly specify the http port number. The old
name –html-port can also be used.
--https-port n: Explicitly specify the https port number.
--sip-port n: Explicitly specify the sip port number.
--no-daemon: Don’t run the process as daemon in the background,
run it as normal process.
--dir d: Specify the root directory for the media server. This is
important as the media server will search files in this directory.
--version: Print the version number and exit. 3

20 • Installation
[ S N O M 4S ME D I A S ERVER M A N U A L ]
3
Other manuals for 4S Media Server
15
Table of contents
Other Snom Server manuals
Popular Server manuals by other brands

Radware
Radware APSolute Vision Installation and maintenance guide

Polycom
Polycom V2IU6400-S Brochure & specs

IBM
IBM eserver pSeries 690 installation guide

Xblue Networks
Xblue Networks X-25 installation manual

Dell
Dell External OEMR XL T620 owner's manual

Home Automation
Home Automation CAMERA SERVER 87A00-1 Installation and user guide