Skip to main content

Bulk Creation of Accounts

CSV (comma-separated values) files can expedite the bulk creation of all types of accounts, as well as the domain address book. A CSV file is a plain text file that stores tabular data from database-style tools, such as Excel. Records appear on separate lines, and the fields within each record are traditionally separated by commas (or semicolons).

Creating New Extensions

A simple way to create new extensions is to list them in the format shown in the bulk import dialog on the extension list web page in the domain. The list contains the account name, the first name, the last name, the position, the cell phone number, the email address, the MAC address for the extension, the PIN, the SIP and the web password. After pasting the CSV into the dialog, the web front end will generate an approximate preview of the import for validation purposes before the actual import begins. After pressing the Create button, the system will import those accounts. httpsdocvodiacomsitesdefaultfilesinline-imagesimport11.png The list of parameters that can be set during the import is not limited to the parameters above. If the first line starts with a #, the system will read this line as the parameter line name. The default for this line is #alias;first_name;last_name;position;cell;email;mac;mb_pin;web_pass;password but it can contains other parameters as well.

If the account already exists, the system will overwrite the parameters for that account. For example, the mb_size field of the extension can be set with the following CSV:

#alias;mb_size
40;100
41;10

It is also possible to generate other account types. For this the column type needs to be set for every record.

Importing From File

Instead of pasting a CSV file, accounts can also be generated from files. These files can be files in the above format, however they can also be files exported from other systems. The web front-end will attempt to convert those files into a format that can be understood by the PBX back-end. Currently the import can read the following formats:

  • 3CX. The backup for a 3CX system contains a XML file that can be used when creating a new domain. The PBX will detect was extensions were configured on the 3CX system and converts the names, numbers, email-addresses and the associated MAC addresses for the extension from the file.
  • Asterisk. The PBX can ready the .conf-file from Asterisk-based systems and extract the extension names and numbers from it.

Extension Parameters

Following is a list of parameters that are part of the extension account. When creating CSV files, the only fields required are alias and type. Parameters can be added or removed based on need, and not every extension will necessarily have a value for every parameter you’ve included. In those cases, be sure to retain the comma (,) for that field so that the number of values in each line correlates with the number of parameters in the top line. For example, the first line below shows a missing ANI, and the line following it shows two commas to make provision for this missing field.

#type,alias,ani,password,web_pass,first_name,display_name,mb_pin,email_address,mac
extensions,651,,1234,1234,Carl,Clever,1234,cc@abc.com,000BBBCCCDDDE
ParameterDefinitionValue
typeAccount typeextensions
aliasExtension number651
ANIOutgoing numberNA (hence blank)
passwordSIP password1234
web_passWeb (interface) password1234
first_nameUser’s first nameJohn
display_nameUser’s last nameSmith
mb_pinUser’s PIN1234
email_addressUser’s mail addresscc@abc.com
macUser’sMAC IP address000412654788

Sample Syntax

#type,alias,ani,password,web_pass,first_name,display_name,mb_pin,email_address,mac
extensions,650,9786501234,1234,1234,Fred,Feuerstein,1234,ff@abc.com,000BBBCCCDDDD
extensions,651,9786511234,1234,1234,Carl,Clever,1234,cc@abc.com,000BBBCCCDDDE

Agent Group Parameters

The parameters for the agent group are as follows (only type and alias are required).

ParameterDefinitionValue
typeAccount typeACDs
aliasExtension number of the agent group663
all_agentsExtension numbers of the agents41 42 43
gap_timeThe # of seconds that system should wait between each announcement15

Sample Syntax

#type,alias,all_agents,gap_time
acds,663,40 41 42,15
acds,664,40 41 42,15

Hunt Group Parameters

The parameters for the hunt group are as follows (only type and alias are required).

ParameterDefinitionValue
typeAccount typeHunts
aliasNumber of the hunt group account74
displayDisplay name for the hunt grouphunt_74
st1_extExtensions that will be part of stage140 41
st1_durNumber of seconds the system should ring stage110
st2_extExtensions that will be part of stage243 45
st2_durNumber of seconds the system should ring stage215
st3_ext(for unwanted stages leave empty)-
st4_extExtension or phone number for the final stage70

###Sample Syntax

#type,alias,display,st1_ext,st1_dur,st2_ext,st2_dur,st3_ext,st4_ext  
Hunts,74,hunt_74,140 41,110,243 45,215,,70

