In this section: |
It is now possible to obtain and work with system information. This section describes the _sysinfo() and _chaninfo() functions.
The _sysinfo() function returns information about the current server. This function uses the following format:
_sysinfo(type)
type | keyword | The type of information that is to be obtained. Possible values include:
|
The _chaninfo() function returns information about the specified channel. If the specified channel does not exist, an exception is generated when the function is evaluated. This function uses the following format:
_chaninfo(name, [,type])
where:
string
Is the name of the channel. If an asterisk (*) is specified, the current channel in which the function is running will be evaluated.
keyword
Is the type of information that is to be obtained. Possible values include:
The _chaninfo() function can also be run in a script. For example:
if(_chaninfo('ch1','state')='active',stop ch1)
iWay Software |