Gigaset Provisioning Guide

Download as pdf or txt
Download as pdf or txt
You are on page 1of 68
At a glance
Powered by AI
The key takeaways are that provisioning is the process of configuring devices like phones for network connectivity and services. Different servers and roles are involved in this including the Gigaset server, provisioning server and provisioning tool. A variety of methods are described for providing the provisioning URL to devices.

The main roles discussed are the Gigaset server, provisioning server and provisioning tool. The Gigaset server manages the devices while the provisioning server provides the configuration files. The provisioning tool is used to manage provisioning data and templates.

Several methods are described for providing the provisioning URL to devices including using the web user interface, XML-RPC interface, SIP multicast mechanism, DHCP option, file upload via HTTP, and MAC based provisioning.

Template A4, Version 1, 03.04.

2012

Provisioning / en / A31008-M2212-R910-3-7643 / cover_front.fm / 11.10.2012

Provisioning / en / A31008-M2212-R910-3-7643 / gigas_provisIVZ.fm / 11.10.2012

Content

Content
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Roles in the provisioning process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Server in the provisioning process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Gigaset server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Provisioning server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Provisioning methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Provisioning data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Provisioning tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Provisioning methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Manual Gigaset VoIP phone set-up standard procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Methods for providing the provisioning server URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setting up redirection information using the web user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setting up redirection information using the XML-RPC interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Providing the provisioning server URL via the SIP multicast mechanism . . . . . . . . . . . . . . . . . . . . . .
DHCP option (dhcp_url) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
File upload via HTTP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MAC based provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Message flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
HTTP request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Auto-provisioning via activation code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Message flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
HTTP request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Subscription list supporting multiple accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Updating the configuration data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Auto-provisioning with plain XML content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Security aspects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Certificates in PEM format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Download TLS certificates via a link in a profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Starting the provisioning tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11
12
12
15
24
25
25
26
27
28
29
31
32
33
34
36
37
37
38
38

XML provisioning file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39


Configuration file editor (provisioning tool) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating a configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
XML files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
XSD schema files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
XML template example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Special parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39
39
40
42
43
43
43
46

Template A4, Version 1, 03.04.2012

Setting up an own provisioning server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48


Provisioning package editor (provisioing tool) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating a provisioning package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installing the auto-provisioning application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Preparing the file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Required libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installing the gigaset_profile_gen application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setting the access rights for the auto-provisioning files and script . . . . . . . . . . . . . . . . . . . . . . . . . . .
Auto-provisioning example script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48
49
49
52
52
52
52
53
54

Provisioning / en / A31008-M2212-R910-3-7643 / gigas_provisIVZ.fm / 11.10.2012

Content
Testing the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
The gigaset_profile_gen application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
File system structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Template A4, Version 1, 03.04.2012

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction

Introduction
Gigaset VoIP phones are delivered to the end-user requiring minimal user interaction for set-up and
keeping up-to-date. The end-user experiences the same plug & play behaviour as for analogue
phones. Unlike classic phones using a PSTN connection, VoIP phones require a variety of configuration parameters which have to be loaded automatically when the device is connected to the Internet.

Provisioning
Provisioning is the process for uploading the necessary configuration and account data to the phone.
This is done by means of profiles. A profile is a configuration file that contains Gigaset VoIP phonespecific settings, VoIP provider data as well as user-specific content. It has to be available on an HTTP
provisioning server which is accessible for the phone in the public (Internet) or local network.
A profile is loaded to the phone via its Ethernet interface.

Auto-provisioning
Auto-provisioning is defined as the mode of operation by which the Gigaset VoIP phone connects
automatically to a server and downloads both provider-specific parameters (such as the URL of the
SIP server) and user-specific parameters (such as the user name and password) and stores them in its
non-volatile memory.
Auto-provisioning is not necessarily limited to the parameters required for doing VoIP telephony.
Auto-provisioning can also be used to configure other parameters, e.g. the eMail settings, if the
Gigaset VoIP phones support these features. However, for technical reasons auto-provisioning is not
possible for all configuration parameters of the phone.

XML-provisioning

Template A4, Version 1, 03.04.2012

Gigaset offers XML-provisioning to the customer, i.e. Gigaset VoIP phones can be supplied with the
necessary configuration data via XML content. Existing XML-tooling can be used.
There are two procedures to provide Gigaset VoIP phones with configuration data:
u An XML file containing the configuration data is directly uploaded onto the phone.
u The XML file is used by a profile generation tool to generate a binary file that is supported by the
phones.
The following Gigaset VoIP phones are supported for auto-provisioning:
XML-provisioning with binary

Plain XML-provisioning

Gigaset DE900 IP PRO

Yes

8/2012

Gigaset DE700 IP PRO

Yes

8/2012

Gigaset DE410 IP PRO

Yes

8/2012

Gigaset DE310 IP PRO

Yes

8/2012

Gigaset DX800A all in one

Yes

No

Gigaset C610 IP/N300 IP

Yes

8/2012

Gigaset N510 IP PRO

Yes

8/2012

Gigaset N720 DECT IP Multicell System

Yes

Q3/Q4 2012

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction

Roles in the provisioning process


Gigaset
Update
server

Provisioner
Redirection
server

Provider

Provisioning
server

SIP server

End-user
Network /
Internet

Roles in the provisioning process

Gigaset Communications GmbH the manufacturer


u

u
u

Gigaset is the manufacturer of the VoIP phones which are the subject of this document. For
Gigaset VoIP phones the MAC address including a check sum is used for identification. Gigaset
ensures that this MAC ID is printed on all phone boxes. This is necessary for assigning a specific
phone to a specific provider in order to provide the phone with SIP account data.
Each device is preconfigured with the same parameters. By default, all Gigaset VoIP phones contact the Gigaset update server when they are connected to the Internet for the first time to get
further information, e.g. the URL of the responsible provisioning server.
Gigaset provides a web or XML-RPC interface which can be used by provisioners to deploy redirection data on the Gigaset redirection server ( page 12).
Gigaset provides a provisioning tool which can be used by provisioners to facilitate the provisioning process. It provides an editor to create device-specific valid configuration files easily as well as
an editor to create provisioning packages which can be uploaded to the phones.

The provider
u

The provider hosts the SIP servers required to offer a complete VoIP telephony service to the enduser. Occasionally, the provider simultaneously assumes the role of provisioner and can host his
own provisioning server.

The provisioner

Template A4, Version 1, 03.04.2012

u
u

The provisioner has direct contact to the end-user and actually manages the VoIP configuration
parameters for each individual end-user VoIP phone. The provisioner has to provide the content
and perhaps even to operate the server that will be accessed by the phone in order to download
the end-users configuration parameters.
When using the Gigaset redirection service the provisioner can operate an own provisioning
server. If not, the provisioner is responsible for creating redirection data on the Gigaset server. The
MAC ID printed on the devices box can be read by a barcode scanner by the provisioner who has
to deploy this information on the Gigaset redirection database using the web interface.
The provisioner is also responsible for storing the custom-built data on the provisioning server. If
a VoIP phone requests this server, an end-user specific profile is generated and sent to the device.
Last but not least, the provisioner has to keep the custom-built data up-to-date.

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction

The end-user
The end-user has to connect the VoIP phone to the Internet only. All related information will be
downloaded automatically and there is no need for the end-user to configure parameters manually.

Server in the provisioning process


The following servers are part of the provisioning process:

Gigaset server
u

Update server
The update server is responsible for providing the Gigaset VoIP phones with
provider profiles (user-independent data),
firmware updates,
language files for the Web user interface (optional),
help texts (language-specific) for the Web user interface (optional).
Gigaset VoIP phones establish a connection to the Gigaset server when connected to the Internet
for the first time and then periodically in order to check if there is an updated configuration file for
the Gigaset VoIP phone-specific settings.
By default the Gigaset server profile.gigaset.net/device is used as update server.
Redirection server
When the VoIP phone contacts the Gigaset server, in order to get all the necessary configuration
data, the redirection server supplies the URL of the provisioning server which is responsible for
providing the VoIP phone with the provider data (SIP account).
To enable auto-provisioning (i.e. the end-user does not need to select the provider manually) the
provisioner must add the redirection information for the VoIP phones to the redirection database.
The URL of the Gigaset redirection server is prov.gigaset.net.

Template A4, Version 1, 03.04.2012

Provisioning server
The provisioning server stores custom-built data for providing the VoIP phones with the VoIP specific
data (e.g. SIP account).
For many reasons it is possible to use a customised provisioning sever, e.g.:
u The phone has no possibility to reach the Gigaset server via the web (e.g. closed network without
HTTP proxy).
u The phone is used behind a VoIP PBX and the provisioning has to be independent from the LAN/
WAN infrastructure.
u The provider wants to handle profiles and firmware himself.
u The provider wants to use an auto-provisioning procedure to support the VoIP phones.
The Gigaset auto-provisioning methods are scalable over a wide area. This means for example
that it is possible to set up a system completely independent from the Gigaset server or to use the
Gigaset server for redirecting to a provider-specific provisioning server.

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction

Setting up a customised provisioning server


The following is required to set up an own provisioning server:
u HTTP server (e.g. Apache)
The provisioner has to provide a system with an operative HTTP server, where the specific Gigaset
software package can be installed. In the case of binary XML provisioning this must be a Linux system.
u Provisioning package provided by Gigaset
Gigaset provides the customer with a provisioning software package. The package includes all the
necessary files, scripts, tools and the manual for setting up a provisioning server. The provisioner
only has to create a connection between the provisioning script and its database containing the
user-specific account data. For detailed information please refer to the chapter Setting up an
own provisioning server ( page 48).
u Database (e.g. MySQL)
The use of a database is optional but it is the usual way for providing custom-built data. Furthermore, the use of a database administration tool (e.g. phpMyAdmin) is helpful to manage the database content.

Provisioning methods
For implementing auto-provisioning of the VoIP phones it must first be ensured that the device
receives the address (URL) of the server responsible for provisioning ( page 6). As the provisioning
server location cannot be anticipated in the case of a private PBX it may be located within the
phones local network, in the case of a hosted PBX it may be located somewhere in the Internet the
phones use a Gigaset server (profile.gigaset.net/device) by default which must be changed according
to the provisioners requirements.

Template A4, Version 1, 03.04.2012

The following methods are provided for the provisioning server URL update, depending on the prevailing network infrastructure (see figure Provisioning process page 8):
u Gigaset redirection service ( page 12)
The provisioner can use either the Gigaset provider/provisioner portal to enter the provisioning
server URL for the phones to be managed or use the XML-RPC interface.
u SIP multicast mechanism ( page 24)
The phone requests the provisioning server address from a local network instance via SIP multicast. This method is predominantly used by local PBX systems.
u DHCP option 114 ( page 25)
The phone requests the provisioning server address via a DHCP request with option 114
(dhcp_url). This method is predominantly used by stand-alone provisioning servers within the
same LAN.
u Manually using the devices Web UI
The following methods are provided for auto-provisioning:
u MAC-based auto-provisioning ( page 26)
The VoIP phone requests the provisioning data from the provisioning server based on its MAC
address. No user input is necessary. This method is used for VoIP phones connected to (hosted)
PBX systems.
u Auto-provisioning based on an activation code ( page 29)
The VoIP phone requests the provisioning data from the provisioning server based on an activation code manually entered by the user. This method is used for devices distributed via retail sales.

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction
Profile download can only be started from the VoIP phone, i.e. that the phone must be triggered to
perform an update when new configuration data is provided. This can be carried out as follows:
u VoIP phone restart
u Manually by the user via the devices Web UI
u Regular version checks initiated daily by the phone
u SIP check-sync mechanism ( page 34)
Connect redirection server
SIP multicast
DHCP option 114

Enter
redirection
data

3
2
1

Redirection
server
4
Supply provisioning URL

))
MAC address or activation code
Provisioning
server

))

5
DECT

SIP account and configuration data

Provisioning process

Template A4, Version 1, 03.04.2012

1 The phone sends a DHCP request including the DHCP option 114. If an URL is known by the DHCP

server, it will be returned within the DHCP response.


Otherwise:
2 The phone sends a SIP multicast to the local network with a SUBSCRIBE request. If a SIP server supporting SIP multicast is available and the device can be identified, the URL of the provisioning
server is supplied.
Otherwise:
3 The phone connects to the Gigaset server profile.gigaset.net/device. If redirection information is
available for the device (identified by the MAC ID) the URL of the provisioning server is supplied.
4 The URL of the provisioning server is supplied.
5 The phone connects to the provisioning server and requests the SIP account and configuration
data.
6 The provisioning server provides the phone with the required data.

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction
The following methods are supported by the specific devices:
MAC-based autoprovisioning

Auto-provisioning
with activation code

SIP multicast
and check-sync

DHCP option
114

Gigaset DE900 IP PRO

Yes

Yes

Yes

Gigaset DE700 IP PRO

Yes

Yes

Yes

Gigaset DE410 IP PRO

Yes

Yes

Yes

Gigaset DE310 IP PRO

Yes

Yes

Yes

Gigaset DX800A all in one

Yes

Yes

Planned 2012

Yes

Gigaset C610 IP/N300 IP

Yes

Yes

Yes

Yes

Gigaset N510 IP PRO

Yes

Yes

Yes

Yes

Gigaset N720 DECT IP


Multicell System

Yes

Yes

Yes

Yes

Provisioning data
The following are provisioning data:

Parameters
Gigaset VoIP phones have many configuration parameters but only a small subset is required for provisioning.
u General device data
This data is supplied statically via a template and comprises
general settings for the SIP account, e.g. proxy, registration and STUN server address, port
numbers, etc.
NTP settings, e.g. a time server address
settings for Info services
u User-specific data
It can be extracted from the provisioning database ( page 48) and comprises, for example
SIP username and password
LAN settings
voice mail settings, e.g mail account data
settings for network directories, e.g. online phone books

WebUI texts (optional)


For Gigaset DECT IP phones (e.g. Gigaset N510 IP PRO) only the English language is implemented by
default in the firmware. All other languages have to be downloaded from the provisioning server
when selected by the user.
Template A4, Version 1, 03.04.2012

Firmware update files (optional)


The provisioner can decide to also host the firmware files on the provisioning server. Gigaset delivers
a package with all the current firmware files for the VoIP phones.

Provisioning / en / A31008-M2212-R910-3-7643 / intro.fm / 11.10.2012

Introduction

Provisioning tool

Template A4, Version 1, 03.04.2012

