XML Configuration File Generator Windows User Guide PDF
XML Configuration File Generator Windows User Guide PDF
INTRODUCTION ............................................................................................................. 3
Page | 2
XML Configuration File Generator User Guide
(For Windows Users)
INTRODUCTION
All Grandstream SIP products support being provisioned by an XML configuration file which consists of
<Pxxxxx > tags (xxxxx is a number that can be 0-99999) known as P values. Every P value is mapped to a
configurable option of the device. By setting/changing the values of those P values, we can provision the
device with zero touch. This XML provisioning mechanism is beneficial to every GS customer since the very
beginning. To learn more about Grandstream SIP device provisioning, please refer GS SIP Device
Provisioning Guide.
Since there are thousands of P values for each product, and all required configurations come with a default
value, usually there is no need to set all the P values but only the ones to be customized in real usage.
Also, some users, especially resellers and VoIP providers, need to deploy a lot of devices by using the XML
files that only have different SIP credentials while all other settings such as network settings, call feature
settings, audio settings and etc are the same. Creating XML file one by one for each device is very time
consuming. This XML configuration file generator is designed to save time for these customers in this
situation.
The principle of this software is use a TXT format file to store all these “same” values of P values, and use
a CSV format file to store the “various” value of P values, and generate a batch of XML configuration files
from the two input files, with most identical settings having only a few fields different.
This user guide introduces how to use the windows-based XML configuration file generator to create XML
configuration files.
Page | 3
XML Configuration File Generator User Guide
(For Windows Users)
CHANGE LOG
Version 3.4
Added support for Grandstream new MAC OUI, now MAC address start with “C074AD” (not case sensitive)
will also be supported.
Version 3.3
Fixed bug that mistakenly escape \ sign into ', correct it to escape ‘ into '.
Version 3.2
Added Gateway and Subnet Mask setting in CSV file.
Version 3.1
Added IP address setting in CSV file.
Fixed encrypt xml file could crash because of some template have non-ascii string issue.
Version 3.0
Initial Version of 3.x, changed GUI frame work from windows 2.3.
Page | 4
XML Configuration File Generator User Guide
(For Windows Users)
FILES IN THE PACKAGE
After unzipping the software package, you will find all the files similar to below screenshot.
#############################################################################
#### Configuration Template Example for testing the converting tool ####
#############################################################################
#####################################################
## Example P values ##
#####################################################
# Account 1:
# Account Active. 0 - No, 1 - Yes. Default value is 0
# Number: 0, 1
P271 =
# Account Name
P270 =
# SIP Server
P47 =
# SIP User ID
P35 =
# SIP Authenticate ID
P36 =
Page | 5
XML Configuration File Generator User Guide
(For Windows Users)
# Name (Display Name, e.g., John Doe)
P3 =
# Account 2:
# Account Active. 0 - No, 1 - Yes. Default value is 0
# Number: 0, 1
P401 =
# Account Name
P417 =
# SIP Server
P402 =
# SIP User ID
P404 =
# SIP Authenticate ID
P405 =
### IP Address.
### Note: Please change Subnet mask, Gateway, DNS Servers to your network.
### GS_XML_Generator will only configure the IP address.
Page | 6
XML Configuration File Generator User Guide
(For Windows Users)
P22=
P23=
P24=
There are some regulations for the txt config template file:
3. The SIP account 1 and account 2 related P values in template will be replaced with the value in the
CSV file and all other values will use the same ones in template. For example, if we set SIP server
P47 = Grandstream.com in the template, all the XML files will be <P47>Grandstream.com</P47>.
MS Office Excel:
Notepad++
Page | 7
XML Configuration File Generator User Guide
(For Windows Users)
There are some regulations for the CSV file:
1. The first line of the CSV must not be changed. This applies to the content as well as the order.
2. The MAC address is used for identifying each XML files. Therefore, the value of MAC address in
CSV file cannot be duplicated or blank. Duplicated MAC address will cause an error and stop the
process; a blank MAC address will cause a warning and bypass the line to keep processing.
3. The MAC address must start with 000b82 or 000B82 which means it is a Grandstream product.
4. Other than MAC address, all other settings in CSV file are optional and can be left blank.
Page | 8
XML Configuration File Generator User Guide
(For Windows Users)
USE THE XML CONFIGURATION GENERATOR
Familiar with Program GUI
Menu
Status Bar, to
display any errors
General Settings
Use manual
settings to
generate XML
(Recommend for
single or just a few
devices, only
support 1 SIP
account without
Static IP setting)
Page | 9
XML Configuration File Generator User Guide
(For Windows Users)
Program Menu
Program menu provide 2 functions allow user to change the XML header text and reset all the field to make
this tool more helpful for general users. You can use the help menu to access the user manual online.
Menu Description
Default XML header is “Grandstream XML Provisioning Configuration”, you
Set XML Header
can change the file header to others. Shortcut is Ctrl + S.
Reset All Fields Click to clear all the input on the program GUI. Shortcut is Ctrl + R.
General Settings
You can use this tool to generate XML configuration either by CSV file or manual setting each time. For
both method, user must configure this General Settings section. User must choose the configuration
template which is a TXT file, and the output path. User can optional choose to encrypt the XML file or not.
Any pre-check error will display in the Status Bar.
P a g e | 10
XML Configuration File Generator User Guide
(For Windows Users)
General Settings Description
Click “Browse” button to choose the TXT template you want to use. You can
download all the P values from Grandstream Support page and add more P
Configuration value to the template. Only SIP account 1, account 2 and IP address will be
Template change to the ones in CSV files or manual setting, all others will use the
same value in your template, this can be used to deploy a lot of devices that
only have SIP account vary but all other codec, call features are the same.
Output Path Click “Browse” button to choose the output path of your XML files.
Encrypt XML Check this option if you want to encrypt your XML files.
If you checked “Encrypt XML” option, you can enter the password here. The
password cannot be null and should only contains ASCII characters between
33 to 126. If you choose to encrypt the XML files, make sure your devices
Password
have pre-configured P1359 with the same value of this password. When the
device tries to be provisioned by the XML file, it will use P1359 to decrypt
the XML file. More detailed please refer GS Provisioning Guide.
P a g e | 11
XML Configuration File Generator User Guide
(For Windows Users)
Find XML Click this button will open the directory of your configured XML Output path.
If you select “Sequential MAC Address”, you will need set the starting address and units (how many device
you have) and if the MAC address is increment by 2 (by default is increment by 1).
If you select “Listing MAC address”, you will need emulate all the MAC address in the text field, break them
by changing lines, must have no break signs like , ; : “ ” between the MAC address but just change the lines.
The MAC address is not capital sensitive.
Click the “Run with Settings as Input” will start to generate the XML files, after completed, you will see a
message box with either success info or error info. Any pre-check error will display in the Status Bar. You
can click the “Find XML” file to open the Output Path you configured in the General Settings.
Use Manual
Description
Settings
Starting Address Select “Sequential MAC address” will use this
Sequential MAC sequential MAC address settings. Will generate
Address XML files by the 4 SIP User ID/Authenticate ID
fields. All the P values will keep as the same as in
P a g e | 12
XML Configuration File Generator User Guide
(For Windows Users)
the TXT file.
P a g e | 13
XML Configuration File Generator User Guide
(For Windows Users)
Troubleshooting
The Status bar will indicate all the errors you might meet. Please fix the error and retry.
There might be some critical error will prompt a message box. Please fix the error it prompt.
If you meet any program Exception Errors, you may contact our helpdesk or support engineer for more help.
P a g e | 14
XML Configuration File Generator User Guide
(For Windows Users)