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)]"
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.
Specifies the number of a specific, physical channel number to use.
Valid values range from 1 through the number of lines installed.
(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
(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
(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
(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:
/* Get exclusive access a specific voice channel. */
address vox 'getchannel channelnum(1) prefix(handle)'
...
/* Perform voice processing using the voice channel. */
...
/* Release the voice channel when processing is completed. */
address vox 'releasechannel channel('handle')'
/* Get exclusive access to the first available voice channel. */
address vox 'getchannel group(all) prefix(handle)'
...
/* Perform voice processing using the voice channel. */
...
/* Release the voice channel when processing is completed. */
address vox 'releasechannel channel('handle')'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|