The provisioning tool is a web interface designed to assist the provisioner when creating a configuration file or a provisioning package for Gigaset IP phones.
The provisioning tool provides the following components:
u A configuration editor to create a valid XML file ( page 39).
u A provisioning package editor to create packages that can be uploaded to the phones
( page 48).
u A link to the Gigaset web interface for entering redirection information ( page 12) is planned for
a future release.

10

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Provisioning methods
When the phone is connected to the network for the first time, it needs to connect to a server in the
local or public network in order to download the necessary data to be able to make VoIP calls. By
default, this is a Gigaset server but it could also be a customer provisioning server, e.g. on a PBX.
Below, the standard manual procedure is described in short.
The following methods are available for automatic provisioning (see also introduction on page 7):
u For providing the provisioning server URL
Gigaset redirection service ( page 12)
SIP multicast mechanism ( page 24)
DHCP option 114 ( page 25)
u For auto-provisioning
Mac-based auto-provisioning ( page 26)
Auto-provisioning based on an activation code ( page 29)
u For profile update
SIP check-sync mechanism ( page 34)

Manual Gigaset VoIP phone set-up standard procedure


A Gigaset VoIP phone can be set up manually via the phones user interface in the case of a DECT
VoIP phone via the handset. The use of a PC is not required but possible using a Web user interface
which is available for all Gigaset VoIP phones.
The default manual registration procedure for a Gigaset VoIP phone is as follows:

))

))

Template A4, Version 1, 03.04.2012

Standard manual registration procedure

u
u
u

The end-user connects the phone to the network 1. Internet access is required.
The connection assistant is started 2.
If available the activation code supplied by the provider is entered 3 ( page 29).

11

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods
u

u
u

If the phone establishes a connection to the Gigaset server to download a provider profile, this
download is carried out in two steps:
All countries for which a provider profile is available are listed for the user to select the location
4.
All providers of the selected country for which a profile is available are displayed for the user
to select the provider 5.
The profile is loaded from the Gigaset server onto the VoIP phone. In this case Gigaset acts as a
provisioner for general (user-independent) SIP settings.
The user enters the authentication name 6 and the password 7 according to the rules given by
the provider profile.

Methods for providing the provisioning server URL


The following methods are available to provide the VoIP phones with redirection information:
u Web user interface for registering/deregistering and list devices
u XML-RPC interface ( page 15)
u SIP multicast ( page 24)
u DHCP option 114 ( page 25)

Setting up redirection information using the web user interface


To add the redirection data to the redirection database, Gigaset provides a web user interface for provisioners.
You need a user account (user name and password) which has to be provided by Gigaset Communications GmbH.

There is also an XML-RPC interface available to provide redirection data. The XML-RPC
calls are described in detail page 15.

Open the web user interface:


http://prov.gigaset.net

Template A4, Version 1, 03.04.2012

Login using the user name and password provided by Gigaset.


If the login is successful, the main menu is opened.
The following functions are available:
u Registration, control and deregistration of single devices
u Display of devices list
u Upload of prepared XML files

Registering VoIP phones

12

To register a Gigaset VoIP phone, enter the MAC ID of the device,


the URL of the provisioning server and the Provider for the
device configuration.

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

URL and Provider can be entered manually or selected from a list of known provisioner URLs and providers.
Click on the Register button to save the entry.
The corresponding parameters are checked and if approved saved in the Gigaset redirection database. The provisioner is informed accordingly.

Searching for and deregistering VoIP phones


The Deregister tab can be used to query single redirection data records using the MAC ID or MAC
address.
To search for a specific redirection data set, open the Deregister tab, enter the MAC ID or MAC
address of the device and click on the Search button.

Template A4, Version 1, 03.04.2012

If the MAC ID or MAC address matches, the redirection data for a specific device appears.
To deregister the redirection data record for the device click on the Deregister button.
You need to confirm this action. It is therefore not possible to delete entries accidentally.

If the Provisioning URL is not changed, e.g. by resetting it to the default value, the device
can no longer be updated.

13

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

List devices
The List Devices tab can be used to search for redirection data sets of all devices or all devices of a
specific provider.
Open the List Devices tab
Click on the List button to list the redirection data sets of all devices.
or
Enter the name of a provider or select it from the list and click on the Search button.

The list shows all devices that have ever been uploaded by the provisioner (possibly dependent on
the provider name).

Uploading an XML File

Template A4, Version 1, 03.04.2012

It is also possible to upload an XML file containing many redirection data bundles. This option is most
useful for provisioners whose end-user profiles are generated automatically by any script and who
want to keep using the web user interface instead of direct interfaces for clients. However, more than
just uploading redirection data can be carried out. Depending on the structure of the XML file, any
function provided by the interfaces may be possible. For detailed information on the XML parameter
values please refer to the section Setting up redirection information using the XML-RPC interface
( page 15).
Open the Upload tab, browse your file system for the appropriate XML file and click on the Upload
button.

14

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Setting up redirection information using the XML-RPC interface


The most comfortable Gigaset server interface is the XML-RPC interface. XML-RPC is subject to a procedure call protocol, which means that functions can be accessed at different places. XML-RPC
requests are encoded in XML syntax and dispatched via HTTP.
The Gigaset XML-RPC web interface is based on Apache XML-RPC libraries and can be accessed by
any XML-RPC client. The client can call different remote procedure methods. The parameter values
and the function names are converted into XML syntax simultaneously and transferred to the XMLRPC server via HTTP. The XML file is parsed through the Apache XML-RPC libraries and again, the suitable remote method with its corresponding parameter values is called. The response of this remote
method is again converted into XML syntax, sent back to the client and processed by the XML-RPC
client libraries.
The XML-RPC service can be accessed using the following address:
http://prov.gigaset.net/apxml/rpc.do

An XML-RPC call for an XML-RPC client could be as follows:


Object[] params = new Object[]{"#MAC-ID#","#PROVISIONING_URL#",
"#PROVIDERNAME#"};
List<Object> list1 = Arrays.asList((Object[])client.execute
("autoprov.registerDevice", params));

On the Gigaset XML-RPC web interface the implementation appears as follows:


public List<Object> registerDevice(String macID, String url, String name) {
. . .
use parameter values and create response list
. . .
return myList;
}

Template A4, Version 1, 03.04.2012

The XML files are invisible on both sides, when effecting the remote procedure call on the client as
well as on the server because the XML files are parsed via the XML-RPC libraries. Nevertheless, the
plain text (method + parameter) has to be transferred via HTTP in a well- structured manner which
makes XML a perfect alternative.

15

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

XML syntax
Whenever an XML-RPC client requests a remote method on the Gigaset XML-RPC server, an XML file
is created consisting of the methods name and the parameters. Both the file and the response are
transferred via HTTP. The upload of XML files via FileUpload has to look exactly like this as well.
The uploaded XML file, depending on the method for registering a redirection data set, can for example appear as follows:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>autoprov.registerDevice</methodName>
<params>
<param>
<value>FFFFFFFFFFFF-1234</value>
</param>
<param>
<value>http://my.provisioning.server.com/gigaset/ap.php</value>
</param>
<param>
<value>MyProvider</value>
</param>
</params>
</methodCall>

After a successful request, the corresponding XML response file looks as follows :

Template A4, Version 1, 03.04.2012

<?xml version="1.0" encoding="UTF-8"?>


<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>0</boolean></value>
<value>mac_already_in_use:FFFFFFFFFFFF</value>
</data></array></value>
</param>
</params>
</methodResponse>

16

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

XML-RPC Commands
If an XML-RPC client calls a remote procedure function on the Gigaset XML-RPC server, an XML file
consisting of the XML-RPC method and the corresponding parameter values is created and is transferred via HTTP. The response is transferred the same way.
The respective XML-RPC methods as well as the relevant parameter values, return values and XML formats are illustrated below:

autoprov.registerDevice
Registering a device at the provisioning server:
Call:

autoprov.registerDevice(String macID, String url, String name)


macID
MAC ID of the device
url
URL of the provisioning server
name
Provider name

Return:

Return value (1)


Return value (2)

(Boolean) 1 | 0
1 = true, 0 = false
(String)
if true: OK:password
if false: mac_already_in_use:
mac_invalid:
url_invalid:
name_invalid:

Request:

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.registerDevice</methodName>
<params>
<param>
<value>FFFFFFFFFFFF-1234</value>
</param>
<param>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
</param>
<param>
<value>MyProvider</value>
</param>
</params>
</methodCall>

Template A4, Version 1, 03.04.2012

Response: <?xml version="1.0" encoding="UTF-8"?>


<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>0</boolean></value>
<value>mac_already_in_use:FFFFFFFFFFFF</value>
</data></array></value>
</param>
</params>
</methodResponse>

17

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

autoprov.deregisterDevice
Deregistering a device from the provisioning server.
Call:

autoprov.deregisterDevice(String mac)
mac
MAC ID or MAC address of the device

Return:

Return value (1)


Return value (2)

(Boolean) 1 | 0
1 = true, 0 = false
(String)
if true: OK
if false: mac_not_found:
mac_invalid:

Request:

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.deregisterDevice</methodName>
<params>
<param>
<value>FFFFFFFFFFFF</value>
</param>
</params>
</methodCall>

Response: <?xml version="1.0" encoding="UTF-8"?>

Template A4, Version 1, 03.04.2012

<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>1</boolean></value>
<value>OK</value>
</data></array></value>
</param>
</params>
</methodResponse>

18

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

autoprov.listDevices - list devices for all providers


Supply MAC address, provider name, provisioning server URL and registration date for all registered
devices:
Call:

autoprov.listDevices()

Return:

Return value (0-n)


(Object[])
[MAC,NAME,URL,DATE]
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>autoprov.listDevices</methodName>
<params />
</methodCall>

Response:

<?xml version="1.0" encoding="UTF-8"?>


<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><array><data>
<value>BBBBBBBBBBBB</value>
<value>MyProvider1</value>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
<value>2009-11-29</value>
</data></array></value>
<value><array><data>
<value>EEEEEEEEEEEE</value>
<value>MyProvider2</value>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
<value>2009-11-27</value>
</data></array></value>
</data></array></value>
</param>
</params>
</methodResponse>

Template A4, Version 1, 03.04.2012

Request:

19

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

autoprov.listDevices - list devices of a specific provider


Supply MAC address, provider name, provisioning server URL and registration date for all registered
devices of a given provider:
Call:

autoprov.listDevices(String name)
name
Provider name

Return:

Return value (0-n)


(Object[])
[MAC,NAME,URL,DATE]

Request:

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.listDevices</methodName>
<params />
</methodCall>

Response: <?xml version="1.0" encoding="UTF-8"?>

Template A4, Version 1, 03.04.2012

<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><array><data>
<value>BBBBBBBBBBBB</value>
<value>MyProvider1</value>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
<value>2009-11-29</value>
</data></array></value>
</data></array></value>
</param>
</params>
</methodResponse>

20

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

autoprov.checkDevice
Supply provider name, provisioning server URL and registration date for a specific device:
Call:

autoprov.checkDevice(String mac)
mac
MAC ID or MAC address of the device

Return:

Return value (1)


Return value (2)

Return value (3)


Return value (4)
Return value (5)
Request:

(Boolean) 1 | 0
1 = true, 0 = false
[MAC]
(String)
if true:
if false: max_not_found:
(String)
(String)
(String)

if true:
if true:
if true:

mac_invalid:
[NAME]
[URL]
[DATE]

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.checkDevice</methodName>
<params>
<param>
<value>BBBBBBBBBBBB</value>
</param>
</params>
</methodCall>

Response: <?xml version="1.0" encoding="UTF-8"?>

Template A4, Version 1, 03.04.2012

<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>1</boolean></value>
<value>BBBBBBBBBBBB</value>
<value>MyProvider1</value>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
<value>2009-11-29</value>
</data></array></value>
</param>
</params>
</methodResponse>

21

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

autoprov.registerDeviceList
Supply provider name, provisioning server URL and registration date for a list of registered devices:
Call:

autoprov.registerDeviceList(List<String> macList,
String url, String name)
macList
List of MAC IDs
url
URL of the provisioning server
name
Provider name

Return:

Return value (1) (Boolean) 1 | 0


1 = true, 0 = false
Return value (2-n) (String)
if true: OK: Passwort
mac_already_in_use:
mac_not_exist:
if false: mac_invalid:
url_invalid:
name_invalid:

Request:

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.registerDeviceList</methodName>
<params>
<param>
<value><array><data>
<value>111111111111-ABCD</value>
<value>222222222222-BCDE</value>
<value>333333333333-CDEF</value>
<value>444444444444-DEFA</value>
</data></array></value>
</param>
<param>
<value>https://my.provisioning.server.com/gigaset/ap.php</value>
</param>
<param>
<value>MyProvider</value>
</param>
</params>
</methodCall>

Response: <?xml version="1.0" encoding="UTF-8"?>

Template A4, Version 1, 03.04.2012

<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>1</boolean></value>
<value>OK</value>
</data></array></value>
</param>
</params>
</methodResponse>

22

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

<?xml version="1.0" encoding="UTF-8"?>


Another
Response: <methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value>mac_already_in_use:111111111111</value>
<value>mac_already_in_use:333333333333</value>
</data></array></value>
</param>
</params>
</methodResponse>

autoprov.deregisterDeviceList
Deregister a list of registered devices:
Call:

autoprov.deregisterDeviceList(List<String> macList)
macList
List of MAC IDs or MAC addresses

Return:

Return value (1) (Boolean) 1 | 0


1 = true, 0 = false
Return value (2-n) (String)
if true: OK
mac_not_found:
if false: mac_invalid:

Request:

<?xml version="1.0" encoding="UTF-8"?>


<methodCall>
<methodName>autoprov.deregisterDeviceList</methodName>
<params>
<param>
<value><array><data>
<value>111111111111</value>
<value>222222222222</value>
<value>333333333333</value>
<value>444444444444</value>
</data></array></value>
</param>
</params>
</methodCall>

Template A4, Version 1, 03.04.2012

Response: <?xml version="1.0" encoding="UTF-8"?>


<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value><boolean>1</boolean></value>
<value>OK</value>
</data></array></value>
</param>
</params>
</methodResponse>

23

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

<?xml version="1.0" encoding="UTF-8"?>


Another
Response: <methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value><array><data>
<value>mac_not_found:111111111111</value>
<value>mac_not_found:333333333333</value>
</data></array></value>
</param>
</params>
</methodResponse>

