, IntraSTAR®, Intra*®, CELLX®, and iSWITCH® are registered trademarks of TELES AG Informationstechno-
TELES
logien. All other trademarks used are the property of their respective owners.
The supplied hardware/software systems are protected by copyright and can be used solely by their lawful
owners.
All text and figures in this publication have been compiled with great attention to detail. Nonetheless, inaccuracies and typographical errors cannot be entirely avoided. TELES AG Informationstechnologien provides
this document 'as is' without warranty of any kind, expressed or implied. TELES AG Informationstechnologien
reserves the right to make changes in product design or specifications without notice.
Table of contents
Table of contents ......................................................................... 3
This manual describes the set up of your VoIPBox BRI. It is
written for network administrators who use and maintain the
gateway. To use this manual you need some experience working with networking devices and be familiar with the concepts
and terminology of telecommunication technology. Make
sure you familiarize yourself thoroughly with the safety and
security precautions detailed in Chapter 2 Security and hard-
ware on page 17 → before you begin to install your
VoIPBox BRI. TELES is not liable for any damage or injury resulting from a failure to follow these safety and security instructions!
In addition to this manual there is a parameter manual summarizing the configuration parameters used in the config
files.
Conventions
This document uses the following typographic conventions:
Bold – important information, and items from the GUI
and the menu.
Code – file names, variables, and constants in config files
or commands in body text.
"Conventions" on page 12 → – cross-references can be
accessed in the PDF by a single mouse click.
Configuration data or extracts are written in single-column tables with a gray background.
VoIPBox BRI Version 18.0.002Page 12
Preface
!
!
!
Safety Symbols
The following symbols are used to indicate important information and to describe levels of possible danger.
Note
Useful information with no safety implications.
Attention
Information that must be adhered to as it is necessary to ensure that the system functions correctly and to avoid material damage.
Warning
Danger. Could cause personal injury or damage to the system.
Dangerous voltage
Could cause injury by high voltage and/or damage the system.
Electrostatic discharge
Components at risk of discharge must be grounded before
being touched.
Explosion hazard
Injury hazard due to explosions endangering the person or
the system.
VoIPBox BRI Version 18.0.002Page 13
Organization
Chapter 1 – Safety and security precautions starts with the
safety and security precautions. Make sure that everyone
who works with the VoIPBox BRI is aware of these precautions. The VoIPBox BRI described at the end of this chapter.
Chapter 2 – Overview describes the general features of the
VoIPBox BRI and the main features for VoIP and telephony.
Chapter 3 – VoIPBox installation contains information on
basic installation and configuration of your VoIPBox. Follow
the easy instructions to set up your VoIPBox in a matter of
minutes.
Chapter 4 – Configuration files describes the basic setup
and the most commonly used entries for the configuration
files. Configuration of VoIPBoxes is managed in the following
three files:
Chapter 5 – Routing examples contains some useful
route.cfg examples of scenario-bases configurations.
Chapter 6 – System maintenance and software update
describes system messages that are saved in the protocol file,
as well as trace options.
Chapter 7 – Signaling and routing features describes configurations of the route.cfg for adjusting the signaling and
specific scenarios.
Chapter 8 – Least cost routing describes the configuration
of the least cost routing method cerrier selection. Then follows a chapter with a alternative routing example. The last
chapter describes charge generation configuration.
Chapter 9 – Online traffic monitor describes the Online
Traffic Monitor that allows you to collect and monitor statistics and call detail records (CDRs). The following functions are
VoIPBox BRI Version 18.0.002Page 14
Organization
possible with this feature package: Calculation of statistic values, Generation of CDRs, and Generation of online CDRs using e-mail
Chapter 10 – Two stage dialing/callback server functionality describes money-saving features that expand the func-
tionality of your VoIPBox to include DTMF services (two stage
dialing) and callback capability. It is particularly useful for
companies with employees who travel often, because it eliminates expensive roaming fees.
Chapter 11 – Additional VoIP parameters contains additional configuration entries to fine-tune conmmunication with
the VoIP peer. Enter the folliwing additional parameter in the
route.cfg to adjust the configurationfor improved communication with the VoIP peer.
Chapter 12 – Troubleshooting discusses problems that you
may encounter when operating your VoIPBox and offers solutions. The reasons are listed that may cause the different
problems. Every reason is described in detail, the symptoms
are identified and suggestions are made for solving the issue.
If you cannot solve a problem using these instructions, please
contact your service partner.
VoIPBox BRI Version 18.0.002Page 15
1Safety and security
precautions
1Safety and security precautions
This chapter starts with the safety and security precautions. Make sure that everyone who works with the
VoIPBox BRI is aware of these precautions. The VoIPBox BRI
described at the end of this chapter.
Please be sure and take time to read this section to ensure
your personal safety and proper operation of your gateway.
To avoid personal injury or damage to the system, please follow all safety instructions before you begin working on your
gateway.
VoIPBoxes are CE certified and fulfill all relevant security requirements. The manufacturer assumes no liability for consequential damages or for damages resulting from
unauthorized changes.
1.1 Safety Measures
Danger of electric shock - the power supplies run on 230 V. Do
not open the VoIPBox or its power supply.
Make sure to install the VoIPBox near the power source and
that the power source is easily accessible.
Bear in mind that telephone and WAN lines are also energized
and can cause electric shocks.
Be sure to respect country-specific regulations, standards or
guidelines for accident prevention.
VoIPBox BRI Version 18.0.002Page 17
1Safety and security precautions
!
1.2 Power Supply
The included power supply is to be used exclusively for operation of your VoIPBox.
Make sure you read this chapter thoroughly and save the
instructions for future reference. Use only the power supply included in the package contents of your VoIPBox.
1.2.1 Technical Data
The following list includes technical information on the power
supply:
| Type: GSP-1216TLS/1 for VoIPBox
| Input voltage: 230V~ +/-15% 50-60Hz; 0.40A
| Output voltage: 12V
| Weight: 96g
| Tested and certified as per EN60950-1
1.2.2 Symbols
The symbols on the power supply have the following meanings:
Table 1.1Power Supply Symbols
SymbolMeaning
Certified to conform with European norms.
Protective insulation provided.
---
; 1.6A
For indoor use only.
VoIPBox BRI Version 18.0.002Page 18
1Safety and security precautions
!
Table 1.1Power Supply Symbols (continued)
SymbolMeaning
Not for public disposal. Make sure you dispose of the power supply
properly.
Indicates the output polarity of the power supply.
1.2.3 Instructions for Use
Plug the power supply directly into the outlet. The power supply provides safety-low voltage with limited capacity for your
VoIPBox.
Use only the power supply included in the package contents of your VoIPBox.
The devices are designed for constant use in dry, indoor locations. However, we recommend that you unplug them if you
do not intend to use them for an extended amount of time.
Make sure the power outlet is easily accessible at all time.
1.2.4 Safety Precautions
Make sure you follow these safety precautions:
| Electrical devices may not be used by individuals who are
not aware of the dangers of electricity and/or incorrect
use thereof.
| Make sure you use only the correct input voltage.
| Make sure the installation site is sufficiently ventilated.
| Use the device only in dry, indoor locations, and protect
it from humidity.
| Do not subject the device to direct sunlight.
VoIPBox BRI Version 18.0.002Page 19
1Safety and security precautions
| Unplug the device if you do not intend to use it for an ex-
tended amount of time.
| Hold the device by its housing when you unplug it. Wall
outlets can become mechanically overloaded; do not
pull on the cord.
| The room temperature may not exceed 35°C.
| Do not use the device if it is damaged or if there are signs
of misfunction. In this case, send it to TELES Service or
dispose of it properly (not with the public trash).
1.3 Jacks
The jacks on the VoIPBox have fulfilled the requirements of
the SELV safety standard.
1.4 EMC Protection
Use shielded cables.
Do not remove any housing components. They provide EMC
protection.
1.5 System Security
This section describes all points crucial to the VoIPBox’s system security.
VoIPBox BRI Version 18.0.002Page 20
1Safety and security precautions
!
The VoIPBox’s location must support normal operation according to EN ETS 300 386. Be sure to select the location with
the following conditions in mind:
Location: Make sure you install the system in a clean, dry,
dust-free location. If possible, use an air-conditioned site.
The site must be free of strong electrical or magnetic
fields, which cause disrupted signals and, in extreme cases, system failure.
Temperature: The site must maintain a temperature between
0 and 35°C. Be sure to guard against temperature fluctuations. Resulting condensation can cause short circuiting. The
humidity level may not exceed 80%.
To avoid overheating the system, make sure the site provides
adequate ventilation.
Power: The site must contain a central emergency switch for
the entire power source.
The site’s fuses must be calculated to provide adequate system security. The electrical facilities must comply with applicable regulations.
The operating voltage and frequency may not exceed or fall
below what is stated on the label.
1.5.1 Servicing the VoIPBox
Regular servicing ensures that your VoIPBox runs troublefree. Servicing also includes looking after the room in which
the system is set up. Ensure that the air-conditioning and its
filter system are regularly checked and that the premises are
cleaned on a regular basis.
VoIPBox BRI Version 18.0.002Page 21
1Safety and security precautions
1.5.2 Protecting the Operating System
Changing configuration data may lead to malfunctions and/or
misrouting, as well as possible consequential damage. Make
changes at your own risk. TELES is not liable for any possible
damage resulting from or in relation to such changes. Please
thoroughly check any changes you or a third party have made
to your configuration!
To make changes in or perform tests on the database, make
sure your hard disk or flash disk contains enough storage
space. Downloading the log files and deleting them from the
VoIPBox on a regular basis will ensure your VoIPBox’s reliability.
Be careful when deleting files that you do not delete any files
necessary for system operation.
To check storage space and/or delete files, use GATE Manager. For more information see the document GATE Manager.
All files with the extension *.log can be deleted. To save files
before deleting them, use the Receive File option in GATE
Manager.
The following files, if included, must not be deleted:
Table 1.2Mandatory files
Mandatory files
Mandatory system files
boot.rc
crypto.vnd
crypto5.vnd
gbox.tz1
gbox5.tz1
IMEIs.lst
ipv4.vnd
ipv6.vnd
license.key
VoIPBox BRI Version 18.0.002Page 22
1Safety and security precautions
!
Table 1.2Mandatory files (continued)
Mandatory files
netbsd5fs.vnd
netbsd5i
netbsd5z
netbsdfs.gz
netbsdi
netbsdz
start
tools.tz0
xbribox.tz1
xgate.vnd
Mandatory configuration files
ip.cfg
pabx.cfg
route.cfg
1.6 CDR Files
Call Detail Records are intended for analysis of the VoIPBox’s
activity only. They are not designed to be used for billing purposes, as it may occur that the times they record are not exact.
Inaccuracies in the generation of CDRs may occur for active connections if traffic is flowing on the system while
modifications in configuration or routing files are activated.
VoIPBox BRI Version 18.0.002Page 23
1Safety and security precautions
1.7 Network Security
Every day hackers develop new ways to break into systems
through the Internet. While TELES takes great care to ensure
the security of its systems, any system with access through
the Internet is only as secure as its user makes it. Therefore,
to avoid unwanted security breaches and resulting system
malfunctions, you must take the following steps to secure
your VoIPBox if you connect it to the Internet:
| Use an application gateway or a packet firewall.
| To limit access to the VoIPBox to secure remote devices,
delete the default route and add individual secure network segments.
| Access to the VoIPBox via Telnet, FTP or GATE Manager
must be password protected. Do not use obvious passwords (anything from sesame to your mother-in-laws
maiden name). Bear in mind: the password that is easiest to remember is also likely to be easiest to crack.
The firewall must support the following features:
| Protection against IP spoofing
| Logging of all attempts to access the VoIPBox
The firewall must be able to check the following information
and only allow trusted users to access the VoIPBox:
| IP source address
| IP destination address
| Protocol (whether the packet is TCP, UDP, or ICMP)
| TCP or UDP source port
| TCP or UDP destination port
| ICMP message type
VoIPBox BRI Version 18.0.002Page 24
1Safety and security precautions
For operation and remote administration of your VoIPBox
open only the following ports only when the indicated services are used:
Table 1.3Default Ports Used for Specific Services
ServiceProtocolPort
For all systems except CELLX Pro
FTPTCP21 (default, can be set)
Telnet (for TELES debug access only)TCP23 (default, can be set)
SMTPTCP25
DNS forwardUDP53
HTTPTCP80 (default, can be set)
SNTPUDP123
SNMPUDP161 (default, can be set)
H.225 registration, admission, statusUDP1719 (default, can be set)
H.225 signalingTCP1720 (default, can be set)
RadiusUDP1812 (default, can be set)
Radius accountingUDP1813 (default, can be set)
GATE Manager
SIP signalingUDP / TCP5060 (default, can be set)
RTPUDP29000-29120 (default,
CELLX Pro Control UnitTCP57343
C
ELLX Pro tunnelingTCP4446
For CELLX Pro Control Unit and iMNP
FTPTCP21
Tel ne tTCP23
MySQL databaseTCP3306
CELLX Plus or VoIPBox to CELLX ProTCP57342
C
ELLX Pro tunneling to CELLX Plus or VoIPBoxTCP4446
TCP4445 (default, can be set)
can be set)
CELLX Plus or VoIPBox to iMNPTCP9003
Remote C
Remote CELLX Pro Desktop (read only)TCP57345
VoIPBox BRI Version 18.0.002Page 25
ELLX Pro DesktopTCP57344
1Safety and security precautions
Table 1.3Default Ports Used for Specific Services (continued)
ServiceProtocolPort
For NMS
FTPTCP21
Tel ne tTCP2 3
MySQL databaseTCP3306
NMS protocolTCP5000
NMS updateTCP5001
NMS taskTCP5002
NMS taskTCP5003
NMS ListenTCP4444
For CELLX Pro Call Manager
Radius authenticationUDP1812
Radius accountingUDP1813
VoIPBox BRI Version 18.0.002Page 26
2Overview
2Overview
This chapter describes the general features of the
VoIPBox BRI and the main features for VoIP and telephony.
The VoIPBox BRI is a media converter that facilitates the connection of ISDN service equipment with a voice over IP (VoIP)
network. It converts line-based transmission on the ISDN side
to packet-based transmission in the IP network and vice versa. Incoming traffic arrives at one VoIPBox, which routes the
calls accordingly, depending on the call’s destination and attributes. The VoIPBox is available with two, four, or eight BRI
ports.
2.1 Features
VoIP
| 8 or 16 media channels
| H.323 v.4 / SIP v.2 signaling (RFC 3261), operating in par-
allel
| Various audio codecs: G.711, G.723.1, G.726, G.728,
| Support for multiple gatekeepers and multiple registrars
| STUN client
| Traffic shaping
| Configurable time interval for echo detection in VoIP
VoIPBox BRI Version 18.0.002Page 28
2Overview
ISDN
| 2, 4, or 8 BRI ports, TE or NT
| DSS1 (Q.931),Q.SIG-BC; PP or PMP
LCR Engine
| Multiple VoIP-carrier logins
| Multiple PSTN routing methods
| Multilevel alternative routing
| Dynamic fallback to PSTN
| Dynamic fallback to VoIP
| Lifeline functionality on power loss or system failure
General
| User-friendly GUI with easy and advanced mode config-
uration settings
| Ringtone generation
| Configurable ToS/DivServ
| AOC generation
| Integrated DSL router (PPPoE)
| 2nd separate 10/100 Base-T Ethernet interface
| Status indication via LEDs
| Integrated mail client capable of SMTP authentication
| E-mail messages can trigger calls and play attached an-
nouncements
| Automatic test call
| Redial function
| Autodial function
VoIPBox BRI Version 18.0.002Page 29
2Overview
2.2 Implementation scenarios
These are the most commonly used implementation scenarios.
VoIP gateway
The VoIPBox’s sophisticated routing algorithms allow VoIP
communication via SIP server and/or gatekeeper (H.323), as
well as multi-destination operation without a SIP Server or
gatekeeper. Various voice codecs ensure universal connection to different VoIP destinations. Fax transmission occurs
via T.38 or fallback to G.711a. Backup routes can be activated
in case of VoIP peer failure. After a defined amount of time,
the VoIPBox resumes its primary route.
Figure 2.1VoIP gateway
VoIPBox BRI Version 18.0.002Page 30
2Overview
Least cost router 2nd generation
The VoIPBox’s sophisticated routing algorithms serve as an
LCR between your PBX and the PSTN or VoIP carrier. Internet
connection can occur via integrated DSL router. The system
reverts to ISDN if there is an IP connection failure.
Figure 2.2Least cost router 2nd generation
VoIPBox BRI Version 18.0.002Page 31
3VoIPBox installation
3VoIPBox installation
This chapter contains information on basic installation and
configuration of your VoIPBox. Follow the easy instructions
to set up your VoIPBox in a matter of minutes.
Implementation of individual scenarios require adjustments to the appropriate interfaces. Tips for basic settings
are described here. Links to relevant chapters are provided
for more specific configuration changes.
3.1 Checklist
The following checklist provides step-by-step installation instructions.
1. Check the package contents
2. Install the device
3. Connect the BRI lines to the PBX and/or the PSTN
4. Check functionality (using the LEDs)
5. Using Quickstart, set the configuration (IP address and
BRI / VoIP configuration)
6. Secure the LAN connection
3.2 Package Contents
Your VoIPBox package contains the following components:
| 1 VoIPBox
| 1 power supply
| 2/4/8 RJ-45 ISDN cables (black)
| 1 RJ-45 LAN cable with gray connectors
Check the contents to make sure everything is complete and
undamaged. Immediately report any visible transport damages to customer service. If damage exists, do not attempt operation without customer-service approval.
VoIPBox BRI Version 18.0.002Page 33
3VoIPBox installation
Call via
VoIP
Call via
ISDN
Flash
disk
Relay
Power
VoIP
reg.
ETH
emac1
ETH
emac0
ISDN3ISDN4ISDN1 ISDN2
ETH1ETH2
12V=
Not
assigned
Not
assigned
VoIPBOX BRI 4/2
active on BRI 4 only
Call via
VoIP
Call via
ISDN
Flash
disk
Relay
Power
VoIP
reg.
ETH
emac1
ETH
emac0
ISDN3 ISDN4
ISDN5
ISDN1
ISDN6
ISDN7
ISDN2
ISDN8
ETH1ETH2
12V=
Not
assigned
Not
assigned
VoIPBOX BRI 8
Software and manual are available for download at:
http://as-support.teles.de.
3.3 VoIPBox Hardware Description
Figure 3.1 → shows the front and rear view of all VoIPBox vari-
ations. The VoIPBox handles traffic on up to 8/16 media channels. The following pages describe installation of the
VoIPBox.
Figure 3.1VoIPBox BRI: front and rear view
3.4 Installation Requirements
Before installing your VoIPBox, make sure you have the following connections in place:
| ISDN BRI connection to PBX and/or to the PSTN
| Power
VoIPBox BRI Version 18.0.002Page 34
3VoIPBox installation
!
3.4.1 ISDN Wiring
The TE ports connect to the PSTN and the NT ports connect to
the PBX. Starting from the left, we recommend alternating TE
NT TE NT... configuration of the ISDN ports. Only this configuration supports bypass relay between ISDN1 and ISDN2 when
power failure occurs. You can connect the VoIPBox to additional outlets for any additional interfaces.
An attached NTBA or PBX must be connected to the ISDN1
TE outlet if it is to provide the clock for the VoIPBox!
Figure 3.2 → shows the standard pin assignment for TE and
NT modes. The cables included in the package contents have
this pin assignment. You must change the pin assignment if it
differs on the connected equipment.
Figure 3.2ISDN Wiring Scheme
3.4.2 Ethernet Wiring
To connect the VoIPBox’s Ethernet port to your local network,
connect the system to an Ethernet switch or hub in your network. Use the three meter cable with gray connectors.
VoIPBox BRI Version 18.0.002Page 35
3VoIPBox installation
!
3.5 Preparing for Installation
Each computer that is to communicate with the VoIPBox requires a network connection. DHCP can be used to automatically assign an IP address and the netmask. If you don’t use
DHCP, please have the following information for connection
to your network available:
| IP address in your local network for the VoIPBox to be
configured
| Netmask for the VoIPBox to be configured
| Default gateway for VoIPBox to be configured
Bear in mind that the preconfigured VoIPBox’s default IP
address is 192.168.1.2. If this IP address is already being
used in your local network, you must run Quickstart without a connection to your local network. This can occur using a back-to-back Ethernet connection from your
computer to the VoIPBox.
If the desired IP address for the VoIPBox is not in your network, you must assign your computer a temporary IP address from this IP-address range.
3.6 Hardware Connection
Connect your computer with the local network.
| Connect the VoIPBox with the local network
| Using the ISDN connection cables included in the pack-
age contents, connect the VoIPBox with your PBX and/or
the PSTN according to the required port configuration.
| Connect the VoIPBox with the power supply.
VoIPBox BRI Version 18.0.002Page 36
3VoIPBox installation
3.7 LED Functionality
Each VoIPBox has the following status LEDs:
Table 3.1VoIPBox LEDs
LEDNameDescription
Green 1Ethernet emac1Off:Link down.
On:Link up.
Blinking:Link active.
Green 2Ethernet emac0Off:Link down.
Green 3-4Not assigned.
Green 5ISDN TE port statusOff:No call on ISDN TE port.
Green 6VoIP call statusOff:No VoIP calls.
Green 7VoIP registrationOff:VoIPBox is not registered.
Green 8Flash diskBlinking: Flash disk active.
Green 9Bypass relayOff:Relay inactive.
RedPowerOff:Power off.
On:Link up.
Blinking:Link active.
On:At least one call on ISDN TE port.
On:At least one VoIP call.
On:VoIPBox is registered with the SIP
server or no registrar has been
configured.
On:Relay active.
On:Power on.
3.8 Startup with Quickstart
Quickstart is an application that helps you to configure the IP
settings of your VoIPBox quickly and conveniently without
changing any network settings on your computer. You will
need Quickstart as of version 15.0.
Quickstart can be installed on Windows operating systems.
VoIPBox BRI Version 18.0.002Page 37
3VoIPBox installation
If you are using Windows please follow the instructions in this
chapter. If you are using a non-Windows operating system
(e.g. Linux) follow the instructions in Chapter 3.9 →.
3.8.1 Installing Quickstart
Make sure the GATE Manager is not running on your computer. To install Quickstart on your computer, download the software from the web side http://195.4.12.80/board. Here the
software Quickstart and GATE Manager is needed. Download
the zip archives, extract them and install the programs using
the setup.exe file.
When asked if you want to install components on your machine, click Install.
Click Next in the introduction window to begin installation of
the Quickstart.
Once installation begins, click Next to install Quickstart in the
predefined folder. To install it in another location, click
Browse and select a folder from the browser that appears.
Then click Next.
Click Close to exit when installation is complete.
3.8.2 Configuration with Quickstart
Now you can use Quickstart to set up your VoIPBox. Open
Quickstart.exe. The program will automatically search for
your VoIPBox in the local network. For Quickstart, the source
UDP port is 57445. It might be necessary to change the firewall rules on your system.
VoIPBox BRI Version 18.0.002Page 38
3VoIPBox installation
Click the Search button to restart the search. When the program has found your VoIPBox, it will appear in the main window. As soon as it appears, you can end the search by clicking
Stop. The window on the right provides a running tally of the
system’s status.
The system’s icon will appear in gray if it is unconfigured.
Once it has been configured, it will appear in green. The serial
number appears as the system’s name.
To change the appearance of the window, select Large Icons,Small Icons or Details from the View menu. In the following
description, we will use the Details View, which contains the
following columns:
Table 3.2Quickstart Details View Columns
HeadingDefinition
IdentifierThis column lists the system’s serial number.
IP Address This column lists the system’s IP address.
ConfiguredAn X means the system contains the configuration files.
# of VoIP CtrlsThis column lists the number of VoIP Modules installed in the system.
It will always be 1.
VoIP ChannelsThis column shows the number of VoIP channels per VoIP Module.
TypeLists the type of system.
BoxAn X means the system is a TELES box-based system.
CF MountedThis column is not relevant for TELES box-based systems.
In the Options menu, you can suppress or activate ICMP ping
to test the Internet connection.
To perform the initial configuration of the system, doubleclick the icon or right-click and select Configure. The IP Set-tings dialog will appear. If you are using a DHCP server, activate the checkbox DHCP. This will deactivate the next three
lines. Your DHCP server will automatically provide all of the
other necessary information. If you do not have a DHCP server, leave the DHCP checkbox empty. The default IP address
appears in the IP Address box. Enter a new IP address. If the
VoIPBox BRI Version 18.0.002Page 39
3VoIPBox installation
!
address you enter already exists in the network, you will be
notified to choose another address at the end of the configuration process. Enter the system’s netmask in the Mask dialog
box. Enter the IP address for the Default Gateway in the cor-
responding dialog box. Click Finish.
Figure 3.3Quickstart Configuration: IP Settings
There is no internal time generation for the system when
the power is interrupted. That means the default time is
used when the system is restarted or rebooted! Therefore
it is important to set the system time with an NTP server.If
the system is connected via ISDN, a clock may come from
the network connected to the corresponding port. Enter
TIME in the pabx.cfg’s Subscriber line for the TE port to
retrieve the time from the port.
Now the IP settings are configured; all other processes run automatically. First the system’s IP address will be changed and
then the system will start with the new IP address.
If you right-click the system’s icon in the main window and
choose Temporarily Configure IP Address, only the IP ad-
dress for the system’s first Ethernet interface and the netmask will be temporary changed. This can be helpful if you
want to set up local remote access to the system and use oth-
VoIPBox BRI Version 18.0.002Page 40
3VoIPBox installation
er IP settings on the remote device than the system’s IP configuration in the network. Bear in mind that the functions on
the system’s first Ethernet interface work with the new settings.
Now you can complete the system’s configuration using the
GATE Manager (cf. Chapter 3.11.1 on page 43 →).
3.9 Startup via FTP
If you are using a computer that does not use a Windows OS
preconfigure the system via FTP. The system’s default IP address is 192.168.1.2. To configure the system using FTP, you
must assign your computer an IP address from network range
192.168.1.0 Class C and then access the system via FTP. The
default user is teles and the default password is tcs-ag.
Download the default configuration files from the /boot direc-
tory from the system:
| ip.cfg – This file is responsible for configuration of the
Ethernet interface.
| pabx.cfg – This file is responsible for the port configura-
tion.
| route.cfg– This file is responsible for the routing config-
uration.
To edit the default configuration as described in
Chapter 4.2.1.4 →. Upload the configuration files into the
/boot directory. For a detailed description of FTP access
please refer to Chapter 3.11.3 on page 46 →.
VoIPBox BRI Version 18.0.002Page 41
3VoIPBox installation
3.10 Self Provisioning with NMS
With a management connection to the NMS (Network Management System), the VoIPBox can retrieve its configuration
files from the configured NMS. That means that custom configuration of the device occurs automatically when the device
is started. The following setting must be made in the [System]
section of the pabx.cfg:
As soon as the device is started, it connects automatically with
the NMS, which uses the device’s TAG number to send a prepared configuration. For further information on configuration
of the NMS, please refer to the NMS Systems Manual.
3.11 Remote Access and Access Security
After the system has been configured via Quickstart and all
cables are connected, remote administration and maintenance can occur with the GATE Manager (Chapter 3.11.1 →),
the GUI (Chapter 3.11.2 →), or via FTP (Chapter 3.11.3 →).
VoIPBox BRI Version 18.0.002Page 42
3VoIPBox installation
3.11.1 GATE Manager
The GATE Manager administration and maintenance software
offers a broad range of functions. The GATE Manager is user
friendly and can be customized to suit your needs.
Figure 3.4GATE Manager
The following maintenance functions are possible:
| Display system information and network element status.
| Retrieve and display configuration files.
| Restart network elements.
| Use of a trace option for checking functions and fault di-
agnosis. Option to use an external tool, e.g. to display
and break down trace data.
| Update the system software (firmware) and configura-
tion tables.
| Retrieve CDRs (Call Detail Records).
| Display the current connections (status).
| Display statistical information for network elements and
interfaces.
| Display the status of the interfaces.
To complete the configuration retrieve and edit the config
files as described in Chapter 4 on page 49 →. You have to use
GATE Manager version 17.1 or later. For a detailed description
VoIPBox BRI Version 18.0.002Page 43
3VoIPBox installation
of installation and implementation of the GATE Manager,
please refer to the GATE Manager and Utilities Programs Manual.
GATE Manager remote access can occur via IP or ISDN. GATE
Manager access via IP uses port 4444 as origination TCP port
and port 4445 as destination port. The following default value
(4445) is configured in the pabx.cfg file for the system’s port:
MoipPort=4445
In the default configuration, ISDN remote access is disabled.
To configure the system so that certain data calls are received
as remote administration calls, make the following changes in
the pabx.cfg:
RemoteCode=BBB
Add the following mapping to the route.cfg:
MapAll<direct>=BBB DATA
Make the following entries in the route.cfg if the system is to
handle all ISDN data calls as remote-administration calls:
MapAll?=BBB DATA
3.11.2 Graphical User Interface
Remote access can occur via the GUI. Even users with little experience can easily configure standard system settings with
this interface. Simply open a browser and enter the system’s
IP address in the address bar. We recommend that you use Internet Explorer 6/7 or later.
The following administrative levels apply:
VoIPBox BRI Version 18.0.002Page 44
3VoIPBox installation
!
Administrator Mode (Full Access)
User: teles-admin
Password: tcs-admin
This access level is for the user network’s administrator. All
configuration pages can be accessed in this mode.
Read-Only Mode
User: teles-user
Password: tcs-user
No configuration changes can be made at this level. Only status and statistics can be retrieved.
The passwords are saved in the ip.cfg in encrypted form:
Never copy these entries from one system to another, as
the encryption is unique for each system.
The user interface is divided into the following main sections:
Table 3.3GUI: Sections
SectionDescription
User DataHere you can change the user passwords and the language for the
HTTP interface.
System SettingsIP Settings:Settings for the Ethernet interfaces and related servic-
es.
VoIPBox BRI Version 18.0.002Page 45
3VoIPBox installation
Table 3.3GUI: Sections (continued)
SectionDescription
System OverviewOverview of system information and drivers.
CommandsHere you can activate a configuration or restart the system.
All of the user interface’s pages contain Help buttons and
links to the online help, which provides a detailed description
of all of the individual configuration settings.
3.11.3 FTP
Remote access can also occur via FTP. You can use FTP to
transfer configuration files. You can also carry out functions
and traces with raw commands. Use the username teles and
the defined password to connect to the system with FTP.
The following entries ensure the security of your FTP access:
Table 3.4FTP Security Entries
FTP Security
FtpdPort=<port>
Defines the FTP access port (default 21).
RemotePassword=<password>
Defines the password for FTP and GATE Manager access. Please refer to
Chapter 3.11.4 → for instructions on how to enter an encrypted password in the
pabx.cfg. If you do not define a password, access to the system via GATE Manager occurs without a password, and FTP access occurs with the default password tcs-ag.
VoIPBox BRI Version 18.0.002Page 46
3VoIPBox installation
Once you have access to the system, you will be in the folder
/home/teles. To upload or download configuration files
change to the directory /boot. To download log files, also
change to the directory /boot. The following commands can
be carried out via FTP access:
Table 3.5FTP Commands
CommandFunction
site xgbootBoots the entire system.
site xgactActivates the configuration.
site xgact 1-19Activates the Night section corresponding with the number 1-
site xgtrace 0Deactivates trace.
site xgtrace 1Activates layer 2 trace.
19.
site xgtrace 2Activates layer 3 trace.
If your FTP client does not support the site command, try “literal site” instead.
3.11.4 Setting a Password for Remote Access
The system comes with no password set for GATE Manager
access. If you do not define a password, access to the system
via GATE Manager takes place without one, and FTP access
takes place with the default password tcs-ag.
The password is set with the parameter
RemotePassword=<password> in the pabx.cfg. The value
<password> contains the encrypted text of the password.
Define the encrypted text with the GATE Manager as follows:
1. Open the GATE Manager,
2. Select the menu Edit | Encode Password…
VoIPBox BRI Version 18.0.002Page 47
3VoIPBox installation
3. Enter the password in clear text in the Encode Password box and click OK.
4. In the screenshot above, the clear text password is
Weihnachtsmann@Bln. The encoded password is
vDLGTEBIZUNDMR@fNP54B.
5. Enter the encoded password as shown in Example
3.2 →.
Example 3.2pabx.cfg with an encoded password
RemotePassword=vDLGTEBIZUNDMR@fNP54B
Transfer the pabx.cfg to the system using the GATE Manager
and activate the new configuration. After the file has been
transferred reboot the system. The system can than be accessed only with the correct password. Don’t forget to memorize it!
VoIPBox BRI Version 18.0.002Page 48
4Configuration files
4Configuration files
!
This chapter describes the basic setup and the most commonly used entries for the configuration files. Configuration of VoIPBoxes is managed in the following three files:
Table 4.1Configuration Files
FileFunction
ip.cfgThis file is for the basic configuration of the Ethernet interfaces.
pabx.cfgThis file is for system-specific and port-specific settings.
route.cfgThis file is for routing entries.
Changing configuration data may lead to malfunctions
and/or misrouting, as well as possible consequential damage. All changes are made at own risk. TELES is not liable
for any possible damage out of or in relation to such
changes. Please thoroughly check any changes you or a
third party have made to your configuration.
The system comes without the files. The default configuration
with the IP address 192.168.1.2 is active when the files are not
on the system. You can configure the system using Quickstart,
GATE Manager or via FTP (user teles, password tcs-ag). If you
use the GUI to make configuration changes, the files will be
adjusted automatically.
Make sure you secure the system with new passwords following configuration and remember to memorize the passwords!
These configuration files contain all system-specific settings
and are used when the system starts. Comments included in
these files must begin with a semicolon. They do not need to
be at the beginning of a line. Configuration files must end with
an empty line.
VoIPBox BRI Version 18.0.002Page 50
4Configuration files
The configuration files follow these conventions: Individual
files are divided into sections. These sections always begin
with a line entry in square brackets. The basic required sections are in these files:
Table 4.2Required Configuration File Sections
SectionFileFunction
[System] pabx.cfg
rou te.cfg
ip.cfg
[Night<num>]
EXAMPLE: [Night1]
[Night2]
[emac0]ip.cfgThis section contains the IP configuration for
pabx.cfg
rou te.cfg
This section contains the system’s basic settings.
This section contains time dependent entries
that only apply for limited times.
the first Ethernet interface.
4.1 Configuration File ip.cfg
The basic settings for the two Ethernet interfaces are entered
here. One interface usually suffices. The second interface can
be used for special requirements, e.g. as a hub port, DSL router or vLAN interface. Generally, these settings are entered
once and then left unchanged.
This file contains the following sections, which must appear in
the order given:
Table 4.3Sections in the ip.cfg File
SectionFunction
[System] (required)This section contains entries that define the default gateway
and/or special routing entries.
[emac0] (required)
[emac1] (optional)
[httpd]This section contains the port and access password parame-
[nat] (optional)This section includes settings for Network Address Translation.
VoIPBox BRI Version 18.0.002Page 51
The Ethernet Media Access Controller section(s) define the
physical Ethernet interface(s).
ters for the graphical user interface.
4Configuration files
Table 4.3Sections in the ip.cfg File (continued)
SectionFunction
[bridge0] (optional)These section(s) contain settings for the second Ethernet con-
troller in bridge mode.
[pppoe<x>] (optional)These sections contain settings for direct connection between
the system and the DSLAM when the PPPoE protocol is used.
<x> can be 0 or 1.
[firewall] (optional)This section contains settings for activating the system’s fire-
wall.
[altqd] (optional )This section enables prioritization of VoIP packets in the
VoIPBox through an IP network using bandwidth control.
[dhcpd] (optional)This sections contains a list of parameters and settings for the
DHCP server in the system. It is divided into global settings for
the server and parameters for the DHCP subnet.
[vlan<x>] (optional)These section(s) contain settings for the virtual networks. <x>
can be anything from 0 to 9.
4.1.1 System Section Configuration
The [System] section contains entries that define the default
gateway and/or special routing entries. To define the standard gateway, use the following entry to set the IP address:
DefaultGw=<ip addr>
Example 4.1Default gateway configuration
[System]
DefaultGw=192.168.1.254
VoIPBox BRI Version 18.0.002Page 52
4Configuration files
If you must route specific net ranges to gateways other than
what is defined in the default route, make the following entries in the [System] section:
Route=<target range> -netmask <ip mask> <ip gateway>
If only certain routes apply, leave the line DefaultGw empty.
4.1.2 Ethernet Interface Configuration
The following settings are possible for the sections [emac0]
and [emac1]:
IpAddress=<ip addr>/<netmask>
The IP address is entered in decimal notation, followed by a
slash (/) and the netmask in bit notation.
Example 4.3IP address configuration
IpAddress=192.168.1.2/24
The following entry is used to allocate an IP address via DHCP:
IpAddress=dhcp
The following entry is used in the [emac1] section if operation
of the system is occurs in bridge mode. IpAddress=up
4.1.3 GUI Settings
The following parameter is used to change the GUI port in the
section [httpd] (default 80):
GuiPort=<num>
VoIPBox BRI Version 18.0.002Page 53
4Configuration files
Bear in mind that the passwords for different access levels are
not set here. The encrypted passwords are stored here and
can only be changed via GUI (see Chapter 3.11.2 Graphical
A bridge can connect two networks with each other. A bridge
works like a hub, forwarding traffic from one interface to another. Multicast and broadcast packets are always forwarded
to all interfaces that are part of the bridge. This can occur on
the Ethernet or VLAN level:
BrConfig=add <interface-x> add <interface-y> up
Activating another Ethernet interface in this way is useful, for
example, when the Ethernet switch does not have any more
ports available for connection of the system. You can simply
unplug a cable and plug it into the system’s second Ethernet
interface.
Example 4.5Bridge configuration
[bridge0]
BrConfig=add emac0 add emac1 up
VoIPBox BRI Version 18.0.002Page 54
4Configuration files
4.1.5 NAT Configuration
The NAT (Network Address Translation) module translates IP
addresses from the local network to an IP address or range on
a public interface. All rules are defined in the [nat] section:
This parameter maps the IP address in the local network to the IP address in the public
network.
<interface> Defines the translated interface or protocol:
emac1The system’s second Ethernet interface
pppoe0Protocol used for DSL connections
xppp<0>Protocol used for dial-up connections
<local ip address/mask>The IP address is entered in decimal notation, followed by
a slash (/) and the netmask in bit notation. The entire local
network range is configured.
<public ip address/mask>Defines the public network range, with network address
and mask (usually exactly one address), into which the local IP addresses are to be translated. The IP address is entered in decimal notation, followed by a slash (/) and the
netmask in bit notation.
<optional entries>Special rules can be defined for some services or proto-
cols. The system can serve as a proxy for FTP:
proxy port ftp ftp/tcp
Special ports for the public address(es) can be assigned for
the protocols TCP and UDP. The range is defined by the
start and end ports:
portmap tcp/udp <start port>:<end port>
If no optional entry is defined, all other addresses will be
translated without special rules.
rdr=<interface> <public network address/mask> port <port> -> <local network address/
mask> port <port_number> <protocol>
This parameter redirects packets from one port and IP address to another.
<interface>Defines the translated interface or protocol:
emac1The system’s second Ethernet interface
pppoe0Protocol used for DSL connections
xppp<0>Protocol used for dial-up connections
<public ip address/mask>Defines the public network range, with network address
and mask (usually exactly one address), into which the local IP addresses are to be translated. The IP address is entered in decimal notation, followed by a slash (/) and the
netmask in bit notation.
VoIPBox BRI Version 18.0.002Page 55
4Configuration files
Table 4.4NAT Configuration (continued)
<port>Defines the port number.
<local ip address/mask>The IP address is entered in decimal notation, followed by
<protocol>Defines the protocol. tcp and udp are possible.
Enter all interfaces that you have configured. If an interface is activated, the NAT table is
resetted to ensure correct IP address translation.
The following NAT settings are for a system in which PPPoE
(DSL) is used toward the Internet. The local network range
192.168.1.0 Class C is translated with the following rules:
| The proxy mode is used for FTP.
| All other TCP and UDP packets are mapped to the exter-
nal ports 40000 to 60000.
| There are no special rules for any other services.
| Incoming requests to port 80 and 443 in the public IP ad-
dress 192.168.1.100 are redirected to ports 80 and 443 in
the local IP address 192.168.1.100.
a slash (/) and the netmask in bit notation. The entire local
network range is configured.
Example 4.6NAT configuration
[nat]
map=ppoe0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
map=ppoe0 192.168.1.0/24 -> 0/32 portmap tcp/udp 40000:60000
map=ppoe0 192.168.1.0/24 -> 0/32
rdr=ppoe0 0/0 port 80 -> 192.168.1.100 port 80 tcp
rdr=ppoe0 0/0 port 443 -> 192.168.1.100 port 443 tcp
4.1.6 PPPoE Configuration
The protocol Point-to-Point over Ethernet is used for DSL
communication with the DSLAM. That means the system can
connect directly with the carrier network and terminate VoIP
traffic directly.
VoIPBox BRI Version 18.0.002Page 56
4Configuration files
All necessary information for setup of the PPPoE connection
is defined in the [pppoe<x>] section. That means username,
password and authentication protocol are set here. The Ethernet interface is emac1 and the gateway can also be defined.
The parameter PppoeIf defines the physical Ethernet interface used (always emac1). The settings are entered as follows:
Table 4.5Settings in the [pppoe<x>] Section of the ip.cfg
[pppoe<x>]
PppoeIf=<interface>
Enter the Ethernet interface used for the DSL connection (usually emac1).
User=<username>
Enter the username used for DSL access.
Pwd=<password>
Enter the password used for DSL access.
AuthProto=<protocol>
Enter chap or pap for the protocol used for authentication.
Route=<ip-addr> (optional)
Enter the target IP address range, e.g. 0.0.0.0 (default route). All packets that are not
defined for the local network will be sent through this interface. In this case, the parameter DefaultGW in the [System] section (Chapter 4.1.1 →) must remain empty.
Only network ranges can be routed. The syntax in this case is Route=<target range> netmask <ip mask>. If several different network ranges are used, you must enter the
Route parameter for each range.
Bear in mind that configuration of the firewall, the NAT module and prioritization of the VoIP packets must be considered
when routing voice and data through the DSL line.
VoIPBox BRI Version 18.0.002Page 57
4Configuration files
!
The following entry will create the interface pppoe0, with the
username user and the password pwd. The PAP authentication protocol is used. The default route occurs via DSL:
The firewall settings provide options for limiting or denying
access to and from the system. If you do not configure this
section, the firewall is inactive and access is unlimited.
Make sure you configure the firewall rules carefully. The
rules are processed from top to bottom. If you use the option quick, you will break the sequence. We recommend
that you put the most restrictive rule at the end of the configuration.
In the following example, only port 4445 allows incoming connections from the IP address 192.168.1.10. All others will be
blocked
Example 4.8Firewall settings: blocking ports
[firewall]
fw=pass in quick on emac0 proto tcp from 192.168.1.10/32 to any port
eq 4445 flags S keepstate keep frags
fw=block in log quick on emac0 all
VoIPBox BRI Version 18.0.002Page 58
4Configuration files
Table 4.6Settings in the [firewall] Section of the ip.cfg
[firewall]
fw=<mode> <direction> <list>
<mode>Two modes are possible for permitting or denying access:
passpermits access
blockdenies access
<direction>Possible directions are in and out:
inexternal to internal
outinternal to external
<list>All other entries specify the other settings for the corresponding
firewall rules and are optional. The order in the line is as listed below:
log
Records non-matching packets.
quick
Allows short-cut rules in order to speed up the filter or override later rules. If a packet
matches a filter rule that is marked as quick, this rule will be the last rule checked, allowing a short-circuit path to avoid processing later rules for this packet. If this option
is missing, the rule is taken to be a "fall-through rule, meaning that the result of the
match (block/pass) is saved and that processing will continue to see if there are any
more matches.
on <interface>
The firewall rule is used only for the defined interface (e.g. emac0, pppoe0).
from <networkaddress/mask>
to <networkaddress/mask>
from defines the source IP-address range for incoming packets. to defines the target
IP-address range for outgoing packets. The IP address appears in decimal notation,
followed by a slash (/) and the netmask in bit notation. any stands for all IP addresses
(e.g.: to any).
NOTE: If you use the rule pass in/out in combination with the option from <ip> to <ip>, you
must specify a protocol number with proto and a port number. If you not specify the port, the
system may not be reachable.
EXAMPLE: fw=pass in quick on pppoe0 proto tcp from any to any port eq 4445
proto <protocol>
defines the protocol, for which the rule is valid (e.g.: proto tcp, proto udp, proto icmp).
port eq <num>
<num> defines the port as number (e.g.: port eq 4445).
keep state
Ensures that the firewall checks packets from the beginning to the end of a session.
This is necessary, as the firewall does not know when a session begins or ends.
VoIPBox BRI Version 18.0.002Page 59
4Configuration files
Table 4.6Settings in the [firewall] Section of the ip.cfg(continued)
[firewall]
fw=<mode> <direction> <list>
flags S
Only syn. packets are accepted and recorded in the state table. In conjunction with
keep state, packets from sessions that have been inactive will also be routed. The advantage of this entry is that random packets will not be accepted.
keep frags
Fragmented packets are also routed.
Example 4.9Firewall settings
[firewall]
; loopback
fw=pass in quick on emac0 all
fw=pass out quick on emac0 all
; traffic to outgoing
fw=pass out quick on pppoe0 proto tcp all flags S keep state keep frags
fw=pass out quick on pppoe0 proto udp all keep state keep frags
fw=pass out quick on pppoe0 proto icmp all keep state keep frags
; incoming traffic
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 21 flags S keep state keep
frags
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 23 flags S keep state keep
frags
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 4445 keep state
; icmp traffic
fw=pass in quick on pppoe0 proto icmp all keep state
; other will be blocked
fw=block in log quick on pppoe0 all
fw=block out log quick on pppoe0 all
4.1.8 Bandwidth Control
In many implementation scenarios, the VoIPBox in router
mode (e.g. as DSL router) sends voice and data traffic through
a connection with limited bandwidth. This can lead to lost
voice packets that arrive too late to be used in the voice
stream. To avoid lost packets, this QOS setting prioritizes
packet transmission. You must set the priority for voice signaling and for the voice packets. That means you must prioritize
SIP/H.323, RTP and RTCP. You will find the ports used in Table
4.16 →, in the following entries:
H225Port
VoIPBox BRI Version 18.0.002Page 60
4Configuration files
SipPort
VoipRtp Port
VoipRtpPortSpacing
Different ports can be used for RTP and RTCP, depending on
the configuration.
The parameter VoipRtpPort shows the first RTP port used.
The corresponding RTCP port is the next one up. The parameter VoipRtpPortSpacing shows the next RTP port (RTP port +
port spacing).
Table 4.7Settings in the [altqd] Section of the ip.cfg
interface <interface> bandwidth <bw> priq
Defines the interface for which the rule applies.
<interface> Sets the interface for which prioritization applies (e.e. pppoe0).
<bw> Sets the bandwidth that is available on the interface in Kbit/s (e.g.
256K).
priq Priority qeueing. A higher priority class is always served first.
class priq <interface> <class> root priority <prio>
<prio> Enter a value between 0 and 15. The higher the value (e.g. 15), the
higher the priority.
filter <interface> <class> <values>
Defines the individual rules.
<values> The individual values are divided into the following entries. A 0 can
be entered as a wildcard, in which case all values are possible:
<dest_addr> (can be followed by netmask <mask>)
<dest_port>
<src_addr> (can be followed by netmask <mask>)
<src_port>
<protocol tos value>:
6 for TCP
17 for UDP
VoIPBox BRI Version 18.0.002Page 61
4Configuration files
In the following example, prioritization is set for an eightchannel VoIP connection. The SIP signaling port 5060 and the
RTP/RTCP ports 29000 to 29015 are prioritized at level 7. All
other services are set at level 0.
Example 4.10Settings in the [altqd] Section of the ip.cfg
The DHCP (Dynamic Host Configuration Protocol) server provides a mechanism for allocation of IP addresses to client
hosts. The section [dhcpd] contains a list of parameters and
settings for the DHCP server in the system. It is divided into
global settings for the server and parameters for the DHCP
subnet.
Table 4.8Settings in the [dhcpd] Section of the ip.cfg
[dhcpd]
; Global dhcpd parameters
allow unknown-clients;
All DHCP queries are accepted and the configured settings are transmitted to the clients.
ddns-update-style none;
Deactivates dynamic update of the domain name system as per RFC 2136.
Table 4.8Settings in the [dhcpd] Section of the ip.cfg(continued)
[dhcpd]
In <list> you can enter any of the following specific network settings activated by the
DHCP server. Each option must begin in a new line and end with a semicolon (;).
range <start IP address> <end IP address>;
The DHCP network range is defined by the first and last address in the range. Client
assignment begins with the last address.
option broadcast-address <IP address>;
Defines the broadcast address for the clients in the subnet.
option domain-name "<string>";
Defines the domain name used in the network.
option domain-name-servers <IP address>;
Defines the DNS-server address to be assigned (as per RFC 1035)
All of the following optional entries defining server addresses are also transmitted as
per RFC 1035. Separate multiple addresses per server with a comma:
… <IP address>, <IP address>;
(this also applies for all other optional entries with IP addresses).
option netbios-name-servers <IP address>
Defines the WINS-server address to be assigned.
option ntp-servers <ip address>;
Defines the NTP-server address to be assigned.
option time-servers <ip address>;
Defines the time-server address to be assigned (RFC 868).
option routers <IP address>;
Defines the default gateway address to be assigned.
option subnet-mask <net mask>;
Defines the netmask to be assigned (as per RFC 950).
option tftp-server-name "<link>";
Defines the TFTP server name (option 66), as per RFC 2132.
EXAMPLE: option tftp-server-name "http://192.168.0.9";
Example 4.11Settings in the [dhcpd] Section of the ip.cfg
[dhcpd]
; Global dhcp parameters
allow unknown-clients;
ddns-update-style none;
; Parameter for the Subnet
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.3 192.168.1.20;
option broadcast-address 192.168.1.255;
option domain-name "company.de";
option domain-name-servers 192.168.1.2;
option routers 192.168.1.2;
option subnet-mask 255.255.255.0;
}
VoIPBox BRI Version 18.0.002Page 63
4Configuration files
4.1.10 DNSmasq settings
Dnsmasq is an easy to configure DNS forwarder. It is designed
to provide DNS to a small network.
Table 4.9Settings in the [dnsmasq] Section of the ip.cfg
[dnsmasq]
bogus-priv
Bogus private reverse lookups. All reverse lookups for private IP ranges (ie
192.168.x.x, etc) which are not found in /etc/hosts or the DHCP leases file are answered with "no such domain" rather than being forwarded upstream.
filterwin2k
Later versions of windows make periodic DNS requests which don't get sensible answers from the public DNS and can cause problems by triggering dial-on-demand
links. This flag turns on an option to filter such requests. The requests blocked are for
records of types SOA and SRV, and type ANY where the requested name has underscores, to catch LDAP requests.
user=<username>
Specify the userid to which dnsmasq will change after startup. Dnsmasq must normally be started as root, but it will drop root privileges after startup by changing id to
another user. Normally this user is "nobody" but that can be over-ridden with this
switch.
cache-size=<cachesize>
Set the size of dnsmasq's cache. The default is 150 names. Setting the cache size to
zero disables caching.
clear-on-reload
Whenever /etc/resolv.conf is re-read, clear the DNS cache. This is useful when new
nameservers may have different data than that held in cache.
The point-to-point protocol is used for dial-up connections.
The gateway can establish either a connection to the Internet
or – if ISDN is used for the connection – to another gateway. If
you use PPP to establish an Internet connection, don’t forget
to configure the firewall accordingly.
The advantages of VoIP over ISDN can be seen especially in
corporate implementation. For example, it is useful when a
very high number of connections occurs between subsidiaries
and one subsidiary does not have a broadband Internet connection. An ISDN B-channel can be connected to the Internet
and up to six voice calls can occur simultaniously over one
ISDN line. All necessary information for setup of the PPP connection is defined in the section [xppp<num>].
The settings are entered as follows:
Table 4.10Settings in the [xppp] Section of the ip.cfg
[xppp<num>]
Dad=<num>
Enter the dial-up number.
User=<username>
Enter a username.
Pwd=<password>
Enter a password.
Route=<ip-addr>
Enter the target IP address range, e.g. 0.0.0.0 (default route).
AuthProto=<protocol>
Enter chap (default) or
AutoUp=<int>
Defines if the PPP interface is activated automatically after system start. The following
values are possible:
0 = No automatic PPP activation (default)
1 = Automatic PPP activation
IdleTO=<sec>
Enter the number of seconds without traffic before the interface tears down the connection.
pap for the protocol used for authentication.
VoIPBox BRI Version 18.0.002Page 65
4Configuration files
Table 4.10Settings in the [xppp] Section of the ip.cfg(continued)
[xppp<num>]
MTU=<int>
Maximum Transfer Unit. We recommend the following default values:
1500 for ISDN dial-up.
Rfc1662=<val>
Framing to be use:
0 for ISDN.
LcpTO=<msec>
Allows you to change the value of the LCP timeout. The timeout-value must be specified in milliseconds (default 1000).
DNS=<bitmask>
Enter here to which of the carrier’s DNS server the gateway shall send the DNS request. The following values are possible:
1 = primary DNS server
2 = secondary DNS server
3 = both servers
StartDelay=<sec>
Time in seconds the system will wait to start the ppp process.
OwnIP=<IP address>
A temporay IP address assigned to the interface (such as 0.0.0.0). This address is valid
until an IP address has been assigned to the interface by the carrier. Not needed for
the xppp0 interface.
PeerIP=<IP address>
The IP address that is configured for the peer (such as 0.0.0.1). Not needed for the
xxxp0 interface, each other interface has to have a different peer IP address.
Example 4.13Settings in the [xppp] Section of the ip.cfg
A VLAN (Virtual Local Area Network) is a virtual LAN within a
physical network. Each VLAN is assigned a unique number
(VLAN ID) and defined in the [vlan<x>] section with
Tag: value between 1 and 4095
Priority: value between 0 and 7 (0 is lowest and 7 is the highest
priority)
[vlan0]
IfConfig=vlan <tag>,<priority> vlanif <interface>
The following entry will create the interface vlan1, with VLAN
tag 10 and priority 7, on the Ethernet interface emac0. Following this configuration, IP addresses (and/or other protocols)
can be assigned to the vlan1 interface.
In the following example, the system’s IP address is
192.168.1.1, the netmask is 255.255.255.0, and the standard
gateway is 192.168.1.254.
Example 4.15Default configuration
[System]
DefaultGw=192.168.1.254
[emac0]
IpAddress=192.168.1.1/24
VoIPBox BRI Version 18.0.002Page 67
4Configuration files
4.1.13.2Active ethernet bridge
In the following example a two-port Ethernet bridge is configured. The system’s IP address is 192.168.1.1, the netmask is
255.255.255.0, and the standard gateway is 192.168.1.254.
The emac1 interface is active and both Ethernet interfaces are
set to bridge mode in the [bridge0] section.
Example 4.16Active ethernet bridge
[System]
DefaultGw=192.168.1.254
[emac0]
IpAddress=192.168.1.1/24
[emac1]
IpAddress=up
[bridge0]
BrConfig=add emac0 add emac1 up
4.1.13.3Integrated DSL-Router Scenario for VoIP
In the following example, the system is connected to the local
IP network through emac0. The DSL modem is connected to
the emac1 interface, which enables the system to connect di-
VoIPBox BRI Version 18.0.002Page 68
4Configuration files
rectly to the carrier network without an additional router
when the connection is used only for VoIP data. A DHCP server is used for dynamic IP-address allocation.
Example 4.17Integrated DSL-Router Scenario for VoIP
[firewall]
; loopback
fw=pass in quick on emac0 all
fw=pass out quick on emac0 all
; traffic to outgoing
fw=pass out quick on pppoe0 proto tcp all flags S keep state keep frags
fw=pass out quick on pppoe0 proto udp all keep state keep frags
fw=pass out quick on pppoe0 proto icmp all keep state keep frags
; incoming traffic
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 21 flags S keep state keep
frags
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 23 flags S keep state keep
frags
fw=pass in quick on pppoe0 proto tcp from 10.4.0.0/16 to any port eq 4445 keep state
; icmp traffic
fw=pass in quick on pppoe0 proto icmp all keep state
; other will be blocked
fw=block in log quick on pppoe0 all
fw=block out log quick on pppoe0 all
[dhcpd]
; Global dhcp parameters
allow unknown-clients;
ddns-update-style none;
; Parameter for the Subnet
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.3 192.168.1.20;
option broadcast-address 192.168.1.255;
option domain-name "company.de";
option domain-name-servers 192.168.1.100;
option routers 192.168.1.2;
option subnet-mask 255.255.255.0;
VoIPBox BRI Version 18.0.002Page 69
4Configuration files
4.1.13.4VLAN Scenario
In the following example, the system is connected to the IP
backbone through emac0. One Computer is connected to the
emac1 interface. You can separate voice and data traffic with
two different VLANs (vlan0 with tag 10 for voice, vlan1 with tag
11 for data). All traffic coming from emac1 will be sent to
vlan1. Voice and data will not be mixed.
The entry in this category is responsible for the bypass functionality of the BRI port’s relay when the system is on. When
the system is off, the ports are connected as follows: Bypass
relay occurs between ISDN ports 1 and 2.
This means there is a transparent connection between the
PBX (or the telephones) and the PSTN. When the system is on,
all routing algorithms are active.
Bypass=ON/OFF (default ON)
ON: Bypass relay is on (system controls all ports).
OFF: Bypass relay is off (ports are connected to each other as
described above, regardless of whether or not the system is
running).
To ensure bypass functionality, make sure this parameter
is always set to ON (default).
4.2.1.2Log Files
CDRs, unconnected calls, system events, trace output and statistics can be saved into files.
The following entries are necessary to generate log files:
Table 4.11pabx.cfg: Log File Entries
EntryDescription
ActionLog=/boot/protocol.logSystem events
Log=/boot/cdr.logCDR entries
VoIPBox BRI Version 18.0.002Page 71
4Configuration files
!
Table 4.11pabx.cfg: Log File Entries (continued)
EntryDescription
failedlog=/boot/failed.logUnconnected calls
TraceLog=/boot/trace.logSystem trace
The available internal memory is approximately 8 MB.
Make sure you monitor the available memory.
You can define how the log files are to be divided. There are
two possiblities for saving entries into a new file:
| In increments of time (twice-daily, daily, weekly, monthly)
| Depending on the size of the file
You can also define a maximum number of up to 7 files to be
generated.
A dash (-) appears in place of information that is to be ignored.
Table 4.12pabx.cfg: Log Parameters
Log=/boot/<file> <saved> <size> <count>
<file>The name of the log file is generated as follows:
[file]yymmdd[0-9|A-Z].log.
<saved>Refers to the frequency with which the file is saved. The following
options are possible:
halfdaily Every day at 11:59 and 23:59
daily Every day at 23:59
weekly Sunday at 23:59
monthly The last day of the month at 23:59
<size>Regardless of the value entered in <day>, the file will be saved
when the <size> has been reached (in kB).
NOTE: We recommend a file size of a multiple of 60kB.
<count>Refers to the number of files that will be saved in the system (be-
tween 5 and 35) before the first file is overwritten. This setting is
useful not only for limited file size, but also for files that store
events. Normally size can be limited for these files, e.g. 5 files of
1MB each. If the fifth file is full, the first one will automatically be
overwritten.
VoIPBox BRI Version 18.0.002Page 72
4Configuration files
!
!
Bear in mind that file size will be unlimited if no parameters are defined.
In the following entry, the file cdr.log is renamed every day.
Up to 35 CDR files will be saved on the system.
Example 4.19cdr.log renamed daily
Log=/boot/cdr.log daily - 35
In the following entry, the file failed.log is renamed once a
week. Up to 10 failed files will be saved on the system.
Example 4.20failed.log renamed once a week
failedlog=/boot/failed.log weekly - 10
In the following entry, the file protocol.log is renamed when
the file has reached 1MB. Up to five log files will be saved on
the system.
Example 4.21protocol.log renamed when file size = 1MB
ActionLog=/boot/protocol.log - 1000 5
Please remember to keep track of how much memory is
available on the system.
4.2.1.3Night Configuration
The sections for the time-dependent configuration changes
and time-controlled routings are defined here.
VoIPBox BRI Version 18.0.002Page 73
4Configuration files
A maximum of 19 additional daily configuration zones are
possible (Night1 to Night19). The entry NightResetTime reactivates the original configuration contained in the [System]
section.
The entry will have the following syntax:
Table 4.13pabx.cfg: Night Parameters
Night<num>=<time> <day>
<num>Enter a value between 1 and 19 to define which configuration is to be load-
ed.
<time>If there is a time set with the format hh:mm after this entry, this configu-
ration is loaded daily at that time on the defined day.
<day>Use a bitmask to set the weekdays on which the configuration applies
here. The daymask appears in the following order: HoSaFrThWeTuMoSu.
The configuration section is activated Fridays, Wednesdays
and Mondays at noon unless the day in question is a holiday:
Example 4.22Night parameters 1
Night2=12:00 00101010
The configuration section switches back to the default configuration ([System] section) every day at 8:00 p.m:
Example 4.23Night parameters 2
NightResetTime=20:00 11111111
The configuration section is activated on November 5, December 24, and at noon on Mondays.
Up to 50 different dates can be set for night sections used by
holiday. The variable dd.mm sets the day and month in which
the night section is activated when the 8th bit is set in the bitmask (see Table 4.13 →).
Any defined Night sections must be set in the files
pabx.cfg and route.cfg. If there are no changes in these
sections, you must copy them from the [System] section.
The complete Subscriber section must appear in the
Night section of the pabx.cfg (see Chapter 4.2.4 Time-
Controlled Configuration Settings →). The active route(s)
(MapAll, Restrict and Redirect entries) must appear in the Night section of the route.cfg (see
Chapter 4.3 Configuration File route.cfg →).
4.2.1.4Controllers
This category defines the parameters that apply to the ports.
The individual ports are defined with the following parameters.Ports set to the same type can have the same address. In
this case they will form a trunk group. If you change this parameter in the configuration, you must restart the system.The
NOTE: The <line_type> must be configured for these entries to work.
EXAMPLE:
Controller02=10 NT DSS1 PMP UNIT: VALUE:0.010
Controller03=10 NT DSS1 PMP UNIT: VALUE:0.010
late by unit. Enter the values in the following formats: x.y, x.yy, or x.yyy.
Default is 0.120.
inactive to active.
following example applies for the VoIPBox BRI with 4 ISDN
ports.
Example 4.25VoIPBox BRI with 4 ISDN ports
Controller00=9 TE DSS1 PMP
Controller01=9 TE DSS1 PMP
Controller02=10 NT DSS1 PMP
Controller03=10 NT DSS1 PMP
Controller04=40 VOIP
VoIPBox BRI Version 18.0.002Page 76
4Configuration files
!
4.2.1.5Subscribers
Features for each port can be defined using this entry. Changes become active following a restart.
You must restart the system after making changes to activate the settings.
Table 4.15pabx.cfg: Subscriber Parameters
Subscriber<port>=<list>
<port> Refers to the running (physical) port number.
The <list> variable may contain one or more of the following keywords:
DEFAULT The standard configuration will be used.
TRANSPARENT
ROUTER
ALARM Activates the monitoring mode for the respective port. If a relevant er-
SWITCH Changes internal port handling. In the default configuration, the VoIP
CHMAX[x] Defines the number of VoIP channels (8) or DTMF channels. A maxi-
DTMF[<sec>,/
<dir>/<file>]
Only the number is sent as caller ID (without the virtual port address).
Activate configuration suffices to activate changes. If TRANSPARENT
ROUTER is not set, the address of the incoming port is added to the A
party number as a prefix.
ror occurs at the port, the error is written in the protocol.log file. Depending on the configuration, a remote connection to the number
defined for AlarmCallback is established and/or an SNMP trap is generated. Activate configuration suffices to activate changes.
controller is set to NT. You can use this parameter to change it from NT
to TE.
mum of two concurrent channels are possible for DTMF recognition if
the callback platform is used.
Keyword to configure the DTMF controller. For a description of the format, please see Chapter 10.2 on page 228 →.
VoIPBox BRI Version 18.0.002Page 77
4Configuration files
4.2.1.6Global Settings
This category contains the following system parameters:
Table 4.16pabx.cfg: global settings (page 1 of 4)
System Parameters
VoipGlobalMaxChan=<count>
Max. number of channels for the entire system.
VoipMaxChanOut=<count>
Limits outgoing calls through this profile. You have to define the number of VoIP channels to be used.
VoipSuppressRtcp=<mode>
Suppresses (Yes) or allows (No) the sending of RTCP packets.
VoipAnnounce=<filename>,NOCONN FAKEALERT
Only for outgoing calls which are sent through the VoIP profile where this parameter
is included.
VoipAnnounce defines an audio file which is played to the caller. The entire file is
played, even if the called person picks up the call before the end of the announcement. Enter a comma after the filename to mark the end of the file.
In the defa ult set tin g, a conn ect is s ent to th e cal ler s tra igh t aw ay s o th at th e ca ller c an
hear the announcement.
Set the option
Set the option FAKEALERT to play a ringtone after the announcement.
NOCONN to suppress this connect.
VoipStopAnnounceOnConnect=<mode>
If
Yes is set and the call changes to the state CONNECTED, the announcement config-
ured with VoipAnnounce is stopped.
VoipStopAnnounceOnAlert=<mode>
If
Yes is set and the call changes to the state ALERTING, the announcement configured
with VoipAnnounce is stopped.
VoipFaxVolume=<volume>
Defines the volume of fax and CID tones.
Range: 0 (-21 dB) to 15 (-6 dB)
Default: 9 (-12 db)
VoipCEDTransferMode=<int>
Defines whether CED (a tone initially sent by a fax device) is sent via T.38 or RTP:
0 = T.38 (default)
1 = RTP
VoipCngRelayEnable=<int>
Defines whether CNG (a tone initially sent by a fax device) is transmitted by means of
T.38 or RTP:
0 = RTP (default)
1 = T.38
Voi pS end Up dat e= <mo de >
Allows (
Yes) sending of UPDATE messages or not (No). Yes is the default value.
VoIPBox BRI Version 18.0.002Page 78
4Configuration files
Table 4.16pabx.cfg: global settings (page 2 of 4)
System Parameters
VoipRtpPort=<port>
Defines the starting UDP port used to transmit RTP packets (default 29000).
VoipRtpPortSpacing=<count>
Defines the space between the ports used for individual RTP streams (default 2).
H225Port=<port>
Endpoint-to-endpoint port (default 1720).
SipPort=<port>
SIP signaling port (default 5060). A different port for sending can be set in the
route.cfg’s Vo IP p rofi le. Oth erwi se t he p ort s et h ere wil l be u sed f or s endi ng a nd r ece iv-
ing.
VoipMaximumBandwidth=<int>
Defines an upper limit for available bandwidth for the VoIP profiles to be configured
(see VoipBandwidthRestriction in Table 11.6 →) if traffic shaping is active for the cor-
responding VoIP profile. Individual codecs are assigned the following values in kBit/s:
Other1
You must define the list of codecs to be used in the VoIP profiles, whereby the codec
with the highest priority must be defined first. Calls will be set up using the codec with
the highest priority as long as the sum of the values for individual calls remains lower
than defined here. If the sum is greater, the next call will be set up with, and existing
calls will be switched to, a higher compression rate. Bear in mind that the VoIP peer
must support this feature.
VoipStrictRfc3261=<mode>
If yes is set, the SIP transaction/dialog matching will occur strictly as per RFC3261. You
must disable this feature for peers that use RFC2543 (from and to name). Default is
yes.
VoipLinger=<sec>
After an H.323 release complete has been sent, the TCP session will remain open for
the number of seconds entered if there is no response from TCP message sent so that
the system can resend the TCP packet.
StunServerAddress=<ip addr>
When this parameter is active, the VoIPBox looks for a (NAT) firewall in the network
and figures out how to bypass it without requiring changes. All ports for signaling, RTP
and RTCP are checked. The parameter VoipGlobalMaxChan defines the number of
ports for RTP and RTCP.
NOTE: This is not a solution for all firewall types.
StunServerPollInterval=<sec>
Interval (in seconds) for the stun request at each port (default 600).
Radius=<mode>
On (default) activates the Radius service. If you change Off to On, you must restart the
system.
VoIPBox BRI Version 18.0.002Page 79
4Configuration files
Table 4.16pabx.cfg: global settings (page 3 of 4)
System Parameters
RadiusAuthPort=<num>
Port used for Radius authentication (default 1812).
RadiusAcctPort=<num>
Port used for Radius accounting (default 1813).
NameServer=<ip addr>
IP-address configuration for the DNS server. Enter your network or ISP’s DNS server.
If you don’t know it, you can also enter another DNS server. If you have more than one
address, enter this parameter up to three times on different lines.
Timezone=<continent/city>
Defines the time difference between the VoIPBox’s time zone and time zone 0 (Greenwich Mean Time). Enter the continent and a large city (usually the capital) in the time
zone.
NtpServer=<ip addr>
Sets the IP address at which the VoIPBox’s SNTP server queries the standard time. The
query occurs every four hours.
NOTE: If your system is not attached to an NTP server, you can enter the following configuration
to query the time on an attached PBX via a TE port:
SubscriberXX=...TIME
MoipPort=<port>
Defines the GATE Manager access port (default 4445).
FtpdPort=<port>
Defines the FTP access port (default 21).
TelnetdPort=<port>
Defines the TELNET access port (default 23).
TftpdPort=<port>
Defines the TFTP access port (default 69).
Ftpd=<mode>
Activates (on) or deactivates (off) FTP access. Default on.
Telnetd=<mode>
Activates (on) or deactivates (off) TELNET access. Default on.
Tftpd=<mode>
Activates (on) or deactivates (off) TFTP access. Default off.
VoIPBox BRI Version 18.0.002Page 80
4Configuration files
!
Table 4.16pabx.cfg: global settings (page 4 of 4)
System Parameters
RemotePassword=<password>
Defines the password for FTP and GATE Manager access. Please refer to
Chapter 3.11.4 → for instructions on how to enter an encrypted password in the
pabx.cfg. If you do not define a password, access to the system via GATE Manager occurs without a password, and FTP access occurs with the default password tcs-ag.
DialTone=<country>
If the system is used in a corporate settings and attached through a PBX to the PSTN,
it may be necessary to generate the carrier’s dial tone. It depends on whether the system sends the dialed digits to the PSTN or whether it waits for a routing entry to take
the call.
The following values can be entered: GE, DE, IR, UK, US, FR, IT
Example 4.26pabx.cfg: IP Configuration System Parameters
There is no internal time generation for the system when
the power is interrupted. That means the default time is
used when the system is restarted or rebooted!
Therefore it is important to set the system time with an
NTP server.
If the system is connected via ISDN, a clock may come
from the network connected to the corresponding port.
Enter TIME in the pabx.cfg’s Subscriber line for the TE port
to take the time from the port.
VoIPBox BRI Version 18.0.002Page 81
4Configuration files
!
4.2.2 SMTP-Client Configuration
The following entries in the pabx.cfg’s [Mail] section are used
to send e-mail messages from the VoIPBox. The connection to
the SMTP server can be used to send CDR files or alarm messages.
You must restart the system after making changes to activate the settings.
The following features are possible:
| Sending CDRs via e-mail
| Sending alarm messages via e-mail
Table 4.17pabx.cfg Mail Parameters
Mail Parameters
MailAllowedPeers=<ip addr>
Defines IP addresses from which incoming SMTP connections will be accepted. Separate IP addresses with a space. If a dash (-) is entered, the SMTP port (25) will be
blocked for incoming sessions. If this parameter is left empty (default), incoming connections will be accepted from all IP addresses.
MailAuthEncr=<type>
Enter an encryption method for e-mail authentication (default base64).
MailFrom=<URL>
Enter here the URL that will be sent in the e-mail’s FROM field in the following possible
formats:
MailFrom=domain to send OAD@domain (or user@domain, if no OAD available).
MailFrom=ipaddress to send OAD@ipaddress (or user@ipaddress, if no OAD available).
MailFrom=123@ to send 123@<IP address of gateway>.
MailFrom=123@teles.de to send 123@teles.de.
MailFrom=123@ipaddress to send 123@ipaddress.
MailMaxIncomingClients=<count>
Defines the maximum number of clients that can access the system simultaneously.
If 0 is entered, the SMTP port (25) will be blocked for incoming sessions. Default 100.
MailPortIn=<num>
Enter a TCP port for incoming e-mail (default 25).
MailPortOut=<num>
Enter a TCP port for outgoing e-mail (default 25).
VoIPBox BRI Version 18.0.002Page 82
4Configuration files
Table 4.17pabx.cfg Mail Parameters (continued)
Mail Parameters
MailPropPort=<num>
Enter the port number for a TELES proprietary mail protocol.
MailPwdIn=<password>
Enter a password for incoming e-mail authentication.
MailPwdIn=<password>
Enter a password for incoming e-mail authentication.
MailPwdOut=<password>
Enter a password for outgoing e-mail authentication.
MailRcpt=<domain>
In <domain>, enter the destination domain, the destination address and an @ sign. If
the destination address is already complete (with an @ sign), <domain> is not added.
MailRcptMax=<count>
Number of "RCPT TO" entries in e-mails that come from the LAN (a message is sent to
the LCR for each "RCPT TO" entry in each incoming e-mail ).
MailRcvMax=<count>
Maximum number of incoming e-mails queued for transmission via SMS.
MailSendRetries=<count>
Number of times an attempt is made to send an e-mail. Default 10.
MailTcpRcvTimeout=<sec>
Defines the number of seconds after which a session will be terminated following a
possible receiving error in the data stream. Default 0 (immediately).
MailTcpSndTimeout=<sec>
Defines the number of seconds after which a session will be terminated following a
possible transmission error in the data stream. Default 0 (immediately).
MailToHostRetries=<count>
Number of retries when SMS transmission is not successful. When the limit entered
is reached, an error message is sent to the e-mail sender (default 3).
MailUserIn=<username>
Enter a username for incoming e-mail authentication.
MailUserOut=<username>
Enter a username for outgoing e-mail authentication.
MaxMailsToHost=<count>
Maximum number of e-mail messages sent to the LCR simultaneously. Default 4.
SmtpServer=<ip addr>
In <ip addr>, enter the IP address of the destination SMTP server that is to receive the
e-mail messages.
With the appropriate configuration, you can send e-mails containing alarm messages that are written into the log file. The
sender is given as alarm and the system’s name appears in
the subject box. The text box contains the alarm message.
The following entry in the configuration file activates this function.
The Simple Network Management Protocol facilitates network management and monitoring of VoIPBox network devices and their functions. For a detailed description of SNMP
configuration, please refer to Chapter 6.4 SNMP agent →.
You must restart the system after making changes to activate the settings.
VoIPBox BRI Version 18.0.002Page 84
4Configuration files
4.2.4 Time-Controlled Configuration Settings
The [Night<num>] section is reserved for prospective timecontrolled configuration changes. In the pabx.cfg file, the
Night sections contain all of the system’s Subscriber entries.
Simply copy all Subscriber lines into the Night Section without
making any changes.
4.3 Configuration File route.cfg
The system’s routing information is saved in the route.cfg. The
file contains the following sections:
4.3.1 Entries in the Sections [System] and
[Night<num>]
The sections [System] and [Night<num>] contain the following entries.
4.3.1.1Restrict
Restrict entries are used to handle calls in a mapping based
on the controller / controller group where the calls originate.
A Restrict entry can be used, for instance, to route all calls
coming from PSTN directly to the PBX.
VoIPBox BRI Version 18.0.002Page 85
4Configuration files
The Restrict parameter adds a prefix to a DAD before the DAD
is mapped. Restrict parameters are always handled before
the MapAll parameters and always require a matching MapAll
parameter.
The left side of the equals sign in the Restrict parameter contains the controller number plus an optional trunk number or
a specific calling number (OAD). The special symbol ? may be
used as a wildcard to represent any character. The right side
contains the prefix that is to be put in front of the DAD and an
optional service indicator.
In the route.cfg, the list of Restrict parameters is searched
from bottom to top for a matching controller plus optional
trunk number / OAD. Because the search is done bottom up,
place the more specific Restrict entries below the more general ones. Once a match has been found, the DAD is prefixed
with the contents of the <pl> variable. Then the call is
mapped.
stricts the command to one service.
Without a sin, the Restrict command is
valid for all services.
Possible service indicator values are:
01Telephony
02Analog services
03X.21-services
04Telefax group 4
05Videotext (64 kbps)
07Data transfer 64 kbps
08X.25-services
09Teletext 64
10Mixed mode
15Used internally for call-
16Video telephone
D<diverting number>
R<calling number>For calls that are redirected with
For calls that have been diverted by the
network, RestrictD replaces the contents in <diverting number> by the contents in <pl>. Only in combination with
the service indicator 15.
Redirect3, the original OAD can be
changed again using RestrictR. Only in
combination with service indicator 15.
ing-party manipulation
2
59 for the
diverting
number
59 for the
calling
number
T<calling number>For calls that are redirected with
Redirect2, the original OAD can be
changed again using RestrictT. Only in
combination with service indicator 15.
All calls coming from BRI controller 9 (PSTN) are sent to BRI
controller 10 (PBX). First, the Restrict command adds the prefix “pl” to the DAD of the received call for all calls coming from
VoIPBox BRI Version 18.0.002Page 87
59 for the
calling
number
4Configuration files
PSTN. Then the call is mapped. In the mapping, everything
that is prefixed with “pl” is sent to controller 10 by removing
the prefix and adding the controller to the number.
Example 4.29route.cfg Restrict Parameters
Restrict9=pl
MapAllpl=10
4.3.1.2MapAll
Mapping entries are necessary for routing calls. The prefix or
telephone number (DAD) for which the mapping applies is
searched and the call routed according to the matching mapping entry.
Mapping entries begin with the keyword MapAll. They work as
follows: anything on the left of the equals sign is removed
from the prefix / telephone number (DAD) that has come in
and replaced with what is on the right of the equals sign.
If, for example, the incoming DAD is 12345678 with 123456
being the trunk number and 78 the extension,
MapAll123456=9123456 means that 123456 is cut off the
number and 9123456 is added to it. The called number is
912345678 with 9 being the port. MapAll123456=9 means
that 123456 is cut off and 9 added. The called number is 978
with 9 being the port.
VoIPBox BRI Version 18.0.002Page 88
4Configuration files
Mappings are searched from top to bottom. Place the more
specific entries above the more general ones.
Table 4.19route.cfg: Map Parameters
MapAll<direct>=<num> <mode>
ParameterDescriptionNo. Digits Optional
<direct> Defines the prefix or telephone number
(DAD) for which the entry applies.
<num> Defines the routing for a call in the order
given:
Destination port’s controller num-
ber
Optional VoIP profile name followed
by a colon if the call is terminated via
VoIP
Optional prefix
Part of the number on the left that is
transmitted
The special symbol ? may be used as a
wildcard to represent any character.
The special symbol . may be used as a
wildcard to represent any digit.
<mode> VOICEApplies for calls with the
service indicator voice
(default).
DATAApplies for calls with the
service indicator data.
29
59
4 or 5X
All international calls (DAD starts with 00) are sent to the VoIP
controller 40 with the profile name DF. 00 is removed from
the DAD, 40DF:00 is added to it. All national calls (DAD starts
with 0) are sent to the controller with the number 9. It is important that the mapping for international calls is placed
above the mapping for national calls. If you change the order
of both mappings, international calls would be sent to controller 9 instead of 40.
Example 4.30route.cfg Map Parameters
MapAll00=40DF:00
MapAll0=90
VoIPBox BRI Version 18.0.002Page 89
4Configuration files
4.3.1.3Redirect
This entry facilitates alternative routing when the first destination cannot be reached or is busy. A placeholder appears to
the right of the equal sign. The routing entry (MapAll) can be
defined for the redirect using the placeholder entered:
Table 4.20route.cfg: Redirect Parameters
Redirect<type><num>=<redirect> <sin> <time>
ParameterDescriptionNo. Digits Optional
<type> Enter 2 or 3 to set the following types:
2call forwarding no answer
3call forwarding when busy
<num> Defines the number for which calls will be redi-
rected. The special symbol ? may be used as a
wildcard to represent any character.
<redirect> Defines the placeholder used in the two-target
routing entry and the number to which calls to
<x> will be redirected.
<sin> The service indicator variable sin restricts the
command to a service. Without a sin, the
Redirect command is valid for all services.
Possible service indicator values are:
00All services
01Telephony
02Analog services
03X.21-services
04Telefax group 4
05Videotext (64 kbps)
07Data transfer 64 kbps
08X.25-services
09Teletex 64
10Mixed mode
15Videotext (new standard )
16Video telephone
NOTE: Fax forwarding must be set for analog
and telephony services because incoming fax
calls from the analog network may arrive with
either telephony or analog service indicators.
1
59
59
2(X)
(Only optional if
<time> is
not set. If
<time> is
set and
<sin> is
not needed please
select 00
for sin.)
<time> For type 2 redirect entries, a timer (in seconds)
can be defined after the service indicator entry.
VoIPBox BRI Version 18.0.002Page 90
255X
4Configuration files
In the following example all international calls (beginning with
00) are sent to VoIP controller 40 with the carrier profile DF. If
the carrier cannot be reached or is busy, the redirect command activates the second target mapping with the placeholder A and the call is automatically sent to controller 9.
Example 4.31Redirect 1
MapAll00=40DF:00
Redirect340DF:=A
MapAllA=9
In the following example, calls to 20 that remain unanswered
for 12 seconds and calls to 21 that remain unanswered for 20
seconds are redirected through the PSTN port.
Excluding Busy Calls or Specific Cause Values from Redirect
Defines a hexadecimal cause value according to DSS1. When
connections to the destination are rejected because of the
reason defined by the cause value, the VoIPBox sends a busy
signal to the attached PBX. Alternative routing is not carried
out.
To avoid second-choice routings when the called-party number is busy, set the following parameter in the first-choice
port’s Subscriber line in the pabx.cfg:
BUSY[<cause>]
This parameter defines a hexadecimal cause value according
to DSS1. When connections to the destination are rejected because of the reason defined by the cause value, the VoIPBox
VoIPBox BRI Version 18.0.002Page 91
4Configuration files
sends a busy signal to the attached PBX. Alternative routing is
not carried out. You can also define a range of consecutive
cause values:
BUSY[<cause>,<cause>].
An exclamation point (!) in front of a cause value means all
cause values except the one listed. For example, BUSY[!95],
means all cause values except 95 will be rejected with a busy
signal.
In the following example, all outgoing calls over controller 04
are rejected with the cause value 91 when the called party is
busy. Alternative routing is not carried out.
Subscriber04=....BUSY[91]
4.3.2 VoIP Profiles
This section includes all of the most important parameters for
communication with the VoIP peer.
Basic Parameters
Table 4.21route.cfg: VoIP Basic Parameters
VoIP Basic Parameters
[Voip=<name>]
Name of the routing profile. The name must begin with a letter. Choose a short and
meaningful name.
VoipDirection=<mode>
Defines the direction in which VoIP calls can be set up. Possible options: In, Out, IO,
None).
VoipPeerAddress=<ip addr> or <name>
The peer’s IP address or name. Default is 0 (if it is not set, please set the parameter
VoipIpMask to 0x00000000).
VoipIpMask=<ip mask>
The subnetmask is used to determine the size of the IP address range for incoming
traffic. The syntax is 0x followed by the mask in hexadecimal notation. Example of a
Class C mask entry: 0xffffff00. Default is 0xffffffff (only incoming traffic is accepted
from the defined peer address).
VoIPBox BRI Version 18.0.002Page 92
4Configuration files
Table 4.21route.cfg: VoIP Basic Parameters (continued)
VoIP Basic Parameters
VoipSignalling=<int>
Determines the profile’s signaling protocol for outgoing VoIP calls. In the case of incoming calls, autorecognition ensures that each call from the peer is accepted, regardless of the protocol:
0=H.323 (default), 1=SIP udp, 2=SIP tcp, 3=tls.
NOTE: TLS requires the following additional software: crypto.vnd and the key files key.pem and
cert.pem.
VoipCompression=<list>
The compression to be used, in order of preference. At least one matching codec with
the peer must be defined.
Voice:
g729, g729a, g729b, g729ab
These codecs have a bit rate of 8 kbit/s (compression ratio 1:8). A stands
for annex a and b for Annex b.
g72616, g72624, g72632, g72640
These ADPCM codecs have various bit rates: g72616 = 16kBit/s (compression ratio 1:4), g72624 = 24kBit/s, g72632 = 32kBit/s (compression ratio
1:2), and g72640 = 40kBit/s.
NOTE: G726 32kBit/s can also be signaled as G.721 by using the entry g721.
g728
The Codec has a bit rate of 16kBit/s (compression ratio 1:4).
g711a, g711u
These PCM codecs have a bit rate of 64kBit/s. No voice compression occurs. a stands for a-law and u for μ-law.
g723, g723L
These codecs work with 30ms data frames. g723.1 uses a bit rate of 6.3
kbit/s, and g723L uses a bit rate of 5.3 kbit/s to send RTP packets.
NOTE: This has no influence on the compression ratio of incoming RTP packets. Both sides must
be able to receive both ratios.
gsm
GSM-FR (full rate) has a bit rate of 13 kbit/s.
The following codecs are also possible: g721 (SIP only)
Fax: t38
T.38 (fax over IP) allows the transfer of fax documents in real time between
2 fax machines over IP. Following fax detection during a call, the voice codec will switch to T.38.
Data: trp
Transparent or clear mode (RFC 4040). Transparent relay of 64 kbit/s data
streams.
gnx64
ccd
Clear-channel signaling (as per RFC3108)
Define a special profile for data call origination or destination numbers. Bear in mind
that echo cancelation in this VoIP profile might be switched off (
VoipECE=no).
Voi pM axC ha n=< co unt >
Maximum number of channels that can be used with the profile. If this parameter is
not defined (default), there will be no limit.
VoIPBox BRI Version 18.0.002Page 93
4Configuration files
Table 4.21route.cfg: VoIP Basic Parameters (continued)
VoIP Basic Parameters
VoipSilenceSuppression=<mode>
Yes activates silence suppression, CNG (comfort noise generation) and VAD (voice ac-
tivity detection).
NOTE: In SIP signaling, silence suppression is negotiated as per RFC3555.
VoipTxM=<num> or <list> fix
The multiplication factor (1-12) for the frame size for transmission of RTP packets (default is 4). 10ms is the default frame size. A list can be defined if different frame sizes
are to be used for different codecs in the VoIP profile. The list must correspond with
the list in the parameter VoipCompression.
Normally the peer’s frame size will be used if it is smal ler than the one defined. If you
enter fix, the configured factor will always be used.
No (default) deactivates silence suppression.
Please refer to Chapter 7 Signaling and routing features → for
information on other possible entries.
Management Parameters
Table 4.22route.cfg: VoIP Management Parameters
VoIP Management Parameters
Voi pG k=< li st>
Name of the assigned gatekeeper profile. You can assign a profile to several gatekeepers to define backup gatekeepers for a VoIP profile. In this case, the next gatekeeper
will be used if the previous one fails.
Voi pProxy=<ip add r>
Enter the IP address of the SIP server.
VoipUser=<username>
Define the username for the remote device if au thentication is required (SIP only).
VoipPwd=<password>
Define the password for the remote device if authentication is required (SIP only).
Voi pR egi st rar =< nam e>
Enter the name of a registrar to be used for the VoIP profile.
VoipRadiusAuthenticate=<name>
Enter the name of the Radius server to activate user au thentication.
VoipRadiusAccounting=<name>
Enter the name of the Radius server to activate accounting.
Voi pR adi us IMS IN ego ti ati on =<m od e>
If yes is entered, the <system> will nego tiate the IMSI to be used in the Radius access
request. It will transmit the IMSI in the RADIUS attribute: Filter-Id (11). Default no.
VoIPBox BRI Version 18.0.002Page 94
4Configuration files
Table 4.22route.cfg: VoIP Management Parameters (continued)
VoIP Management Parameters
VoipIpLogging=<mode>
Enter
Yes to activate recording IP addresses in the CDRs (default is No). The first IP ad-
dress is the signaling address and the second is the RTP address, followed by the codec and the frame size used. The IMSI appears after the IP addresses.
Yes is entered, statistic values (e.g. fraction lost, round trip time, etc.) for the
VoIP profile are saved into the protocol.log file every ten minutes. This is helpful during problem analysis when IP issues occur (default =
Voi pH old =< mod e>
Determines the behavior of the HOLD feature if a PBX sends an Re-INVITE message
for HOLD to the VoIPBox.
transparent: HOLD is sent to PSTN
notify: HOLD is sent as notification to the telephone exchange
ignore: HOLD is not sent to the telephone exchange - the VoIPBox suppresses the
messages to PSTN
No).
VoipSelectProfilesBySignalling=<Yes/No>
When
Yes is entered, VoipSignalling=<int> is taken as the criterion for selecting a voip-
profile for an incoming voip call, i.e. the signalling for this voip call must match the
VoipSignalling parameter in this profile. Default
No.
VoIPBox BRI Version 18.0.002Page 95
4Configuration files
4.3.3 Gatekeeper Profiles
Gatekeeper profiles are used to connect the VoIPBox to several systems by using a gatekeeper if the protocol is H.323. It
is possible to configure different gatekeepers for different
destinations and to define backup gatekeepers. These gatekeeper profiles are then assigned to the VoIP profiles:
Table 4.23route.cfg: Gatekeeper Parameters
Gatekeeper Parameters
[Gatekeeper=<name>]
Name of the gatekeeper profile.
RasPort=<port>
Indicates the port the gatekeeper uses (default 1719) for registration, admission and
status.
OwnRasPort=<port>
Indicates the port the system uses (default 1719) for registration, admission and status.
RasPrefix=<list>
VoIPBox’s defined prefix(es). Use a space to separate entries.
RasId=<name>
The alias used for gatekeeper registration.
GkId=<name>
The gatekeeper’s alias.
GkPwd=<name>
Password to log onto the gatekeeper. If you do not use authentication, leave this entry
blank.
GkAdd=<ip addr>
The gatekeeper’s IP address.
GkTtl=<sec>
Gatekeeper time to live (default 0 means infinite).
GkMaxChan=<count>
Max. number of channels used for this gatekeeper. If this parameter is not defined
(default), there will be no limit.
GkUseStun=<mode>
Enter
yes (default) to use the STUN values for the GK profile.
GkTerminalAliasWithPrefix=<mode>
Some gatekeepers may require that prefixes are listed in the Terminal Alias section.
Enter
Yes to activate this function; default value is No).
No to deactivate sending the Dialed Prefix Information in the Registration Re-
quest (default
GkDynRai=<mode>
When yes is entered, the GK receives an RAI (resource availability indication) when a
status change occurs on the available mobile channels. When no is entered, the RAI is
sent with each ARQ (admission request) and DRQ (disengaged request). Default is no.
GkNoResourceAvailableIndication=<mode>
With this parameter the <system> will not send RAI indications to the Gatekeeper. Default No.
Yes).
4.3.4 Registrar Profiles
Registrar profiles are used to register the VoIPBox with a SIP
registrar. It is possible to configure different registrars for different destinations and to define backup registrars. These
registrar profiles are then assigned to the VoIP profiles:
Table 4.24route.cfg: Registrar Parameters
Registrar Parameters
[Registrar=<name>]
The name of the registrar profile.
RegId=<name or ip addr>
Host name or IP address used in the register’s request header. Bear in mind that the
DNS service must be active if you enter the host name.
RegOwnId=<name@ip addr/domain>
Typically a host name or telephone number followed by an @ sign and a domain
name or IP address. The entry used in the
RegUser@RegId.
RegSameCallID=<mode>
When Yes is set (default), the same caller ID is always used for SIP registration. Set N o
to change the caller ID for each SIP registration.
RegContact=<name or ip addr>
Used in the
Contact: field.
From: field. The default setting is
RegContactParam=<string>
Sets additional header-parameters in the contact field (e.g.the q-value: RegContactParam=q=1.0).
Enter an alternative IP address if you want the request to be sent to an address other than
the one entered in RegId.
RegExpires=<sec>
Enter the number of seconds registration is to be valid. Default 0 means infinite.
RegPing=<sec>
Interval (in seconds) for the registrar ping. The VoIPBox sends an empty UDP packet
to the registrar’s IP address. The packet is essentially an alive packet to avoid possible
firewall problems.
RegSignalling=<int>
Determines the profile’s signaling protocol for registration with the SIP registrar.
1=SIP udp (default)
2=SIP tcp
3=SIP tls
RegUseReceived=<mode>
Enter Yes when an VoIPBox appears behind a NAT and STUN cannot be used. Default
No.
RegSameCallID=<mode>
The same call ID is used for SIP registration Enter No to change the call ID for every
reregistration. (default Yes).
VoIPBox BRI Version 18.0.002Page 98
4Configuration files
4.3.5 Radius Profiles
Radius profiles are used to connect the VoIPBox to a Radius
server. You can use a Radius server for different destinations
and for access and/or accounting. These Radius profiles are
then assigned to the VoIP profiles:
Table 4.25route.cfg: Radius Parameters
Radius Parameters
[Radius=<name>]
The name of the Radius server profile assigned to one or more VoIP profiles.
Host=<name or ip addr>
Radius server’s host name or IP address. Bear in mind that the DNS service must be
active if you enter the host name.
User=<name>
Enter a username for authorization.
Password=<password>
Enter a password for authorization.
Secret=<secret>
Enter the shared secret.
OwnId=<name or ip addr>
Host name or IP address used in the NAS identifier or NAS IP address (Cisco VSA gateway ID).
ServiceType=<num>
As defined in RFC 2865, Chapter 5.6.
RequestTimeout=<sec>
Number of seconds during which the request is repeated if the Radius server does not
respond.
RequestRetries=<count>
Number of packet retries sent at one time.
StopOnly=<mode>
When Yes is entered, only Acco unting Reque st Me ssag es with the st atus type sto p are
transmitted to the Radius server.
AlwaysConnected=<mode>
Enter No (default) to set the value for the field ConnectedTime to that of the field
DisconnectedTime in accounting-stop messages when the call was not connected.
CallingStationId=<num>
This parameter is used to set the calling station ID. The default setting is the OAD, but
you can define any calling station ID. To define a partial calling station ID, enter a ? for
each digit. For example, CallingStationId=??? will consist of the first three digits of the
OAD.
Enter one of the following to define the call type:
3 = VoIP and telephony
2 = VoIP only
1 = Telephony only
FramedProtocol=<int>
Enter one of the following to define the framed protocol (see RFC 2865, Chapter 5.7):
1 = PPP
2 = SLIP
3 = AppleTalk Remote Access Protocol (ARAP)
4 = Gandalf proprietary SingleLink/MultiLink protocol
5 = Xylogics proprietary IPX/SLIP
6 = X.75 Synchronous
NasId=<string>
The string entered is used as network access server identifier attribute in access requests. If no string is entered, the attribute will not be set (default).
VoIPBox BRI Version 18.0.002Page 100
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.