Conference Account Parameters

The parameters for the conference account are as follows (only type and alias are required).

ParameterDefinitionValue
typeAccount typeconferences
aliasThe account number of the conference account75
lengthNumber of digits that are required for the participant's access codeDigits 4-9
nameName assigned to the conference accountSupport
pinModerator's access code123456
typeThe type of conference accountAd-hoc conference or Scheduled conference

Sample Syntax

#type,alias,name,intro,pin,upin
conferences,701,Conference Room,tone,123456,000000

Paging Parameters

The parameters for the paging account are as follows (only type and alias are required).

ParameterDefinitionValue
typeAccount typehoots
aliasExtension number of the paging group account74
displayDisplay name for the paging groupFirst floor multicast
extThe extensions that are part of this paging group401 401 403 404 406
permThe extensions that are permitted to place pages from this account404 405 406 480
ipThe multicast IP address assigned to this paging account224.0.0.1:5000
modeThe paging mode assigned to this paging accountunicast multicast
permThe extensions that are permitted to place pages from this account404 405 406 480
recordDetermines which mode the page will be placed: either in live playback (false) or play recorded message (true) modefalse or true

Sample Syntax

#type,alias,display,ext,perm,ip,mode,record
hoots,705,Paging Station,400 401 402 403 404 405 406 407 408 409,*,224.1.1.2:4000,multicast,*,false

Service Flag Parameters

The parameters for the service flag are as follows (only type and alias are required).

ParameterDefinitionValue
typeAccount typesrvflags
aliasAccount number of the service flag account74
displayUse this field to name the service flag.9 to 5
modeThis field is used to indicate which type of service flag should be usedAutomatic, Day/Night
allow_extEnter the extensions that are allowed to change the status of the service flag; separate the extensions by a space405 406 480
monThis field is used to indicate the times when the service flag should be inactive for Monday9:00-12:00 13:00-17:00
tueThis field is used to indicate the times when the service flag should be inactive for Tuesday9:00-12:00 13:00-17:00
wedThis field is used to indicate the times when the service flag should be inactive for Wednesday9:00-12:00 13:00-17:00
thuThis field is used to indicate the times when the service flag should be inactive for Thursday9:00-12:00 13:00-17:00
friThis field is used to indicate the times when the service flag should be inactive for Friday9:00-12:00 13:00-17:00
satThis field is used to indicate the times when the service flag should be inactive for Saturday9:00-12:00 13:00-17:00
sunThis field is used to indicate the times when the service flag should be inactive for Sunday9:00-12:00 13:00-17:00
holidayThis field is used to indicate the holidays on which the service flag should be active12/24 12/25 1/1

Sample Syntax

#type,alias,display,mode,allow_ext,mon,tue,wed,thu,fri,sat,sun,holiday
srvflags,74,Night Service Flag,automatic,404 405 480,9:00-12:00 13:00-17:00,9:00-12:00 13:00-17:00,9:00-12:00 13:00-17:00,9:00-12:00 13:00-17:00,9:00-12:00 13:00-17:00,,,12/24 12/25 1/1

Address Book Creation Using CSV

The CSV import for address book creation is shown below: csv21.png The parameters for the domain address book are as follows. These parameters allow you to create domain address books with multiple entries. The required fields are first name, last name, and number, and the format must be as follows: first;name;number (use a semicolon as the field separator).You have to copy paste the addressbook parameter lines you want in the above format and paste it in the file name. If there are multiple entries, copy all at once and paste.

Parameter Definition Value first Last name Smith name First name Fred

number Phone number: The following characters are ignored by the system (although it is permissible to use these characters, they will not appear in the address book):

  • -(hyphen)
  • ,(comma)
  • (space)
  • /(backslash)
  • .(period)

(The plus +sign is permitted when entering global numbers, e.g. +49 (30) 386-1234 or +1 (978) 543 654.

speed Speed dial numbers cannot overlap with numbers that are in use as star codes.*12 cmc Client matter code 8501 cell Cell phone number(617) 399 8147

Sample Address Book Syntax

Cynthia;Smith;9781234567
Bob;Pine;6171234567;*33
Cathy;Chere;9781234567;*34;443322;9782233432
Pat;Rushetta;9781234567;*34;;9784444333