Providing the provisioning server URL via the SIP multicast mechanism
This mechanism is an easy method for loading the URL of the provisioning server, on which the configuration files (profiles) and/or the firmware files of the different Gigaset VoIP phones are located.
The mechanism is designed for VoIP PBXs offering an own provisioning server for the connected VoIP
phones.
Before an answer is sent to the initiator of the SIP multicast, the PBX (or SoftSwitch) has to identify the
phone type. This is done via the SIP User-Agent header which starts with the product name.
The following example flow chart shows the principle of this mechanism:
Gigaset VoIP phone

SIP Multicast to IP: 224.0.1.75

Router/Network Switch

PBX
(Provisioning Server)

Request e.g.: SUBSCRIBE sip:MAC%3A7C2F800DB4DF@local

(user agent header e.g.: C610 IP/42.021.00.000.000 )

SIP NOTIFY e.g.:192.168.178.53:5060"http://profile.gigaset.net/device/provisioning"

Template A4, Version 1, 03.04.2012

The SIP multicast mechanism is supported by most of the Gigaset VoIP phones and by the Gigaset
T300 PRO and Gigaset T500 PRO PBX as well (it is also supported by some products from other companies).

24

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

DHCP option (dhcp_url)


As an alternative option for assigning the provisioning server URL to the VoIP phones, the DHCP
option 114 (dhcp_url) can be used.
The following example flow chart shows the principle of this mechanism:
Gigaset VoIP phone

Router/Network Switch

PBX
(Provisioning Server)

DHCP request containing the list with supported options (...,114)

DHCP ACK,. Option:(114) URL =http://provisioningserver/gigaset

..start provisioning procedure:

GET http://provisioningserver/gigaset/42/2/master.bin

File upload via HTTP server


