14.12.2012 Views

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Alarm management 595<br />

Defining devices in Devices.txt<br />

Scripts<br />

Operators<br />

Notifications<br />

Conditional expressions<br />

Rules<br />

Comments<br />

Functions<br />

The syntax is described in the following sections. Consult the online Help for specific<br />

examples of scripting syntax.<br />

The indentations in the examples presented in this section facilitate reading the script<br />

and do not affect how the script is interpreted by the application.<br />

Variable types<br />

The scripting language supports three variable types: counter, timer, and string. The<br />

names of these variables must begin with an alpha character and may be of any length<br />

Variables are case sensitive.<br />

Counter<br />

Counters contain signed integer values. You may assign values to counters when you<br />

define them, and you may include multiple variables of the same data type in the same<br />

statement. Counters can be global to a script or local to a function.<br />

Syntax:<br />

counter variable_name:=0;<br />

Example:<br />

counter n;<br />

n:=n+1;<br />

if(n=5)<br />

{<br />

.../*Send notification*/<br />

}<br />

<strong>Optivity</strong> <strong>Telephony</strong> <strong>Manager</strong> <strong>System</strong> <strong>Administration</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!