Previous Topic: CLEAR CommandNext Topic: GETCHANNELNUM Command


GETCHANNEL Command

The GETCHANNEL command retrieves an available voice channel and marks it as in-use and performs these additional channel management tasks:

Use the GETCHANNEL command with the RELEASECHANNEL command to serialize a voice channel's I/O activity.

This command has the following format:

ADDRESS VOX "GETCHANNEL {GROUP(groupname|ALL) | CHANNELNUM(channelnum)}
  [SYSTEM(sysname)]
  [TIMEOUT(waittime|0|-1)]
  [PREFIX(varname)]
  [CMDRESP(destination)]"
GROUP

Specifies the name of the group from which to retrieve an available voice channel and assign a channel handle. (This is the most common method for retrieving a channel.)

Specifying ALL enables the GETCHANNEL command to search all groups for an available channel.

CHANNELNUM

Specifies the number of a specific, physical channel number to use.

Valid values range from 1 through the number of lines installed.

SYSTEM

(Optional) Specifies the name of the system running the notification server to which you want to direct the command.

The sysname value can contain up to eight alphanumeric characters.

Default: The local system name

TIMEOUT

(Optional) Specifies the maximum amount of time to wait for a channel to become available (in 1/10-second units). Or, you can specify 0 (zero) to return immediately if a channel is not available or -1 to wait indefinitely.

If you specify a TIMEOUT value, CA Automation Point queues and services requests for an unavailable channel in the order you requested.

Default: 0

PREFIX

(Optional) Specifies the name of the REXX stem variable (other than the default name) that contains the return information for the command.

For information about changing the default variable name, see ADDRESS VOX Return Information in this chapter.

Default: VOX.GETCHANNEL

CMDRESP

(Optional) Directs return information to a specific destination. For a list of valid destination values, see ADDRESS VOX Return Information in this chapter.

Default: REXX

Return Information:

After the GETCHANNEL command executes, it sets the special REXX return code variable RC.

Usage Notes:

Examples: