Nortel Meridian Meridian 1 Scripting Manual page 257

Contact center manager
Hide thumbs Also See for Meridian Meridian 1:
Table of Contents

Advertisement

October 2007
READVAR wild2_wv
SAVEVAR
END IF
/* All incoming calls hit this portion of the script to check the
variable state */
READVAR wild2_wv
SAVEVAR
IF wild2_wv = 1 THEN /* If emergency state is enabled */
GIVE RAN emerg_ran
DISCONNECT
END IF
QUEUE TO SKILLSET sales_sk
WAIT 2
QUIT
As you can see in the preceding example, every call checks the value of the wild
variable to validate the emergency state. If the state is true, then the script plays
the emergency RAN message and disconnects the call.
Example 4
If the call enters the READVAR portion of the script, you cannot use the variable
in any other form (for example, as a call variable) unless the script has an
ASSIGN TO statement, as shown in this example.
IF DNIS = emergency_act_num THEN
/* Calls who sets the emergency state */
READVAR wild2_wv
Scripting Guide for Communication Server 1000/Meridian 1 PBX
IF wild2_cv = 0 THEN
ASSIGN 1 TO wild2_wv /* emergency is activated */
ELSE
ASSIGN 0 TO wild2_wv /* emergency is deactivated */
END IF
IF wild2_wv = 0 THEN
ASSIGN 1 TO wild2_wv /* emergency is activated */
ELSE
Advanced script commands
257

Advertisement

Table of Contents
loading

Table of Contents