BusinessPhone Communication Platform 6.0
Dialogs

## Sessions - Select script

Frequently used configuration tasks can be managed by using sessions. A session is a script of programming commands that are executed automatically when you start a session.

BMS knows two different types of sessions:

- System sessions

- These sessions are part of BMS and therefore cannot be modified.

- User defined sessions

- If you want to use your own scripts, you must create and save a user-defined session first. When you need to perform a configuration task in the future, your script will always be available.

To access the dialog, open the last menu in the Configuration directory tree, click on the last menu item “+” and then click on the "Sessions" submenu. The Select Script dialog opens, consisting of two tables: a list of all system sessions and a separate list showing all defined user scripts.

The tables show the following information and actions for each session:

- Run

- Click on this link to start a session.

- Script-Name

- The name of the script file.

- Description

- A brief description of the session.

- View

- Link for viewing the source code of the session.

####

System Session Files |  | To export (download) a system session |
User Session Files |  | To export or import (download or upload) user defined session file |

Actions:

### Running a session

- Click on the Run link of a session. This will start the session automatically.
- A new window is displayed, showing the details of the running script.
- If you need to enter some information - e.g. an extension directory number -, an edit box and a list box will be displayed. You can either enter or select the required input.
- Click on the Submit button to resume the session.
- If the configured data should be copied to other objects (e.g. extensions, trunks), a Copy dialog will open, listing the directory numbers of all available objects.
- Select the respective objects and click on the Submit button to resume the session.

### Source code

- If you want to view the source code of a session, just click on the respective session’s view link. A new dialog will be displayed showing the session code in detail.
- Click the Back button to return to the Select Script dialog.

### Creating a session

BMS allows you to write and install your own sessions.

Note

Only user session files can be installed. The system sessions are part of BMS and therefore cannot be modified.
There is no macro recorder for creating sessions.

A session is created as a plain text file, using the BMS script language. For more information about the script language, see section BMS Script Language in this document.

The text file can be created with any text editor like Notepad or WordPad. If you use a word processing program like MS Word, do not forget to save your file in plain text format.

After the file has been created, you can upload (import) it into BMS, see section Importing a user session. If the upload has been successful, the new session will be shown in the session list of the main dialog.

Revision: B © Ericsson Enterprise 2004