The stem variable varname that you specify on the VAR operand contains your group definition information.
The value in the varname.0 variable contains the number of groups that you want to define. Variables varname.1 through varname.n each contain a line of formatted information necessary to define one channel group.
The line of information containing a group definition is divided into several fields, as shown:
|
Field |
Description |
|---|---|
|
1 |
The group name (of up to eight characters) that you want to assign. Note: The group name ALL is a reserved name that includes all channels on a given notification server. You cannot change this name. |
|
2 |
If the ANSWER command is waiting for incoming calls on the group, the value in this field specifies whether another REXX program can interrupt the ANSWER operation and retrieve one of the group's channels. Valid values are:
|
|
3 |
The type of SETGROUP operation that you want to perform. Valid values are:
|
|
4 |
The number of channels that you want this group to contain. Valid values range from 1 through the number of lines installed. |
|
5 |
The first physical voice channel number to associate with the group. |
|
6 |
The second physical voice channel number to associate with the group. |
|
n |
The nth physical voice channel number to associate with the group (specified in field 4). |
Return Information:
After the SETGROUP command executes, it sets the special REXX return code variable RC.
Example:
Suppose that you want to define one new channel group-for use by your technical support department-with these characteristics:
Assume that you have specified the variable MYVARGRP to contain the group definition information. The variable MYVARGRP.0 contains a value of 1 and the group definition in variable MYVARGRP.1 looks like this:
SUPPORT NO ADD 4 03 04 05 06
The following REXX code illustrates how to use the SETGROUP command to create a new channel group:
/* Get a list of the available voice channels */ /* on the New York office's notification server. */ address vox 'getgroup group(all) system(nyengine)' if RC == 0 then do parse var vox.getgroup.1 name interrupt numchannels channelsingroup /* Define a new channel group to contain */ /* all available channels. */ newgroup.0 = 1 newgroup.1 = "NEWGROUP" || " " || interrupt || " " || "set " || numchannels || " " || channelsingroup /* Create the new group on the New York office's notification server.*/ address vox 'setgroup var(newgroup.) system(nyengine)' ... end
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|