Configuring The Thomson Gateway SIP Server
Configuring The Thomson Gateway SIP Server
Version: v3.0
Abstract: This application note provides technical information on how to configure the Thomson
Gateway SIP Server service.
Applicability: This application note applies to all Thomson Gateway products running a firmware that
deploys the SIP Server VoIP service.
Updates: Thomson continuously develops new solutions, but is also committed to improving its existing
products.
For more information on Thomson's latest technological innovations, documents and software
releases, visit us at [Link]
Chapter 1
1 Definitions
B2BUA
A back-to-back user agent (B2BUA) is a logical entity that receives a request and processes it as a user agent
server (UAS). In order to determine how the request should be answered, it acts as a user agent client (UAC)
and generates requests. Unlike a proxy server, it maintains dialogue state and must participate in all requests
sent on the dialogues it has established.
E-DOC-CTC-20070302-0006 v3.0
1
Chapter 2
2 SIP Server
Introduction
When your Thomson Gateway incorporates a (local) SIP Server, it encompasses the SIP Proxy functionality, a
B2BUA and a registrar.
B2BUA
According to RFC 3261 a back-to-back user agent (B2BUA) is a logical entity that receives a request and
processes it as a user agent server (UAS). In order to determine how the request should be answered, it acts
as a user agent client (UAC) and generates requests. Unlike a proxy server, it maintains dialogue state and
must participate in all requests sent on the dialogues it has established.
The standard defines it as a concatenation of a UAC and UAS and therefore doesn't provide additional
definition for this entity.
In other words, B2BUA is basically two UAs working back-to-back and thus controlling the calls going
through it. Unlike a SIP proxy, a B2BUA will take an incoming call, modify it and present it in other form to the
final destination. The B2BUA enables service providers to manage and track a call from beginning to end,
integrate and offer new value added features, and bring Class-5 type functionality to IP networks.
With the B2BUA module, the SIP server becomes an active participant in the call from beginning to end as all
signalling messages pass through and are processed by the B2BUA at all times. A B2BUA maintains call state
and actively participates in sending requests and responses for dialogues in which it is involved.
This B2BUA functionality provides major new applications including:
Centralized call management
Interworking with alternative networks
SIP-based VoIP interworking between LAN and WAN
Management and monitoring of the entire call state
Cloaking of end point location.
2 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
Registrar
Global
UA Database
B2BUA UAse_1
..
.
UAse_n
THOMSON GATEWAY
SIP SERVER
WAN
Location
Database VoIP
Internet UAse_1
..
.
UAse_n
Outbound
Proxy/Registrar1 ... n
Element Function
UAf_1 and UAf_2 The (physical) UAs representing an FXS port (two FXS ports are available).
UAsi_1 up to UAsi_m The (logical) UAs residing in the server, only known internally.
Local UA database Database containing the profiles of the local SIP accounts or internal UAs.
Registrar The registrar for the local SIP accounts or internal UAs.
Local location database Database containing the location of the local SIP accounts or internal UAs.
UAse_1 up to UAse_n The (logical) UAs residing in the server, only known externally.
Global UA database Database containing the profiles of the global SIP accounts or external UAs.
Outbound proxy/ The proxy/registrars for the global SIP accounts or external UAs.
registrar1_n
Location database Database containing the location of the global SIP accounts or external UAs.
E-DOC-CTC-20070302-0006 v3.0
3
Chapter 2
2.1 Scenario
Prerequisites
Before configuring your Thomson Gateway SIP Server to implement the described scenario, following
prerequisites must be fulfilled:
Have WAN connectivity with the outbound proxy/registrar (the VoIP Provider).
Acquire your telephone number(s) from the VoIP Provider.
Acquire the domain name or IP address and port number (typically 5060) of the outbound proxy/registrar
(also provided by the VoIP Provider).
Determine the internal phone numbers.
Description
This application note describes how to configure the Thomson Gateway Sip Server service. The configuration
is based on the following scenario:
Seven local SIP accounts or internal UAs.
Two analogue UAs, one for each FXS port, and five internal (= belonging to the local network) IP phones
with the following properties:
The local SIP accounts that are terminated in the Thomson Gateway (e.g. representing FXS,
DECT phones) are configured as a SIP UA. These UAs must also be configured in the SIP
Server part.
In this scenario seven internal user agents are created. You can create up to ten internal AORs.
4 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
Four global SIP accounts or external UAs, with the following properties:
The AOR of a global SIP account is provided by the VoIP Provider. You can set up up to four
external AORs.
The internal user agents must be set up as following for the described scenario:
Phone 1 and IP phone 1 cannot make external calls.
Phone 1 cannot be reached externally, IP phone 1 can be reached via extua1 (so phone 1 can only call
internally).
Phone 2 can call externally and be reached via extua 2.
IP phone 2 can call externally and be reached via extua 1 (so when extua 1 is called, IP phone 1 and IP
phone 2 are notified).
IP phone 3 and IP phone 4 can call externally and be reached via extua 3. This implies when extua 3 is
called, both IP phone 3 and IP phone 4, are notified.
IP phone 5 can call externally and be reached via extua 4.
This results in following mapping tables:
Internal to external user agents
FXS 2 extua 2
IP Phone 1 none
IP Phone 2 extua1
IP phone 3 extua 3
IP phone 4 extua 3
IP phone 5 extua 4
E-DOC-CTC-20070302-0006 v3.0
5
Chapter 2
extua 2 FXS 2
extua 4 IP phone 5
Hub
FXS (W)LAN
extua1 ...extua4
THOMSON GATEWAY
SIP SERVER
WAN
registrar_VoIP_Provider.com
Internet
proxy_VoIP_Provider.com
6 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
E-DOC-CTC-20070302-0006 v3.0
7
Chapter 2
The create and define the internal user agents, carry out following commands;
:sipserver intua add id 1 aor 11@[Link] username 111 password 1111 status enabled
:sipserver intua add id 2 aor 22@[Link] username 222 password 2222 status enabled
:sipserver intua add id 3 aor 33@[Link] username 333 password 3333 status enabled
:sipserver intua add id 4 aor 44@[Link] username 444 password 4444 status enabled
:sipserver intua add id 5 aor 55@[Link] username 555 password 5555 status enabled
:sipserver intua add id 6 aor 66@[Link] username 666 password 6666 status enabled
:sipserver intua add id 7 aor 77@[Link] username 777 password 7777 status enabled
8 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
To check the state of the SIP Server, carry out following command:
E-DOC-CTC-20070302-0006 v3.0
9
Chapter 2
:voice profile add SIP_URI 11 username 111 password 1111 voiceport FXS1
:voice profile add SIP_URI 22 username 222 password 2222 voiceport FXS2
Be sure to enable and configure the SIP Server first, otherwise a user agent cannot get registered.
To check the state of the SIP Server, carry out following command:
10 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
As the SIP Server is already using port 5060, this port is not available for the SIP user agents. Therefore,
another port must be configured to send voice traffic to. The default voice application port for Thomson
Gateways equipped with a SIP Server is 5065.
To change the default voice port to e.g. 5090, carry out following command:
You can also check the status via the Web pages:
1 On the Thomson Gateway home page, click Toolbox.
2 Click Telephony.
3 Click Details.
4 When the user agents are registered is displayed.
E-DOC-CTC-20070302-0006 v3.0
11
Chapter 2
To see the internal to external user agent mappings, carry out following command:
To see the external to internal user agent mappings, carry out following command:
12 E-DOC-CTC-20070302-0006 v3.0
Chapter 2
Why
Because of bandwidth issues, and thus of quality issues, you might have to limit the number of simultaneous
external sessions. By default this number is set to four.
How
To limit the number of simultaneous external sessions to three, carry out following command:
E-DOC-CTC-20070302-0006 v3.0
13
Visit us at:
[Link]
Coordinates:
Thomson Telecom
Prins Boudewijnlaan 47
B-2650 Edegem
Belgium
Copyright