There is also another interface which allows the upload of XML files without using the web user interface.
u Commons FileUpload is used (http://commons.apache.org) at the server end.
u An HTTP client is necessary at the client end.
Principally, this process is similar to the remote procedure calls described in section Setting up redirection information using the XML-RPC interface ( page 15). The difference between the versions is that on the one hand XML-RPC clients request remote methods and transfer parameters in
order to create an XML file, while on the other hand HTTP clients upload an XML file directly. The latter
method like the XML file upload via the web user interface is suitable for users whose XML files
are created through scripts but who do not want to use the web user interface. Please refer to paragraph XML syntax ( page 16) for further details regarding the structure of XML files.
File upload
The HTTP XML file upload can be accessed using the following address:
https://prov.gigaset.net/apxml/basic.do

Content type for XML FileUpload


The default content type used in most cases is

Template A4, Version 1, 03.04.2012

application/x-www-form-urlencoded

But if a provisioner wants to upload an XML file either via the web user interface or via an HTTP client
it would be very inefficient to use the default content type.
For this reason, XML files are uploaded with the content type
multipart/form-data

which is suitable for sending large data. Commons FileUpload corresponds exactly to this format.

25

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

MAC based provisioning


User-specific profiles are loaded without any user interaction. The database containing the user-specific data can be hosted on a provider/PBX related server. When the phone contacts the provisioning
server, it identifies itself by means of its own MAC address. Each phone has a globally unique MAC
address that was assigned to it in the factory.
This method has the advantage that, ideally, the end-user does not even have to be aware of the need
for provisioning: he simply plugs in the phone, and the rest happens automatically in the background.
For this to be successful, the provisioner has to create the association between the MAC address and
the end-user prior to delivering the phone to the end-user. This is done efficiently if the MAC ID (containing MAC address and a 4-digit part of a unique password) is printed on the phones box as barcode, so that the provisioner can scan the address, assign this with the provisioner's URL on the
Gigaset server (optional) and enter it in its database.
Because the phone periodically queries for configuration updates (every 24h), this method gives the
provisioner the means to effectively control the end-users phone configuration.

Gigaset

Provisioner

MAC address

User Name

Password

2
Custom-built
data

Provisioning
Server

Gigaset Server

3
Redirection
Server

Update
Server

7
9

End-user

5
Internet

6
MAC address

Auto-provisioning via MAC address

Principle of operation MAC-based provisioning with redirection

Template A4, Version 1, 03.04.2012

1 Gigaset prints the MAC address barcode on the housing and the box.
2 The provisioner scans the MAC address and associates it with the user data, e.g. the SIP account.

The MAC ID consists of the MAC address plus a random ID (4 characters) that is added to the MAC
address and has the following syntax:
<MAC-address>-<ID>, e.g. 001122334455-ABCD
3 The provisioner enters the redirection data on the Gigaset server. The devices MAC ID and the URL
of the provisioning server have to be provided.
Gigaset therefore provides a web interface as well as an XML-RPC interface. Redirection data
describes a connection between the MAC address, the provisioning servers URL and the providers name. This configuration bundle is created by the provisioner and has to be stored on the
Gigaset redirection database.
4 The end-user connects the phone to the network and the phone contacts the Gigaset server.

26

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods
5 The Gigaset server checks the MAC ID. If the MAC ID is available in the Gigaset provisioning data-

base of the redirection server it transfers the provisioning server address for this device to the
phone.
6 The phone connects to the provisioning server providing its MAC address.
7 The provisioning server uploads the custom-built data to the phone. The provisioner is responsible for creating the custom-built data to store this information on the provisioning server and to
keep it up-to-date.
8 The phone is now ready to initiate the first call.
9 Periodically, the phone connects to the provisioning server in order to check if there is new custom-built data available (once a day).

Message flow
The following diagram shows in a simplified manner the message flow between a Gigaset VoIP
phone and the involved servers from the auto-provisioning point of view.

Gigaset Update
Server

Gigaset Redirect.
Server

Provisioning
Server

http get profile.gigaset.net/device/42/2/master.bin

Upload content
Exchange of server index files
http get profile.gigaset.net/device/42/2/../../sifs/siu_123.bin

Binary containing a link to the gigset.net server:


https://213.203.227.194/macredirect/ap?mac=%MACC

https get https://213.203.227.194/macredirect/ap?mac=01:23:45:67:89:01

error 401 Authorisation required


https get https://213.203.227.194/macredirect/ap?mac=01:23:45:67:89:01
,Authorisation: Digest, username=012345678901, algorithm=MD5,
nonce based on device specific password

Template A4, Version 1, 03.04.2012

307, temporary redirect to http get https://provider_xyz.com/gigaset/cgi/ap?mac=01:23:45:67:89:01


https get provider_xyz.com/gigaset/cgi/ap?mac=01:23:45:67:89:01

error 401 Authorisation required


https get provider_xyz.com/gigaset/cgi/ap?mac=01:23:45:67:89:01, Authorisation: Digest,
username=012345678901, algorithm=MD5, nonce based on device specific password
AES 128 encrypted profile with account / customer settings

The message flow illustrates the steps 4 to 7 of the image on page 26.
27

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods
Communication takes place by means of HTTP requests.
Profiles are stored in a binary format on the provisioning server depending on the device variant. The
Gigaset server uses the phones variant ID to upload the matching configuration. For example, http://
profile.gigaset.net/device/42/2/master.bin refers to the configuration files of a Gigaset N510 IP PRO phone
( page 62).
The Gigaset redirection server uses the phones MAC ID to search for the responsible provisioning
server for this phone.

HTTP request
When the phone contacts the provisioning server in order to download the auto-provisioning file, it
performs an HTTP::GET for a URL with the following format:
http://<server domain>/<directory>/<ap>?mac=<mac address>
<server domain>
<directory>

<ap>
<mac address>

DNS name (or IP address) of the provisioning server.


Path to the auto-provisioning script within the server domain.
The script is a CGI application, i.e. it runs inside the HTTP server ( page 54).
It constructs a personalised XML configuration file for the requesting phone,
then calls an application which creates the binary configuration file
(gigaset_profile_gen, page 61), and finally returns the configuration data to
the phone.
Name of the auto-provisioning script: ap (auto-provision).
MAC address of the VoIP phone generating the request, in the 6 hex digit-pair
textual representation, with or without a colon between each digit pair; for
example: 06:55:AF:3A:05:AA or 0655AF3A05AA

Example of a request:
http://my.server.domain.com/gigaset/cgi/ap?mac=06:55:AF:3A:05:AA

URI format

Template A4, Version 1, 03.04.2012

The URL where the ap script is performed is determined by an additional query to get a so- called URI
format string. The server for this query is the same server which is used for firmware updates (normally not necessarily, but recommended the Gigaset server). The query is done with a 3-digit provisioner code. This code is preprogrammed in the factory and is used by the phone to get the file with
the format string. This format string is also used by the phone to build the command to get the profile
from the provisioners server. The format string contains fixed text (used for the query as it is) and format specifier (with a leading %) which will be replaced by the phone. The relevant configuration possibilities of the URI-format string are the following:
Format specifiers:
%DVID
Device ID, composed by build variant and provisioning ID. Example: 42/2
%MACC
MAC with colons. Example: .00:01:E3:12:34:56.
%MACD
MAC without colons. Example: .0001E3123456.
%%
To represent the percent character.
Example:
The URI-format string:
http://my.server.domain.com /%DVID/cgi/ap?mac=%MACC

Leads to a request with the command:


GET http://my.server.domain.com/42/2/cgi/ap?mac=00:01:E3:12:34:56

28

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Auto-provisioning via activation code


With this method the end-user has to enter a unique code the activation code on the phone when
setting it up.
For the provisioner, this method is similar to the MAC address one, but it has the advantage that the
phones does not need to be handled before sending it to end-user. It just has to be ensured that a
unique activation code is created by which the end-user can be identified unambiguously. For the
Gigaset VoIP phones the activation code can be a numeric string with a maximum of 32 characters.
Depending on the configuration, the phone downloads the configuration parameters only once
("one-shot provisioning". The end-user thus has the freedom to modify all configuration parameters
and/or load other profiles. Alternatively, the phone downloads the profile periodically using the activation code entered initially and stores the parameter when the profile is changed.

The activation code


The activation code is realised as a key. It consists of two parts that are concatenated as follows:
Activation Code = <Gigaset part><Provisioner part>
Gigaset part
= Identifies the provisioner for the related phone.
3 decimal numbers.
Provisioner part = <user id>[#<password>]
Max. 29 decimal numbers.
user id
Identifies the end-user unambiguously.
#password
Optional password, which is preceded by the # character
as separator. The parameter is used for the HTTP digest
authentication algorithm.

Template A4, Version 1, 03.04.2012

Examples of activation codes:


12387426549864#0815
provider = 123, user id = 87426549864, password = 0815.
0159039885893
provider = 015, user id = 9039885893, no password
The end-user receives the complete activation code directly from the provisioner, by eMail or during
registration at the provisioners web site, for example.
When generating a new activation code, the provisioner must always prepend the Gigaset part
(which is defined by Gigaset Communications when a new provisioner requests this feature). Apart
from respecting the basic syntax described above, the provisioner is free to design the provisioner
part of the code as desired.

29

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Provisioner

Codes
87426549864
65487654677
93426534641

merge

#
1
2
3

User Name
7623841
4504312
6586444

Authent. name
7623841
4504312
6586444

Password
fdgrqg
sgigzw
hgkzui

5 Configuration file (encrypted)


26549864 7623841 fdgrqg

Provisioner or
Gigaset
Server

Provisioning
Server

2
4
End-user 1
Internet

Gigaset
Auto-provisioning via activation code

Principle of operation

Template A4, Version 1, 03.04.2012

1 The end-user buys a phone, installs it and enters the activation code either via the handset proce-

dure (installation assistant) or via the web user interface.


2 The phone extracts the Gigaset part of the activation code and uses it to request the URL of the
provisioning server, normally at the central (Gigaset) server, where the download profiles and
firmware files are located. The provisioning (Gigaset) server sends the provisioners URL to the
phone.
3 The phone now sends the user id part of the activation code to the provisioners URL.
4 If the provisioner requests authentication of the user, the request is denied with 401 (Unauthorised). In this case the phone must re-issue the request and provide the authorisation header the
content of which must be calculated using the password part of the activation code. The password
part is of course never transmitted directly.
5 The provisioner uses the user id to feed a CGI application which searches its database for the given
users and then constructs and returns the encrypted user profile.
The received profile also contains the name of the profile which is stored in the phone. From now on,
the phone will periodically check for a changed profile by using the stored profile name ("one-shot
provisioning"). This means that the profile, (normally) located at the Gigaset server, can be the same
one used for manually downloading the profile. It therefore has to be guaranteed that the name of
the received profile is identical with the one on the (Gigaset) server. Depending on the configuration
within the downloaded profile the phone can alternatively download the profile periodically using
the activation code entered initially.

30

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Message flow
The following diagram shows in a simplified manner the message flow between a Gigaset VoIP
phone and the involved servers from the auto-provisioning point of view.
Use Case: The VoIP phone is prepared for auto-provisioning with an activation code (locked or nonlocked [One-Shot]) and the customer feeds in the activation code 12387426549864#0815 via the
handset or WEB-UI.

Gigaset
Server

Provisioning
Server

Connect to LAN

Gigaset Server and


Provisioning Server
can be the same

http get profile.gigaset.net/device/42/2/master.bin

Profile update approx. every 24 h

Upload content
Exchange of server index files
http get profile.gigaset.net/device/42/2/../../sifs/siu_123.bin

e.g. content:
"http://provider_xyz.com/gigaset/cgi/ap?ac=%ACTC"
http get provider_xyz.com/gigaset/cgi/ap?ac=87426549864

error 401 authorisation required*)


http get provider_xyz.com/gigaset/cgi/ap?ac=87426549864, Authorisation: Digest,
username: 87426549864, algorithm=MD5, nonce based on password "0815"

Profile with customer-specific settings


(AES 128 encrypted with provider-specific
encryption key)

*) Authorisation: optional but recommended

Template A4, Version 1, 03.04.2012

The message flow illustrates steps 3 to 7 of the image on page 30.


Communication takes place by means of HTTP requests.
Profiles are stored in a binary format on the provisioning server depending on the phone variant. The
Gigaset server uses the phones variant ID to upload the matching configuration. For example, http://
profile.gigaset.net/device/42/2/master.bin refers to the configuration files of a Gigaset N510 IP PRO phone
( page 62).

31

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

HTTP request
When the phone contacts the provisioning server in order to download the auto-provisioning file, it
performs an HTTP::GET for a URL with the following format:
http://<server domain>/<directory>/<ap>?ac=<activation code>

DNS name (or IP address) of the provisioning server.


Path to the auto-provisioning script within the server domain.
The script is a CGI application, i.e. it runs inside the HTTP server ( page 54).
It constructs a personalised XML configuration file for the requesting phone,
then calls an application which creates the binary configuration file
(gigaset_profile_gen, page 61), and finally returns the configuration data to
the phone.
<ap>
Name of the auto-provisioning script: ap (auto-provision).
<activation code> Activation code of the VoIP phone generating the request.

<server domain>
<directory>

Example:
http://my.server.domain.com/gigaset/cgi/ap?ac=0159039885893

URI format
The URL, where the ap script is performed, is determined by an additional query to get a so- called
URI format string. The server for this query is the same server which is used for firmware updates (normally not necessarily, but recommended the Gigaset server). The query is done with a 3-digit provisioner code. This code is preprogrammed in the factory or is part of the activation code which was
entered manually and is used by the phone to get the file with the format string. This format string
will be used again by the phone to build the command to get the profile from the provisioners server.
The format string contains fixed text (used for the query as it is) and a format specifier (with a leading
%) which will be replaced by the phone. The relevant configuration possibilities of the URI-format
string are the following:
Format specifiers:
%ACTC
Provisioner part of the activation code. Example: 87426549864
%DVID
Device ID, composed of build variant and provisioning ID. Example: 42/2
%MACC
MAC with colons. Example: .00:01:E3:12:34:56.
%MACD
MAC without colons. Example: .0001E3123456.
%%
To represent the percent character.
Example:
The URI-format string:

Template A4, Version 1, 03.04.2012

http:// my.server.domain.com/gigaset/cgi/ap?ac=%ACTC
and the activation code 12387426549864#0815 leads to a request with the command:
GET http://my.server.domain.com/gigaset/cgi/ap.cgi?ac=87426549864

32

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Subscription list supporting multiple accounts


For devices which allow multiple accounts, the optional placeholder %SUBLIST is supported for use
within an auto-provisioning URL to inform e.g. a PBX about the registered handsets.
At present, %SUBLIST is supported for the following devices:
Gigaset C610 IP/N300 IP
Gigaset N510 IP PRO
Gigaset N720 DECT IP Multicell System

When this placeholder is available, it will be replaced by a byte sequence (hexadecimal without
spaces) containing the maximum number of supported subscriptions (maxSub), followed by a
bitarray.
Maximum number of subscriptions
The maxSub value represents the number of subscriptions supported by the device.
Gigaset N720 DECT IP Multicell System = 100, Gigaset N510 IP PRO = 6.
maxSub is defined as follows:
u Short form
maxSub is represented by 1 Byte
Bit 8 is set to 0
Bit 1-7 contains the maximum number of subscriptions (bits).
This means: max. 127 subscriptions. This is sufficient for the devices currently supported
u Long form
maxSub is represented by 2 or 3 bytes (up to 127)
Bit 8 of the 1st byte is set to "1"
Bit 1-7 of the 1st byte contains the number of the following bytes (at present: 2)
The following bytes (hex, base 256) contain the number of supported subscriptions (bits).
Subscription list, bit array
The meaning of the term subscription depends on the device-specific handset.
Gigaset N720 DECT IP Multicell System Subscription corresponds to the index of one handset/
VoIP account pair.
Gigaset C610 IP/N300 IP
Subscription corresponds to the internal number of a registered handset.
Gigaset N510 IP PRO
u
u
u
u

Template A4, Version 1, 03.04.2012

u
u

The bit array contains ((maxSub div 8)+1) bytes.


Each bit within the bit array corresponds to one subscription.
A bit which is set to 1 represents a subscription which is assigned with a handset.
The MSB of the 1st byte corresponds to subscription with index 0.
The LSB of the 1st byte corresponds to subscription with index 7.
The LSB of the 2nd byte corresponds to subscription 8

(MSB = Most Significant Bit, LSB = Least Significant Bit)

33

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods
Examples:
URL=http://%DURL%DVID/cgi/ap?mac=%MACD&amp;sublist=%SUBLIST

Max. 100 subscriptions, 20 handsets are assigned to subscriptions with index 0-19:
http://192.168.1.100/70/1/cgi/ap?mac=FFFFFFFFFF&amp;
sublist=64FFFFF000000000000000000000

Max. 20 subscriptions, index 1 and the last 5 are assigned with a handset:
http://192.168.1.100/70/1/cgi/ap?mac=FFFFFFFFFF&amp;sublist=148001F0

Max. 6 subscriptions, index 1-3 are assigned with a handset:


http://192.168.1.100/70/1/cgi/ap?mac=FFFFFFFFFF&amp;sublist=06A0

Max. 100 accounts, each odd subscription is assigned with a handset:


http://192.168.1.100/70/1/cgi/ap?mac=FFFFFFFFFF&amp;
sublist=64AAAAAAAAAA18 AAAAAAAAAAAAAAA0

Updating the configuration data


For transferring changed settings from e.g. a VoIP PBX to a VoIP phone an additional method is necessary for triggering the provisioning procedure, because the real profile download can only be
started from the VoIP phone.
The Gigaset VoIP phones automatically ask for new updates when they are restarted. To initiate a configuration update from the provisioners side the SIP check-sync mechanism can be used.

SIP check-sync mechanism


The check-sync mechanism is used as a trigger within a SIP NOTIFY message to initiate a profile
update or to check for new firmware.
The following pictures show the principle of this mechanism and protocol details:
Gigaset VoIP phone

Router/Network Switch

PBX
(Provisioning Server)

SIP NOTIFY with<Event: check-sync>

Template A4, Version 1, 03.04.2012

Provisioning is started: http get profile.gigaset.net/device/42/2/master.bin ; ..

34

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods
The default for this parameter is set as follows:
Gigaset DE900 IP PRO

enabled

Gigaset DE700 IP PRO

enabled

Gigaset DE410 IP PRO

enabled

Gigaset DE310 IP PRO

enabled

Gigaset DX800A all in one

disabled

Gigaset C610 IP/N300 IP

disabled

Gigaset N510 IP PRO

enabled

Gigaset N720 DECT IP Multicell System

enabled

Due to security reasons the reboot option within the check-sync command is no longer
supported. The REBOOT parameter can be used instead.

REBOOT parameter
If an IP phone needs to be rebooted after a profile download in order to put the changes into effect,
the REBOOT parameter can be set optionally within a profile.

Information about the parameters that require a system reboot after being changed can
be taken from the paramter description ( page 42).

XML syntax
<REBOOT value="true"/>
<!-- possible values: true, false, 0, 1 -->
Tag Name

Value

Meaning

REBOOT

true
1

A reboot is performed after the profile was downloaded.

false
0

No reboot after profile download.

Template A4, Version 1, 03.04.2012

Binary representation
The reboot information is encoded as a type-length-value (TLV):
Tag Name

Tag Code

Contents

reboot

0x50

Optional tag: boolean value coded in one byte. Thus, this TLV has a
length of 3 bytes:
0

No reboot after profile download.

!=0

A reboot is performed after the profile was downloaded.

Binary coding example


0x50, 0x01, 0x01 // reboot, len=1, content = 1 => reboot

At present, reboot is supported for the following devices:


Gigaset DE900 IP PRO
Gigaset DE700 IP PRO
Gigaset DE410 IP PRO
Gigaset DE310 IP PRO

35

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Auto-provisioning with plain XML content


The benefit of uploading a file with plain XML content directly to the phone is that the provisioner
does not need to install and handle the gigaset_profile_gen application (as described in chapter Setting up an own provisioning server page 48).
To ensure that a wrong XML file content will not result in problems concerning the phone functions
or even disable the phone and to ensure that possible encrypted XML and legacy encrypted binary
profiles are identified, the XML content is evaluated by the configuration client (the phone) itself
according to the following rules:

Try to analyse the profile by


searching for valid XML tags.

Successful?

Yes

No

Try to analyse the profile by


searching for valid binary tags.

Decrypt the content using the


auto-provisioning AES key.

Successful?

Process profile
settings.
Yes

No

Template A4, Version 1, 03.04.2012

The content and the handling of the profiles is the same, regardless of whether the format is a binary
or an XML format.
Plain XML will be supported only in the profiles themselves. Other server configuration files like country lists, provider lists, etc do not support the plain XML format. The file ending (*.bin or *.xml) can be
chosen freely. It will not be evaluated in the configuration client (the IP phone), but it is sensible to
choose the file suffix which reflects the file content.

36

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Security aspects
u
u
u

u
u

HTTPS (TLS) is supported by most of the Gigaset VoIP phones. Server root certificates are used.
The profile can be encrypted with AES 128 using a specific encryption key.
The MAC address is sent during the provisioning process and this MAC address can be used for
comparing the address with a data base containing all allowed MAC addresses. Therefore only
known phones receive provisioning data.
The activation code string contains an optional password.
The use of HTTP Digest Authentication is possible.

It is not possible to use TLS client certificates.

Client authentication via HTTP Digest Authentication


Gigaset VoIP phones can use https (HTTP over TLS) but without client certification only. Consequently, there is no information to check the authenticity of the client. Anyone can send a request to
the Gigaset redirection server or a provisioning server with a randomly faked MAC address. If the random MAC address is correct, that person would be redirected to a provisioning server and receive an
end-user profile configuration.
In order to avoid such a scenario, an additional HTTP digest authentication as defined in RFC 2617
can be used by the phones. The use of HTTP digest authentication is strongly recommended for all
networks that are easily eavesdropped, because otherwise a hacker could easily access the user
account information by simply recording and replicating the phones GET request to the provisioning
server.
Because the HTTP digest authentication is based on a shared secret (which is contained in the password component of the activation code), an attacker who wishes to hijack the phone by providing a
fake provisioners URL will still not be able to find out what the shared secret is because it is never
transmitted in clear text.
The HTTP digest authentication algorithm implemented in Gigaset VoIP phones only supports the
following context and therefore should be taken into consideration by the provisioners HTTP implementation:
algorithm = "MD5" and qop = "auth".
Furthermore, the uri= part of the authorisation header is built in the format described in RFC 2616
(i.e., without the domain portion of the URI), e.g.:
uri="/phone/cgi/ap?ac=87426549864"

Template A4, Version 1, 03.04.2012

Certificates in PEM format


Basically, PEM is a frame (starting with BEGIN CERTIFICATE and ending with END CERTIFICATE) containing a binary X.509 certificate. PEM was intended for the transport of certificates within e-mails.
Some servers use this format as the default format to store certificates.
At present, PEM format is supported for the following devices:
Gigaset C610 IP/N300 IP
Gigaset N510 IP PRO
PEM format can be configured via the phones WEB UI or by download via auto provisioning. After
download, the profile is converted to the DER format (Distinguished Encoding Rules) and stored in
the Tevero file system.

37

Provisioning / en / A31008-M2212-R910-3-7643 / methods.fm / 11.10.2012

Provisioning methods

Download TLS certificates via a link in a profile


To download a TLS certificate via a link, the CERTIFICATE parameter is supported. This parameter enables e.g. a provider to force a download of a certificate without any user interaction.
CERTIFICATE is only supported in plain XML profiles.
XML syntax
<CERTIFICATE class="string" value="http://profile.gigaset.net/device/certificate.bin"/>

Tag Name

Value

Meaning

CERTIFICATE

URL

The URL which refers to the certificate file. It must be complete, i.e.
contain the host and file name.

Only one certificate tag is allowed per profile. Redirection to another location is supported!
The certificate can be downloaded via a HTTP server only.
At present, the CERTIFICATE tag is supported for the following devices:
Gigaset C610 IP/N300 IP
Gigaset N510 IP PRO

Starting the provisioning tool

Template A4, Version 1, 03.04.2012

The provisioning tool is designed to assist you in preparing the provisoning process and consists of
the configuration file editor and the provisioning package editor. It is provided as Web user interface.
Information on how to access the provisioning tool user interface can be found at
http://wiki.gigaset.com or contact the Gigaset Technical Sales.
To register you need a user account (user name and password) which is provided by Gigaset Technical Sales. Account requests can be sent to [email protected].
If available, you can also use the login credentials for the Gigaset redirection server
(prov.gigaset.net).
If the login is successful, the main window is opened. You can now start
the configuration file editor ( page 39) or
the provisioning package editor ( page 48).

38

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file

XML provisioning file


Configuration data for Gigaset VoIP phones is provided by means of XML files.
XML files are used
as direct input (plain XML-provisioning) for Gigaset VoIP phones or
as input for the gigaset_profile_gen application which converts the configuration into a binary
format comprehensible for Gigaset VoIP phones ( page 61).
XML files can be created
using the Gigaset provisioning tool providing configuration data (a subset of the available configuration parameters) which are specific for the device or
manually based on templates that are delivered by Gigaset ( page 42).

Configuration file editor (provisioning tool)


The configuration file editor is used to create a configuration file for Gigaset IP phones of a specific
device type (XML and binary). The configuration files can be uploaded to Gigaset IP phones in the
case of plain XML provisioning or can be used as input file for a provisioning package.
The result of the editing is stored on the Gigaset server. In order to use the file for provisioning it has
to be downloaded and saved on the provisioning server. When downloading the configuration file,
a ZIP archive is created, that contains:
an XML file with configuration parameters and parameter placeholders specific for the
selected provisioning method (via MAC address or activation code),
an XSD scheme file for validation, and
a binary configuration file.

Starting

Template A4, Version 1, 03.04.2012

The configuration file editor is provided as Web user interface. It is together with the provisioning
package editor part of the provisioning tool ( page 10).
Login to the provisioning tool ( page 38).
If the login is successful, the main window is opened.
To create or edit a configuration file, click on Configuration file editor.
Already existing configuration files are listed. For each configuration file the following information is
available:
No.
Number of the configuration file.
Configuration file Name including a timestamp.
Comment
Comment to identify the file.
Change on
Date of last change.
The following options are possible:
Add new
Create a new configuration file.
Edit
Revise an existing configuration file.
Delete
Delete an existing configuration file.
Download
Download an existing configuration file.
Back
Exit the configuration file editor and return to the main window.
If the maximum number of configuration files is reached, it is not possible to add a new file or to edit
an existing one before deleting some file(s).

39

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file

To navigate within the tool, use the links and buttons available on the pages, e.g. Next
or Back. You should not use the browser navigation buttons.
To exit the configuration use the logout button which is located top
right on each page.

Creating a configuration file


Click Add new to create a new configuration file.
The editor is opened and will guide you through all necessary steps.
Click Next to save the settings and precede to the next step.
Click Back to return to the previous step.
Click Clear all to reset all your changes on the current page.
Click Cancel to exit the editor without saving your settings and to return to the main window.

Template A4, Version 1, 03.04.2012

Select device
On the first page you have to select the device type for which a configuration is to be created.
The page is not shown when an existing configuration file is edited. In this case the part number and
firmware version stay untouched.
Select a device type from the Part number drop down list. The list provides all part numbers of
device types which are available for the supported devices. Once a part number is selected the
information about device type, variant and provisioning ID is shown.
Select the Firmware version from the drop down list. Only available versions for the selected part
number are provided.
After starting the edition of an already existing configuration file, you can change the firmware version if needed. The part number cannot be changed.

40

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file

Template A4, Version 1, 03.04.2012

Editing parameters
The configuration file editor provides access to all available configuration parameters for the selected
device type/part number.

The navigation bar on the left contains the available configuration pages. Some pages may have subpages (e.g. Telephony).
Click on an entry to open the desired page.
The pages only contain parameters for the selected device type/part number. If an existing configuration file has been opened, the previously stored parameter values are loaded. For a new configuration file the parameters are initially in disabled state (check box unchecked).
Default values are set, if available. Though, if parameters are set in disabled state the default values
are not set even if they are available. In this case the parameter is not included in the resulting configuration file (neither XML nor binary). This means that the value of this parameter will not be
changed in the device being provisioned.
For the parameters the following elements are available:
u Parameter name
u A check box on the left of the parameter value. It has to be enabled in order to put the
changed value of the parameter into effect. If the check box is not checked, the resulting
configuration file will not change the value for this parameter within the devices.
u Editor control, depending on the parameter:
Radio buttons
To enable or disable the parameter.
Drop-down list

To select one entry from a list.

Check box group

To select multiple options from a option group.

Edit box

To enter text, e.g. names, numbers ... .

41

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file


u

Information/validation icon, with the following states:


Info state: Shown when the parameter is not enabled.
OK state:

Shown when the parameter is enabled and the value/state is valid.

Error state:

Shown when the parameter is enabled and the value/state is not valid.
Note: Only the validity of a single parameter is checked. Cross-checking with
other parameter values to ensure a plausible configuration is not performed.

A validation hint showing the possible value range. It shows information about
the allowed range for numerical parameters and about the maximum number
of characters for strings.
An Action button providing the following options:
Edit parameter
Select this option to edit the parameter value.
Insert default setting The default value for the parameter is inserted (if the parameter has a
default value). Afterwards the value can be changed.
Insert placeholder
A placeholder value for the parameter is inserted. This should be used to
allow the insertion of user-specific values via the ap script ( page 54).

Help information
Move the cursor over a parameter and wait for a moment. A popup is opened containing information about the parameter.
Click on the information/validation icon to open a popup with additional information regarding
the parameter.
Saving the configuration file
If you have set all configuration values as desired, click Next.
Enter a File Name and a comment for the configuration. The filename must not consist of more
than 14 characters. Only lowercase letters, digits and underscore characters are allowed.
The full file name will be created automatically using the file name and a time stamp.
If you have edited an existing file you can change the file name.
Click Save to store the changes. A new configuration file containing your changes will be created.

Template A4, Version 1, 03.04.2012

XML files
Instead of using the provisioning tool you can also create the XML configuration files manually.
XML files can be created based on templates that are delivered by Gigaset and stored within the
gigaset file system. A general template is provided in the subordinate /gigaset/cgi/shop directory
( page 53).
The following template files are available:
template.xml
Template for auto-provisioning using the MAC method.
actc_template.xml
Template for auto-provisioning using an activation code.

Device-specific templates are available in the devices cgi subdirectories ( page 62). The XML file
syntax may be different depending on the devices functionality and date of manufacture. To get
information on the correct XML syntax for a specific device please refer to the appropriate template
in the devices subdirectory.
Gigaset supplies a template XML file which has to be adapted by the auto-provisioning script to provide the real provisioning data.

42

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file

XSD schema files


To make sure that the XML file contains only configuration parameters the phone understands, it has
to be validated against a fixed schema file (referred to inside the XML file). Schema files are also provided by Gigaset and available in the general cgi directory as well as the device-specific cgi directories
( page 62).
The following schema files are available:
provider.xsd
XML schema file for validating the template.xml file.
actc_provider.xsd
XML schema file for validating the actc_template.xml file.

Configuration parameters
The parameters used for provisioning are described in general on page 9.
Each Gigaset IP phone has a lot of further configuration parameters which can be provided by the
XML input file additionally to the provider data.
Details of the parameters mentioned here and a list of all possible configuration parameters are available at http://wiki.gigaset.com.

The list of modifiable parameters can change if further features are added to the phone
in the future. Therefore, please refer to the template files (template.xml /actc_template.xml)
and the schema files (provider.xsd/actc_provider.xsd) which are supplied.
Attention:
You should never change the provider schema file any changes you might desire in
the schema file must be provided by Gigaset. The schema file is the only guarantee
that the XML file is compatible with the Gigaset phone you are marketing.

XML template example

Template A4, Version 1, 03.04.2012

The following is a short extract from the template.xml file. To view the total file or the actc_template.xml
file you can open it from the gigaset/cgi/shop directory ( page 62).
The template provided by Gigaset for the XML file contains two types of parameters:
u A large set of parameters which have to be adapted for a specific provider.
u A smaller set of parameters intended to be adapted (by the provisioners ap.cgi script) to tailor the
file for an individual end customer. The latter set of parameters has been highlighted in the fragment shown below.
<?xml version="1.0" encoding="ISO-8859-1"?>
<ProviderFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchema
Location="provider.xsd">
<Provider>
<MAC_ADDRESS value="insert MAC_ADDRESS here"/>
<VERSION value="insert VERSION here"/>
<PROFILE_NAME class="string" value="insert PROFILE_NAME here"/>
<S_SIP_LOGIN_ID class="string" value="insert S_SIP_LOGIN_ID here"/>
<S_SIP_PASSWORD class="string" value="insert S_SIP_PASSWORD here"/>
<S_SIP_USER_ID class="string" value="insert S_SIP_USER_ID here"/>
<S_SIP_DOMAIN class="string" value="192.168.2.1"/>
<!-- optional (and obsolete)
<S_SIP_REALM class="string" value=""/>
-->
<S_SIP_SERVER class="string" value="192.168.2.1"/>
<I_SIP_SERVER_PORT class="integer" value="5060"/>
<S_SIP_REGISTRAR class="string" value="192.168.2.1"/>
<I_SIP_REGISTRAR_PORT class="integer" value="5060"/>
43

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

Template A4, Version 1, 03.04.2012

XML provisioning file


<B_SIP_USE_STUN class="boolean" value="false"/>
<S_STUN_SERVER class="string" value=""/>
<I_STUN_SERVER_PORT class="integer" value="3478"/>
<!-- optional
<I_NAT_REFRESH_TIME class="integer" value="20"/>
-->
<I_OUTBOUND_PROXY_MODE class="string" value="auto"/>
<S_OUTBOUND_PROXY class="string" value="192.168.2.1"/>
<I_OUTBOUND_PROXY_PORT class="integer" value="5060"/>
<I_RE_REGISTRATION_TIMER class="integer" value="180"/>
<I_RE_STUN_TIMER class="integer" value="240"/>
<!-- optional; loudness values: 0 = normal, 1 = loud, 255 = low
<I_LOUDNESS_1 class="integer" value="0"/>
-->
<!-- more optional parameters for account 1
<S_SIP_DISPLAYNAME class="string" value="anything"/>
-->
<S_SIP_PROVIDER_NAME class="string" value="PBX"/>
<!-- more optional parameters for account 1
<I_SIP_ACCOUNT_MT_RCV_1 class="integer" value="63"/>
<I_SIP_ACCOUNT_MT_SND_1 class="integer" value="1"/>
-->
<B_SIP_ACCOUNT_IS_ACTIVE_1 class="boolean" value="true"/>
<!-- more optional parameters for account 1
<S_VOIP_NET_AM_NUMBER_1 class="string" value=""/>
<B_VOIP_NET_AM_ENABLED_1 class="boolean" value="true"/>
-->
<!-- optional; codec list for account 1 with 5 elements, values: 0 = PCMU G.711 law,
1 = PCMA G.711 a law, 2 = G726, 3 = G729, 4 = G726 AAL2 , 5 = G722
<I_SIP_PREFERRED_VOCODER class="array">
<ARRAYELEMENT class="integer" value="5"/>
<ARRAYELEMENT class="integer" value="1"/>
<ARRAYELEMENT class="integer" value="0"/>
<ARRAYELEMENT class="integer" value="2"/>
<ARRAYELEMENT class="integer" value="3"/>
</I_SIP_PREFERRED_VOCODER>
-->
<!-- optional: parameters for account 2
...
-->
<!-- optional; codec list for account 2 with 5 elements, values: 0 = PCMU G.711 law,
1 = PCMA G.711 a law, 2 = G726, 3 = G729, 4 = G726 AAL2 , 5 = G722
. . . -->
<!-- optional: parameters for account 3
...
--> . . .
<!--Bit-Masks for I_DTMF_TX_MODE_BITS: Audio=1, RFC2833=2, SIP-INFO=4-->
<I_DTMF_TX_MODE_BITS class="integer" value="1"/>
<I_DTMF_TX_RTP_PAYLOAD_TYPE class="integer" value="101"/>
<B_SHOW_USERID_DURING_WIZARD class="boolean" value="true"/>
<!-- optional parameters:
<S_DATA_SERVER class="string" value="gigaset.siemens.com/gigaset"/>
<S_EMAIL_SERVER class="string" value="192.168.2.55"/>
<S_MESSENGER_SERVER class="string" value="192.168.2.55"/>
<I_MESSENGER_SERVER_PORT class="integer" value="1"/>
<S_TIME_NTP_SERVER class="string" value="192.168.2.55"/>
<B_REDIRECT_EMERGENCY_TO_PSTN class="boolean" value="true"/>
-->

44

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file


<!-- optional; allows to add a text to the UA header in SIP messages:
<S_USERAGENT_STRING class="string" value="additional_text"/>
-->
<!-- optional-->
<B_SIP_SHC_ACCOUNT_IS_ACTIVE class="boolean" value="true"/>
<!-- optional online phonebook settings -->
<S_TDS_SERVICE_URL class="string" value=""/>
<S_TDS_LOGIN class="string" value=""/>
<S_TDS_LOGIN_PASS class="string" value=""/>
<S_TDS_TXT_MENU class="string" value=""/>
<S_TDS_TXT_HEADER class="string" value=""/>
<S_TDS_TXT_SEARCH_1 class="string" value=""/>
<S_TDS_TXT_SEARCH_2 class="string" value=""/>
<S_TDS_TXT_DEP_MENU class="string" value=""/>
<S_TDS_TXT_DEP_HEADER class="string" value=""/>
<S_TDS_TXT_DEP_SEARCH_1 class="string" value=""/>
<S_TDS_TXT_DEP_SEARCH_2 class="string" value=""/>
<S_TDS_TXT_PTD_MENU class="string" value=""/>
<S_TDS_TXT_PTD_HEADER class="string" value=""/>
<S_TDS_TXT_PTD_SEARCH_1 class="string" value=""/>
<S_TDS_TXT_PTD_SEARCH_2 class="string" value="0"/>
<I_TDS_CAPABILITIES class="integer" value="0"/>
<S_TDS_ISO_3166_1 class="string" value=""/>
<B_TDS_TRANSMIT_MAC_ADDRESS class="boolean" value="1"/>
<!-- optional online phonebook settings end-->
</Provider>
</ProviderFrame>

Template A4, Version 1, 03.04.2012

Example: XML file fragment for sipgate


In the case of the MAC method:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ProviderFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchema
Location="mac_provider.xsd">
<Provider>
<MAC_ADDRESS value="filled out by the ap script"/>
<VERSION value="insert VERSION here"/>
<PROFILE_NAME class="string" value="insert PROFILE_NAME here"/>
<S_SIP_LOGIN_ID class="string" value="insert S_SIP_LOGIN_ID here"/>
<S_SIP_PASSWORD class="string" value="insert S_SIP_PASSWORD here"/>
<S_SIP_USER_ID class="string" value="insert S_SIP_USER_ID here"/>
<S_SIP_PROVIDER_NAME class="string" value="Sipgate"/>
<S_SIP_DOMAIN class="string" value=""/>
<S_SIP_REALM class="string" value="sipgate.de"/>
<S_SIP_SERVER class="string" value="sipgate.de"/>
<I_SIP_SERVER_PORT class="integer" value="5060"/>
<S_SIP_REGISTRAR class="string" value="sipgate.de"/>
<I_SIP_REGISTRAR_PORT class="integer" value="5060"/>

</Provider>
</ProviderFrame>

In the case of the activation code method:


<?xml version="1.0" encoding="ISO-8859-1"?>
<ProviderFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchema
Location="actc_provider.xsd">
<Provider>
<ACTIVATION_CODE value="filled out by the ap script"/>
45

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file


<VERSION value="insert VERSION here"/>
<PROFILE_NAME class="string" value="insert PROFILE_NAME here"/>
<S_SIP_LOGIN_ID class="string" value="insert S_SIP_LOGIN_ID here"/>
<S_SIP_PASSWORD class="string" value="insert S_SIP_PASSWORD here"/>
<S_SIP_USER_ID class="string" value="insert S_SIP_USER_ID here"/>
<S_SIP_PROVIDER_NAME class="string" value="Sipgate"/>
<S_SIP_DOMAIN class="string" value=""/>
<S_SIP_REALM class="string" value="sipgate.de"/>
<S_SIP_SERVER class="string" value="sipgate.de"/>
<I_SIP_SERVER_PORT class="integer" value="5060"/>
<S_SIP_REGISTRAR class="string" value="sipgate.de"/>
<I_SIP_REGISTRAR_PORT class="integer" value="5060"/>

</Provider>
</ProviderFrame>

Special parameters
VERSION identifying configuration changes
The VERSION parameter in the XML file is somewhat special because it is not really a configuration
item, but instead is used by the phone to detect whether there have been any changes in the configuration since the last time it was changed.
The parameter is a time string with the following mandatory format:

Template A4, Version 1, 03.04.2012

ddmmyyhhmm
where dd, mm, yy, hh and mm represent the decimal numeric values for day, month, year, hours and

minutes respectively. Because the phone converts this string into an equivalent integer value, it is
important to choose valid date & time values.
In the phone, the change detection algorithm works as follows:
u Whenever the phone has requested and processed an auto-provisioning file, it converts the string
contained in the VERSION parameter into an integer, which is saved in the non-volatile RAM.
u In future, the phone compares this saved integer with the value of the integer calculated from the
VERSION parameter contained in any newly requested auto-provisioning file.
u As long as the two integers are equal, the phone assumes that the auto-provisioning file is identical with the old one, and will ignore it.
u If, however, the integers are different, the phone assumes that a new auto-provisioning file has
been issued and updates its configuration accordingly, replacing its saved copy of the integer with
the one calculated from the new file.
For the auto-provisioning system, this means that whenever it wishes the phone to update its configuration, it must generate a new value of the VERSION parameter.
The design assumes that the auto-provisioning system will store this version string in the database
entry belonging to a given end-customer, thus indicating the last time the configuration for that particular end-customer was changed.

46

Changing the VERSION string too often (e.g. on a daily basis or even more often) is not to
be recommended, as it will force the phone to update its non-volatile memory unnecessarily. As this memory is implemented using FLASH or EEPROM technology, which has a
limited number of write cycles, the phones useful lifetime will suffer!

Provisioning / en / A31008-M2212-R910-3-7643 / files.fm / 11.10.2012

XML provisioning file

EXTENDED_PROFILE additional profile download via link in profile


The EXTENDED_PROFILE parameter enables providers e.g. to split their profile into user-specific data
from secure storage and common or server-specific data.
The parameter is used in a profile element to refer to another profile. Only one EXTENDED_PROFILE
tag is allowed per profile. A maximum of three profiles can be carried out sequentially, one main profile and two extended profiles. For easier understanding the first profile is called main profile and the
others are called extended profiles.
The EXTENDED_PROFILE parameter will be supported only in plain XML profiles.
XML syntax
<EXTENDED_PROFILE class="string" value="http://profile.gigaset.net/device/
d_freenet_de.xml"/>
Tag Name

Value

Meaning

EXTENDED_PROFILE

URL

The URL which refers to the next profile. It must be complete,


i.e. contain the host and file name.

The extended profile can be downloaded via a HTTP server only.


For extended profiles there are some restrictions in contrast to the main profile:
u Feature tags like MAC_ADDRESS or ACTIVATION_CODE will not be supported. If necessary these
parameters must be listed in the main profile. PROFILE_NAME and PROFILE_VERSION are still
mandatory (they can be empty but the tags itself must be available).
u In the case of an error (e.g. file not found) it is not possible to inform the user which profile could
not be downloaded. So only one general message is sent. Only if all profiles could be downloaded
correctly the message success is sent.
In the extended profiles, the new parameters CERTIFICATE and PROFILE_DOWNLOAD will be supported but only if the extended profile is a plain XML profile. TLS is also possible. Additionally, it is
possible to refer from a plain XML profile to a binary coded profile.
At present, the EXTENDED_PROFILE tag is supported for the following devices:
Gigaset C610 IP/N300 IP

Template A4, Version 1, 03.04.2012

Gigaset N510 IP PRO

47

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Setting up an own provisioning server


The general procedure for setting up auto-provisioning of Gigaset IP phones is as follows:
u Installing a Linux server
Currently, systems with i386 architecture (and newer, compatible ones) are supported. The installation file is distributed as a Linux RPM file, i.e. the Linux system used, must support this packaging
format.
u Preparing the Linux server
Installing an Apache HTTP server
The Apache HTTP server is an open source web server for UNIX and Windows systems. It is used
to handle the HTTP requests of the Gigaset IP phones.
Adapting the web server configuration file for connecting the Gigaset auto-provisioning script
To enable the auto-provisioning script ( page 54) to be executed successfully the web server
configuration file has to be adapted as follows: Add the gigaset/cgi directory to the Apache
directories.
Installing PHP script language
PHP is a general scripting language designed for web development to produce dynamic web
pages. The code is interpreted by a web server with a PHP processor module which generates
the resulting web page. It also has evolved to include a command-line interface capability and
can be used in standalone graphical applications.
Setting up a MySQL server (optional)
MySQL is the recommended instrument for providing the auto-provisioning script with the
user-related data.
u Installing the auto-provisioning application
Preparing the file system
Installing the application
u Creating the auto-provisioning script or adapting the sample script ( page 54)

Provisioning package editor (provisioing tool)


The package editor is used to create a customer-specific provisioning package which can be
uploaded to Gigaset IP phones. A provisioning package can contain the configuration for different
device types. If a configuration file is to be added to the package it must have been created previously
( page 39).
The result of the editing process is a ZIP archive. It can be used to set up the file system structure of a
provisioning server. The content depends on the package definition, for details page 51.
It is stored on the Gigaset update server. In order to use the file for provisioning it has to be downloaded and saved on the provisioning server.
Template A4, Version 1, 03.04.2012

Notes on MAC address or activation code based provisioning mode


During the creation of your user account a three digits activation code (the Gigaset part of the activation code page 29) should be assigned to the account. In the case it has been assigned, this code
is shown by the tool and the provisioning packages created with the tool will support both: MAC
code based and activation code based provisioning. In the case the code has not been assigned, an
appropriate message is output and the provisioning packages will support only MAC code based
provisioning. Please contact [email protected] for having an activation code
assigned.

48

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Starting
The provisionig package editor is provided as Web user interface. It is together with the configuration file editor part of the provisioning tool ( page 10).
Login to the provisioning tool ( page 38).
If the login is successful, the main window is opened.
To create or edit a provisioning package, click on Provisioning package editor.
Already existing provisioning packages are listed. For each provisioning package the following information is available
No.
Number of the provisioning package.
Package name Name including a timestamp.
Comment
Comment to identify the package.
Change on
Date of last change.
Prov. server URL Address of the provisioning server configured by the user.
The following options are possible:
Add new
Create a new provisioning package.
Edit
Revise an existing provisioning package.
Delete
Delete an existing provisioning package.
Download
Download an existing provisioning package.
Back
Exit the provisioning package editor and return to the main window.
Information about created packages is stored on the server. In order to use the package for provisioning it has to be downloaded and saved on the provisioning server. The packages can be downloaded
on demand via the Download button.
If the maximum number of provisioning packages is reached it is not possible to add a new package
or to edit an existing one before deleting some package(s).

To navigate within the tool, use the links and buttons available on the pages, e.g. Next
or Back. You should not use the browser navigation buttons.
To exit the configuration use the logout button which is located top
right on each page.

Creating a provisioning package


Click Add new to create a new provisioning package.

Template A4, Version 1, 03.04.2012

The package editor is opened and will guide you through all necessary steps.
Click Next to save the settings on a page and precede to the next step.
Click Back to return to the previous step.
Click Cancel to exit the editor without saving your settings and to return to the main window.
Device-independent settings
Enter the Provisioning server address.
You only need to provide the address (IP or DNS) of the root folder on the server. This address will
automatically be completed with the common part. If no address is provided, the default
http://%DURL/%DVID/cgi/ap?mac=%MACD&amp;ac=%ACTC is used.

49

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


Device Selection
On this page the device types that are supported by the package are listed with the following information:

To add a new device type:


Select the Part number and Firmware version of the device type. A Comment can be added
optionally.
If you want to include the firmware accept the Add selected firmware to the package option. For
devices allowing downgrades you can additionally define that downgrades should be supported.
Click on Add to add the device type to the package.
If there is already a device type with the same variant and provisioning ID the device is not added.
All settings apply only to the device type being added. This means that a package can contain device
types with firmware included and device types without firmware.
Click on Delete to delete a device type from the list.
Profile configuration files
On this page the configuration files are assigned to the device types previously defined.
For each device type select the configuration file from the drop down list.
The drop down list contains the configuration files already created and stored on the Gigaset
server that match the variant and provisioning ID of the selected device type. Only configuration
files for the selected firmware versions or for older firmware versions are presented. Select None
if you do not want to have a configuration file assigned. If there are no matching configuration
files No profile available is shown and the drop down list is disabled.
Click Edit to open the configuration file editor ( page 39) to directly edit the configuration file
that is assigned to the package. As usual when editing a configuration file, a new configuration file
will be created and the old one will be kept (it can be deleted afterwards if no longer needed).

Template A4, Version 1, 03.04.2012

Store provisioning package


Enter a File Name and a comment for the package. The version number will be created automatically using the file name and a time stamp.
Click Save to store the package on the Gigaset update server.

50

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Content of the provisioning package

Template A4, Version 1, 03.04.2012

The provisioning packages are stored on the Gigaset update server. They contain the following:
u A sifs folder containing the files that are responsible for redirection:
sifsroot.bin
sih_###.bin
sit_###.bin
siu_###.bin (URL of the provisioning server as defined by the user on Device Independent Settings page 49)
u ## folders
Each folder is responsible for a specific device variant identified by its variant ID, e.g. 60 for Gigaset
DE900 IP PRO or 71 for Gigaset N720 IP PRO. A list of the variant IDs currently used can be found
on page 62.
A folder is created for each device variant which has been defined by the user in the package editor. Each folder contains ## subfolders for the defined provisioning IDs.
u Firmware files
These files are created if the Add selected firmware to the package option is enabled. The versions defined via the editor are included. If the Support downgrades option is also enabled, previous firmware versions are included.
u Language files
The WEB UI languages, smart help and handset language files (webuil/sht/hsl folders) consistent
with the selected firmware are provided. If Support downgrades is selected previous versions are
also included.
u Binary profiles
If configuration files are assigned, binary profiles are included with dummy language, country and
provider files.
u XML profile needed for customer-specific provisioning
cgi folder(s) containing XML profiles if configuration files are assigned with XSD scheme, ap script
template ( page 54) and shop subfolder containing chagall_profile_gen application and encryption key ( page 61).
For detailed information on the file system structure of a provisioning server page 62.

51

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Installing the auto-provisioning application


Preparing the file system
Before installing the auto-provisioning application the file system has to be prepared. i.e. you have to
create the necessary directories and copy the files into the file system structure.

Creating directories

Create a new directory gigaset/cgi/shop within the web server document path, e.g.
/var/www/html:
cd /var/www/html/
Change to the web server document directory
mkdir gigaset
Create a new directory gigaset
cd gigaset
Change to the gigaset directory
mkdir cgi
Create a new directory cgi
cd cgi
Change to the cgi directory
mkdir shop
Create a new directory shop
cd /
Return to the root directory

Copying the files to the provisioning server

Copy the following files from the CD into the appropriate directories:
File
Copy into the directory:
ap
var/www/html/gigaset/cgi
key
var/www/html/gigaset/cgi/shop
provider.xsd
var/www/html/gigaset/cgi/shop
template.xml
var/www/html/gigaset/cgi/shop
gigaset_profil_gen-<version>.i386.rpm /usr/bin

Please note, that the web server path may be different in other Linux and Apache installations.

Required libraries
Besides the usual libc libraries required by any standard Linux application, gigaset_profile_gen needs
the libxml2 library.
You can download the latest version of libxml2 from
http://xmlsoft.org

The RPM installation will inform you if the required libraries are not installed on your system.

Template A4, Version 1, 03.04.2012

Installing the gigaset_profile_gen application


To install the application perform the following steps:
Change to the /usr/bin directory.
cd /usr/bin

Install the software.


rpm -Uhv gigaset_profile_gen-<version>.i386.rpm

To enable the Perl script to start the generator, you need to create a link to the application in the shop
directory.
Change to the shop directory.
cd /var/www/html/gigaset/cgi/shop

Create the link


ln -s /usr/bin/gigaset_profile_gen

52

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Setting the access rights for the auto-provisioning files and script
When the package is installed, the following files are available in the /gigaset directory located in the
HTTP server document directory.
File

Description

cgi/ap

Auto-provisioning script.

cgi/shop/template.xml

Template for auto-provisioning using the MAC method


containing the configuration data for the phone.

cgi/shop/actc_template.xml

Template for auto-provisioning using an activation code


containing the configuration data for the phone.

cgi/shop/gigaset_profile_gen Auto-provisioning tool.


cgi/shop/key

Contains the secret key used to encrypt the configuration


file to be sent to the phone.

cgi/shop/provider.xsd

XML schema file required by the gigaset_profile_gen


application in order to validate the template.xml file.

cgi/shop/actc_provider.xsd

XML schema file required by the gigaset_profile_gen


application in order to validate the actc_template.xml
files.

To enable the generator to run successfully you need to set the access rights for the files in the cgi and
shop directories correctly.

Access rights are set using the chmod 755 command.


This sets the access rights as follows: Read, write and execute rights for the owner (root),
read and execute for all other user users.

Change the directory.


cd <HTTP server directory>/gigaset/cgi

Change the access rights for the auto-provisioning script.


chmod 755 ap

Change the directory.


cd <HTTP server directory>/gigaset/cgi/shop

Change the access rights for the key, template and provider files.

Template A4, Version 1, 03.04.2012

chmod 755 key


chmod 755 template.xml
chmod 755 provider.xsd

53

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

Auto-provisioning example script

Template A4, Version 1, 03.04.2012

The auto-provisioning script (ap) is responsible for the following tasks:


1 Looking for the given MAC address or activation code and finding the corresponding user and
profile data.
2 Editing a copy of the template XML file with the given user data.
3 Running the gigaset_profile_gen program which generates the desired configuration file
( page 60).
4 Sending the configuration file to the requesting phone.
Gigaset provides an example script written in Perl because it has powerful text manipulation instructions and is the usual choice for writing CGI scripts. This script can be found in the /gigaset/cgi directory.
Our simple script does all of the above. However, our task 1 is very primitive, because it maps only a
few MAC addresses to fixed users. In real life, this task will probably be implemented by a database
application.
Here is the sample script. It is stored in the /gigaset/cgi directory:
#!/usr/bin/perl
#*************************************************************************
#** Copyright (c) 2008
#** Gigaset Communications GmbH
#** Author(s): LC, HJL / GC PD D SD RP
#
#
This is a DEMO CGI script that shows how to interface
#
the Gigaset application 'gigaset_profile_gen' inside
#
a CGI application written in Perl.
#
#
** Redistribution and use in source and binary forms, with or without
#
** modification, are permitted provided that the following conditions
#
** are met:
#
#
** 1. Redistributions of source code must retain the above copyright
#
**
notice, this list of conditions and the following disclaimer.
#
** 2. Redistributions in binary form must reproduce the above copyright
#
**
notice, this list of conditions and the following disclaimer in the
#
**
documentation and/or other materials provided with the distribution.
#
**
#
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
#
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
#
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
#
** DISCLAIMED.
#
** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
#
** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
#
** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
#
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
#
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
#
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
#
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#*********************************************************************************
use CGI
$q = new CGI();
use File::Temp qw/ tempfile /;
use File::stat;
# --------------------------------------------------------# 0. Change to 'shop' directory where actual processing takes place:
chdir './shop' or die "Can't cd to shop: $'\n";

54

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


# 1. Get the requesting device's MAC address or activation code
$MacAddress = $q->param(mac);
$ActivationCode = $q->param(ac);
if ($MacAddress eq '' and $ActivationCode eq '')
{
# no parameter, assume MAC-method
$MacAddress = 'FF:FF:FF:FF:FF:FF';# for testing
}
# 2. Associate a user profile depending on the provisioning method
if ($MacAddress ne '')
{
# 2a In case of MAC Autoproviosioning
# print("MAC method!!\n");
# simple check for a valid MAC-address (with or without colons)
if(length($MacAddress) != 17)
{
if(length($MacAddress) != 12)
{
die "invalid MAC-format";
}
# convert a MAC-address without colons (e.g. 123456789012)
# to a MAC-address with colons (e.g. 12:34:56:78:90:12)
$MacAddress=~ s/..\B/$&:/gi
}
# Associate requestor's MAC address with a user profile:
# Create a temporary xml file from the template:
($InFileH, $TheXmlInputFile) = tempfile('TmpXXXXXX', '.xml');
close($InFileH);
if (&Customize_For_MAC_Method('template.xml', $TheXmlInputFile, $MacAddress) != 0)
{
die "Customize MAC subroutine failed";
}
}
elsif($ActivationCode ne '')
{
# 2b In case of Provisioning using Activation Code
# print("Activation Code method!!\n");
# Associate requestor's Activation Code with a user profile:

Template A4, Version 1, 03.04.2012

# Create a temporary xml file from the template:


($InFileH, $TheXmlInputFile) = tempfile('TmpXXXXXX', '.xml');
close($InFileH);
if (&Customize_For_ActivationCode_Method('actc_template.xml', $TheXmlInputFile,
$ActivationCode) != 0)
{
die "Customize Activation Code subroutine failed";
}
}
# 3.Convert the XML user profile created in 2) into an encrypted
#
binary profile:
# Create a temporary output file in the current directory
($OutputFileH, $TheOutputFileName) = tempfile('TmpXXXXXX', '.bin');
close($OutputFileH);

55

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


# Important: call generator with the -s argument, so it won't output
# anything on stdout!
# Moreover, if you need to generate a non encrypted autoprovisioning file,
# enter the option '-noencrypt', as shown below:
# $ExitStatus = system ("./gigaset_profile_gen $TheXmlInputFile $TheOutputFileName
# -s -noencrypt");
$ExitStatus = system ("./gigaset_profile_gen $TheXmlInputFile $TheOutputFileName -s");
print $ExitStatus
unlink ($TheXmlInputFile);
if ($ExitStatus != 0)
{
die "Could not generate the binary profile";
unlink ($TheOutputFileName);
}
# 4. Send the config file to the requesting device:
open (OUTFILE, $TheOutputFileName) or die "The bin file to output could not be found";
print "Content-type: application binary\n\n";
while (1)
{
$ByteCnt = read (OUTFILE, $Bytes, 100);
print $Bytes;
if ($ByteCnt != 100)
{
last;
}
}
close OUTFILE;
unlink ($TheOutputFileName);
##################################################################################
### Subroutine to customize the XML template for MAC-Autoprovisioning method #####
##################################################################################
sub Customize_For_MAC_Method
{
my($TemplateFileName, $OutputFileName, $MacAddr) = @_;
#
#
#
#
#
#

This subroutine is a *very* primitive example of how to customize


the xml template file for a specific end customer.
This examples assumes that there are only 4 end customers to
service :-))
In the real world, this subroutine would interface to a huge
database of users who are identified by their MAC address!

Template A4, Version 1, 03.04.2012

##################################################################################
##### Customer "Database" for MAC method #########################################
##################################################################################
#
Customer 1
Customer 2
Customer 3
#
my(@UserVersion) = ('3011061455',
'3011061455'
'3011061455'
);
my(@UserMacAddr) = ('00:01:E3:75:F1:72', '00:01:E3:67:60:77', '00:0A:5E:55:02:8F' );
my(@UserLoginId) = ('1234567',
'1234567',
'1234568'
);
my(@UserPassword)= ('abcdef',
'aa123456',
'bb123456'
);
my(@UserId)
'1234567',
'1234568'
);
= ('1234567',
my(@UserProfName)= ('d_default_de.bin', 'd_default_de.bin', 'd_default_de.bin' );
##################################################################################
##################################################################################

56

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


# find user associated with given MAC address:
my $UserIndex = 0;
while ($UserIndex <= $#UserMacAddr)
{
if (@UserMacAddr[$UserIndex] eq $MacAddr)
{
last;
}
$UserIndex++
}
if ($UserIndex > $#UserMacAddr)
{
return -1;
# Failure: no match for MAC addr found
}
# load the whole template:
open (INFILE, $TemplateFileName) or die "Could not open $TemplateFileName";
my($st) = stat($TemplateFileName) or die "No file $!";
read (INFILE, my $Block, $st->size);
close(INFILE);
# substitute the place holders in the template with the
# actual values assigned to the end customer:
$Block =~ s/insert MAC_ADDRESS here/@UserMacAddr[$UserIndex]/g;
$Block =~ s/insert VERSION here/@UserVersion[$UserIndex]/g;
$Block =~ s/insert PROFILE_NAME here/@UserProfName[$UserIndex]/g;
$Block =~ s/insert S_SIP_LOGIN_ID here/@UserLoginId[$UserIndex]/g;
$Block =~ s/insert S_SIP_PASSWORD here/@UserPassword[$UserIndex]/g;
$Block =~ s/insert S_SIP_USER_ID here/@UserId[$UserIndex]/g;
# store the customized xml file:
open (OUTFILE, ">$OutputFileName") or die "Could not open $OutputFileName";
print OUTFILE $Block;
close(OUTFILE);
return 0;
# Success
}
##################################################################################
### Subroutine to customize the XML template for Activation Code Provisioning ####
### method
####
##################################################################################
sub Customize_For_ActivationCode_Method
{
my($TemplateFileName, $OutputFileName, $ActCode) = @_;

Template A4, Version 1, 03.04.2012

# This subroutine is a *very* primitive example of how to customize


# the xml template file for a specific end customer.
# This examples assumes that there are only 4 end customers to
# service :-))
# In the real world, this subroutine would interface to a huge
# database of users who are identified by their Activation Code!
###############################################################################
##### Customer "Database" for Activation code method ##########################
###############################################################################
#
Customer 1
Customer 2
Customer 3
#
my (@UserActCode) = ('000133676069',
'000113676077',
'000754550284'
);
my (@UserLoginId) = ('6260854',
'1234567',
'1234568'
);
my (@UserPassword)= ('dd1234',
'aa123456',
'bb123456'
);
my (@UserId)
= ('6260854',
'1234567',
'1234568'
);
my (@UserVersion) = ('3011061455',
'3011061455',
'3011061455'
);
my (@UserProfName)= ('d_default_de.bin','d_default_de.bin','d_default_de.bin');
###############################################################################
###############################################################################

57

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


# find user associated with given Activation Code:
my $UserIndex = 0;
while ($UserIndex <= $#UserActCode)
{
if (@UserActCode[$UserIndex] eq $ActCode)
{
last;
}
$UserIndex++
}
if ($UserIndex > $#UserActCode)
{
return -1;
# Failure: no match for Activation Code found
}
# load the whole template:
open (INFILE, $TemplateFileName) or die "Could not open $TemplateFileName";
my($st) = stat($TemplateFileName) or die "No file $!";
read (INFILE, my $Block, $st->size);
close(INFILE);
# substitute the place holders in the template with the
# actual values assigned to the end customer:
$Block =~ s/insert ACTIVATION_CODE here/@UserActCode[$UserIndex]/g;
$Block =~ s/insert VERSION here/@UserVersion[$UserIndex]/g;
$Block =~ s/insert PROFILE_NAME here/@UserProfName[$UserIndex]/g;
$Block =~ s/insert S_SIP_LOGIN_ID here/@UserLoginId[$UserIndex]/g;
$Block =~ s/insert S_SIP_PASSWORD here/@UserPassword[$UserIndex]/g;
$Block =~ s/insert S_SIP_USER_ID here/@UserId[$UserIndex]/g;
# store the customized xml file:
open (OUTFILE, ">$OutputFileName") or die "Could not open $OutputFileName";
print OUTFILE $Block;
close(OUTFILE);
return 0;# Success
}

Adapting the ap script for MySQL database input (optional)


Usually, the user data is imported from a database. The following is an example for implementing
MySQL access within the ap script.
When the ap script should access a MySQL database for importing the user-related data adapt the
script analogous to the following:
At the beginning of the script change the following section:

Template A4, Version 1, 03.04.2012

use CGI
$q = new CGI();
use File::Temp qw/ tempfile
use File::stat;

Add the following lines:


###
use
###
use

58

/;

use Mysql for database connection


Mysql;
Encode will be used for encoding and decoding results from database
Encode;

Add another sub routine to the script. Ensure that database, table and field names match the settings defined for the database.

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


##################################################################################
### Subroutine to customize the XML template for MAC-Autoprovisioning method
###
###
with Mysql Connection
###
##################################################################################
sub Customize_For_MAC_Method_MYSQL
{
my($TemplateFileName, $OutputFileName, $MacAddr) = @_;
###################################
# MySQL Connection
###################################
# Mysql Configuration
$host="localhost";
$database="GigasetAutoProvisioning";
$tablename ="UserConnectionValues";
$user="root";
$pw="gigaset";
# MySQL Connet
$connect = Mysql->connect($host,$database,$user,$pw);
#Select DB
$connect ->selectdb($database);
#Define a Mysql Query
$myquery ="SELECT *FROM $tablename WHERE MAC = \'$MacAddress\' LIMIT 0,30";
#Execute the Query Function
$execute =$connect->query($myquery);

Template A4, Version 1, 03.04.2012

$MAC="";
$Version ="";
$Profil ="";
$LOGINIG ="";
$USERID ="";
$PW="";
# Turn results from DB into Variables
while (@results = $execute->fetchrow())
{
$MAC = $results[0];
# convert UTF8 (DB) to Iso-8859-1(Latin) for the template(Endconfing Iso-8859-1
$octets = encode("utf8", $Mac);
$Mac = decode("iso-8859-1",$octets);
$Version = $results[1];
$octets = encode("utf8", $Version);
$Version = decode("iso-8859-1",$octets);
$Profil =$results[2];
$octets = encode("utf8", $Profil);
$Profil = decode("iso-8859-1",$octets);
$LOGINID =$results[3];
$octets = encode("utf8", $LOGINID);
$LOGINID = decode("iso-8859-1",$octets);
$USERID =$results[4];
$octets = encode("utf8", $USERID);
$USERID = decode("iso-8859-1",$octets);
$PW= $results[5];
$octets = encode("utf8", $PW);
$PW = decode("iso-8859-1",$octets);
}
# load the whole template:
open (INFILE, $TemplateFileName) or die "Could not open $TemplateFileName";
my($st) = stat($TemplateFileName) or die "No file $!";
read (INFILE, my $Block, $st->size);
close(INFILE);
# substitute the place holders in the template with the
# actual values assigned to the end customer:

59

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


$Block =~ s/insert MAC_ADDRESS here/$MAC/g;
$Block =~ s/insert VERSION here/$Version/g;
$Block =~ s/insert PROFILE_NAME here/$Profil/g;
$Block =~ s/insert S_SIP_LOGIN_ID here/$LOGINID/g;
$Block =~ s/insert S_SIP_PASSWORD here/$PW/g;
$Block =~ s/insert S_SIP_USER_ID here/$USERID/g;
# store the customized xml file:
open (OUTFILE, ">$OutputFileName") or die "Could not open $OutputFileName";
print OUTFILE $Block;
close(OUTFILE);
return 0;
# Success
}

Database entries have to be converted from Unicode to UTF-8 to be processed by the


auto-provisioning tool successfully.

Testing the installation


When the installation and adjustment are finished, you should test to see if the auto-provisioning
process works properly. You can use a standard web browser to test the correct setup of the auto-provisioning system.
To check if your installation has been successful enter the following URL in your browser:
http://<provisioning server>/gigaset/cgi/ap?mac=<MAC address>
<provisioning server> Domain name or IP address of the provisioning server
<MAC address>
MAC address of an IP phone known by the ap script.

Example:
Your host has the domain cfg.provisioner.com.
Enter the following URL:
http://cfg.provisioner.com/gigaset/cgi/ap?mac=00:11:22:33:44:55

Template A4, Version 1, 03.04.2012

If everything is set up properly, the browser offers you a binary file. The file is encrypted, so it
should be quite unintelligible when downloaded and then opened with a hex editor.
u If the web browser times out, or returns 404, youll have to verify your setup; make sure you have
created the correct directory.
u If the web browser returns 500, the script has failed, e.g. because an unknown MAC address was
entered.
You can then test your auto-provisioning system with the Gigaset phone.
Power-up the phone and wait a few minutes for the phone to generate the auto-configuration
request.
We suggest you use a trace program like Ethereal, Wireshark etc. to examine the phone requests
and the response from your HTTP server.
Open the phones web page to check whether the configuration parameters you programmed
have been successfully stored in the phones configuration memory.

60

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

The gigaset_profile_gen application


gigaset_profile_gen is a console application intended to be called from a CGI script. Chapter Autoprovisioning example script ( page 54) describes how this script has to be designed and provides
an ap example script.
Synopsis
gigaset_profile_gen XML_INPUT_FILE OUTPUT_FILE [-s] [-noencrypt]

Description
Generates the encrypted configuration file from the given XML_INPUT_FILE and places it in
OUTPUT_FILE.
Mandatory arguments
XML_INPUT_FILE
File containing the configuration data for the phone to be provisioned
( page 43).
OUTPUT_FILE
Binary, encrypted version of the configuration, ready to be sent to the phone.
Optional arguments
-s

-noencrypt

Silent operation: suppresses any output by the program to STDOUT; when called
from a CGI application, this argument must be used, because the CGI standard
uses STDOUT to gather the response that HTTP will send to the client. Without
this parameter, the HTTP response would contain unwanted text, such as the
sign-on message generated by the program!
Dont encrypt the output file
This argument must only be used if the phone does not require a secret key
otherwise, it will not understand the configuration file!

Template A4, Version 1, 03.04.2012

Remarks
u In order to encrypt the configuration file, gigaset_profile_gen usually needs a secret key, which is
contained in a file named key. This file must be located in the same directory as the application.
The secret key must coincide with the one used in the phone. Therefore, the key file is customised
by Gigaset for the provisioner.
In certain closed network scenarios, the provisioner might desire to work with an unencrypted
configuration file. In this case, the phone has to be customised by Gigaset accordingly ("no secret
key"), and the argument -noencrypt shown above must be given when invoking the
gigaset_profile_gen application for building the file.
Note that for security reasons Gigaset recommends using encrypted configuration files only.
u To make sure that the XML_INPUT_FILE contains only configuration parameters the phone understands, the gigaset_profile_gen validates it against a fixed schema file (referred to inside the XML
file). This schema file is provided by the Gigaset. It must be located in the same directory as the
XML_INPUT_FILE.
If the validation fails, the application returns an error.
Return values
gigaset_profile_gen returns 0 on success. All other values indicate an error. Error messages are sent to
STDERR. In the case of errors, an empty OUTPUT_FILE is generated.

61

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server

File system structure


Usually, the configuration data for the VoIP phones is provided by Gigaset, taking a determined data
structure within the HTTP server file system into consideration.
If the primary URL is changed (e.g. via the DHCP option 114 or via SIP NOTIFY, page 24), the data
structure has to be stored at the HTTP server according to the new URL. When using an own provisioning server the data has to be provided by the provisioner itself.
The data structure is as follows:
Within the HTTP server file system the gigaset directory is created containing a subdirectory for each
device type. The numbers used as directory names correspond to the device or the device variant of
the Gigaset IP phones.
gigaset/41
42
60
61
62
63
70
71

41 = Gigaset DX800A
42 = Gigaset C610 IP/N300 (1), Gigaset N510 IP PRO (2)
60 = Gigaset DE900 IP PRO
61 = Gigaset DE700 IP PRO
62 = Gigaset DE410 IP PRO
63 = Gigaset DE310 IP PRO
70 = Gigaset N720 DM PRO
71 = Gigaset N720 IP PRO

For each device variant a master file (master.bin) is stored. In addition all files that are necessary for
the device, e.g. firmware, language files for the Web GUI, help files, texts for the handset UI, auto-provisioning links, are available.
Gigaset provides the provisioner, e.g. the PBX manufacturer, with the required data structure. The
auto-provisioning example application (ap script, gigaset_profile_gen, XML templates, etc.) is copied
to the subdirectories of the device variants.
Provisioning is automatically processed at the location where the example application is stored. This
is achieved with the use of wildcards for the server URL, MAC address, etc. in the auto-provisioning
URL.

Template A4, Version 1, 03.04.2012

Example for Gigaset N510 IP PRO:


gigaset/42/2/ cgi/shop/gigaset_profile_gen
cgi/shop/key
cgi/shop/merkur_mac_template.xml
cgi/shop/merkur_mac_template.xsd
cgi/ap
c_0811101406_eng.bin
c_0811101406_fre.bin
c_0811101406_ger.bin
...
d_default_de.bin
l_0811101406.bin
master.bin
pde_0811101406_eng.bin
pde_0811101406_fre.bin
pde_0811101406_ger.bin
...
u
u
u

62

The variant/provisioning ID is 42/2


The URL assigned using SIP NOTIFY is http://192.168.1.100/provsioning/gigaset
The data structure has to be stored within this directory.
The total path to the file master.bin is:
http://192.168.1.100/provsioning/gigaset/42/2/master.bin

Provisioning / en / A31008-M2212-R910-3-7643 / server.fm / 11.10.2012

Setting up an own provisioning server


u
u

This is used to load the auto-provisioning URL, e.g.


http://%DURL/%DVID/cgi/ap?mac=%MACD
The place holders are replaced in sequence:
%DURL="http://192.168.1.100/provsioning/gigaset"
%DVID="42/2"
%MACD=12:34:56:78:90:12

Template A4, Version 1, 03.04.2012

The VoIP phone then launches the complete auto-provisioning request:


http://192.168.1.100/provsioning/gigaset /42/2/cgi/ap?mac=12:34:56:78:90:12
Hence, the auto-provisioning request is processed at the correct location by means of wildcards without previously knowing the URLs of the auto-provisioning servers.
Of course, instead of using wildcards, you can also apply a fixed URL for the auto-provisioning server.
But for the first set-up the procedure described above is helpful.

63

Provisioning / en / A31008-M2212-R910-3-7643 / giga_provisSIX.fm / 11.10.2012

Index

Template A4, Version 1, 03.04.2012

Index
A
Access rights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Activation code
authentication . . . . . . . . . . . . . . . . . . . . . . . . . . 29
auto-provisioning method . . . . . . . . . . . . 29
format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
generating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Gigaset part . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
provisioner part . . . . . . . . . . . . . . . . . . . . . . . . 29
security hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Activation code provisioning
via provisioning package editor . . . . . . 48
ap script see auto-provisioning script
Apache HTTP server
configuration file . . . . . . . . . . . . . . . . . . . . . . . 48
directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
installing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
autoprov.checkDevice . . . . . . . . . . . . . . . . . . . . . 21
autoprov.checkDeviceList . . . . . . . . . . . . . . . . . 22
autoprov.deregisterDevice . . . . . . . . . . . . . . . . 18
autoprov.deregisterDeviceList . . . . . . . . . . . . 23
autoprov.listDevices. . . . . . . . . . . . . . . . . . . . . . . . 20
autoprov.listDevices, all . . . . . . . . . . . . . . . . . . . . 19
autoprov.registerDevice . . . . . . . . . . . . . . . . . . . 17
Auto-provisioning
template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
via activation code . . . . . . . . . . . . . . . . . . . . . 29
Auto-provisioning script . . . . . . . . . . . . . . . . . . . 54
example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MySQL connection . . . . . . . . . . . . . . . . . . . . . 58
Auto-provisioning via activation code
message flow . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Auto-provisioning via MAC address
message flow . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Auto-provisioning, definition . . . . . . . . . . . . . . . 4
Auto-provisoning script. . . . . . . . . . . . . . . . . 28, 32
C
Certificate
PEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CERTIFICATE parameter . . . . . . . . . . . . . . . . . . . .
check-sync . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
chmod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

64

37
38
38
34
53

Command
check-sync . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
chmod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Configuration file
Apache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
assign to provisioning package . . . . . . . 50
encryption key . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Configuration file editor . . . . . . . . . . . . . . . . . . . 39
editing parameters . . . . . . . . . . . . . . . . . . . . . 41
help information. . . . . . . . . . . . . . . . . . . . . . . . 42
starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Configuration update . . . . . . . . . . . . . . . . . . . . . . 34
D
Database, character format UTF-8 . . . . . . . . 60
DER format (Distinguished
Encoding Rules) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Deregistering
a list of devices . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Deregistering a device
via web UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
via XML-RPC call . . . . . . . . . . . . . . . . . . . . . . . . 18
Device
deregistering a list of . . . . . . . . . . . . . . . . . . . 23
listing all at a specific provider
registered . . . . . . . . . . . . . . . . . . . . . . . 20
listing all registered . . . . . . . . . . . . . . . . . . . . 19
listing all registered devices
at a specific provider . . . . . . . 21, 22
Device type
in configuration file editor. . . . . . . . . . . . . 40
in provisioning package editor . . . . . . . 50
DHCP option 114 . . . . . . . . . . . . . . . . . . . . . . . . . 7, 25
dhcp_url . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Directory
cgi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
gigaset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
HTTP server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
shop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
E
Editor
configuration file . . . . . . . . . . . . . . . . . . . . . . . 39
provisioning package . . . . . . . . . . . . . . . . . . 48
End-user, role in provisioning process . . . . . 6
EXTENDED_PROFILE parameter. . . . . . . . . . . 47

Provisioning / en / A31008-M2212-R910-3-7643 / giga_provisSIX.fm / 11.10.2012

Index

F
File system
preparing for installation . . . . . . . . . . . . . .
File system structure . . . . . . . . . . . . . . . . . . . . . . .
device variants . . . . . . . . . . . . . . . . . . . . . . . . . .
Files, provisioning . . . . . . . . . . . . . . . . . . . . . . . . . .
Firmware version
in configuration file editor . . . . . . . . . . . .
in provisioning package editor . . . . . . .
for XML configuration file. . . . . . . . . . . . . . . . . .

52
62
62
39
40
50
42

G
Gigaset
redirection server. . . . . . . . . . . . . . . . . . . . . . . . . 6
update server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
gigaset directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Gigaset wiki . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38, 43
gigaset_profile_gen
arguments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
installing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
link to shop directory . . . . . . . . . . . . . . . . . . 52
required libraries . . . . . . . . . . . . . . . . . . . . . . . 52
return values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Gigaset, role in provisioning process . . . . . . . 5
/gigaset/cgi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
/gigaset/cgi/shop . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Template A4, Version 1, 03.04.2012

H
HTTP Digest Authentication . . . . . . . . . . . . . . . 37
HTTP requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28, 32
I
Installation test . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installing
Apache HTTP server . . . . . . . . . . . . . . . . . . . .
gigaset_profile_gen . . . . . . . . . . . . . . . . . . .
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IP phone set-up
manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

60
48
52
48
11

K
Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
L
libc library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
libxml2 library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List devices
via web user interface . . . . . . . . . . . . . . . . .

52
52
52
14

M
MAC address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
MAC based provisioning
via provisioning package editor . . . . . . 48
MAC ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
MAC-based auto-provisioning . . . . . . . . . . . . 26
Main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 39, 49
main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Manual IP phone set-up . . . . . . . . . . . . . . . . . . . . 11
master.bin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
maxSub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
long form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
short form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Message flow
auto-provisioning via activation code 31
auto-provisioning via MAC address . . 31
MySQL
in ap script. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
P
Parameter
in configuration file editor. . . . . . . . . . . . . 41
state in configuration file editor . . . . . . 42
Part number
in configuration file editor. . . . . . . . . . . . . 40
in provisioning package editor . . . . . . . 50
PEM format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Perl script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Phone
variant ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28, 31
PHP
install. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Plain XML content . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
splitting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Provider, role in provisioning process . . . . . . 5
Provisioner, role in provisiong process . . . . . 5
Provisioning
activation code . . . . . . . . . . . . . . . . . . . . . . . . . 29
get URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28, 32
MAC-based . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Provisioning data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Provisioning files, XML . . . . . . . . . . . . . . . . . . . . . 39
Provisioning methods . . . . . . . . . . . . . . . . . . . . . . . . 7
Provisioning package . . . . . . . . . . . . . . . . . . . . . . 48
adding firmware . . . . . . . . . . . . . . . . . . . . . . . . 50
content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Provisioning package editor . . . . . . . . . . . . . . . 48
activation code provisioning . . . . . . . . . . 48
MAC based provisioning. . . . . . . . . . . . . . . 48
65

Provisioning / en / A31008-M2212-R910-3-7643 / giga_provisSIX.fm / 11.10.2012

Index

starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Provisioning server . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
customised . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Provisioning t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Provisioning tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
access data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
components . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
configuration file editor . . . . . . . . . . . . . . . 39
main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 39, 49
starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Provisioning, definition . . . . . . . . . . . . . . . . . . . . . . 4

Template A4, Version 1, 03.04.2012

R
Reboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
binary representation . . . . . . . . . . . . . . . . . . 35
XML representation . . . . . . . . . . . . . . . . . . . . 35
REBOOT parameter . . . . . . . . . . . . . . . . . . . . . . . . . 35
Redirection
web user interface. . . . . . . . . . . . . . . . . . . . . . 12
Redirection data
deregistering via web user interface . 13
Redirection data record
registering via web user interface . . . . 12
Redirection server . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Redirecton service . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Registering
via web user interface . . . . . . . . . . . . . . . . . 12
Roles, in provisioning process . . . . . . . . . . . . . . . 5
S
Schema file for XML template . . . . . . . . . . . . . 43
Secret key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Security
using activation code method . . . . . . . . 37
Security aspects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Server
provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
redirection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
SIP check-sync mechanism . . . . . . . . . . . . . . . . 34
SIP multicast mechanism . . . . . . . . . . . . . . . . 7, 24
SIP NOTIFY message. . . . . . . . . . . . . . . . . . . . . . . . 34
%SUBLIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Subscription list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
bit array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
maximum number of subscriptions . . 33

66

T
Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Template, auto-provisioning . . . . . . . . . . . . . . 53
TLS certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
U
Unicode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Update configuration . . . . . . . . . . . . . . . . . . . . . . 34
Update server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
URI format string . . . . . . . . . . . . . . . . . . . . . . . . . 28, 32
User account
for provisioner web UI . . . . . . . . . . . . . . . . . 12
for provisioning tool . . . . . . . . . . . . . . . . . . . 38
UTF-8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
V
VERSION parameter, in XML file . . . . . . . . . . . 46
W
Web user interface . . . . . . . . . . . . . . . . . . . . . . . . . . 12
for redirection data . . . . . . . . . . . . . . . . . . . . . 12
provisioning tool . . . . . . . . . . . . . . . . . . . . . . . 38
Wiki . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38, 43
X
X.509 certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
XML file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
content evaluation . . . . . . . . . . . . . . . . . . . . . 36
plain XML content . . . . . . . . . . . . . . . . . . . . . . 36
storing via configuration file editor . . 42
uploading directly . . . . . . . . . . . . . . . . . . . . . . 25
uploading vie web UI . . . . . . . . . . . . . . . . . . 14
XML FileUpload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
XML parameter
CERTIFICATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
EXTENDED_PROFILE . . . . . . . . . . . . . . . . . . . 47
REBOOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
XML schema file for template . . . . . . . . . . . . . 53
XML template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
XML-provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
plain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
with binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
XML-RPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Provisioning / en / A31008-M2212-R910-3-7643 / giga_provisSIX.fm / 11.10.2012

Index

21
22
18
23
20
19
17
17
43

Template A4, Version 1, 03.04.2012

XML-RPC command
autoprov.checkDevice . . . . . . . . . . . . . . . . .
autoprov.checkDeviceList . . . . . . . . . . . . .
autoprov.deregisterDevice . . . . . . . . . . . .
autoprov.deregisterDeviceList. . . . . . . .
autoprov.listDevices . . . . . . . . . . . . . . . . . . .
autoprov.listDevices, all . . . . . . . . . . . . . . .
autoprov.registerDevice . . . . . . . . . . . . . . .
XML-RPC commands . . . . . . . . . . . . . . . . . . . . . . .
XSD schema file . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

Template A4, Version 1, 03.04.2012

Provisioning / en / A31008-M2212-R910-3-7643 / cover_back.fm / 11.10.2012

A31008-M2212-R910-3-7643

You might also like