Previous Topic: Utility CommandsNext Topic: SETENGINE Command


GETTAPIDEVICELIST Command

The GETTAPIDEVICELIST command lists all the Telephony Application Programming Interface (TAPI) devices that are installed under Windows on the Notification Server.

This command has the following format:

ADDRESS VOX "GETTAPIDEVICELIST 
  [PREFIX(varname)]
  [CMDRESP(destination)]
  [SYSTEM(sysname)]"
PREFIX

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

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

Default: VOX.GETTAPIDEVICELIST

CMDRESP

(Optional) Directs return information, if any, to a specific destination. For a list of valid destination values, see the ANSWER command.

Default: REXX

SYSTEM

(Optional) Specifies the name of the system that is 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.

Return Information:

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

Example:

The following example returns all the devices in a stem variable and issues a SAY statement:

/* Display available TAPI device on AP Notification server using GETTAPIDEVICELIST */
address VOX "GETTAPIDEVICELIST"
if rc = 0 then
do
  if datatype (VOX.GETTAPIDEVICELIST.0) = "NUM" then
  do 
   do i = 1 to VOX.GETTAPIDEVICELIST.0
     say VOX.GETTAPIDEVICELIST.i
    
   end
  end
end
else
do
   say vox.error
end

return