Synopsis:
chan_state=SMstate(vox_chan)
Arguments:
vox_chan – The voice channel
Description: This function returns the blocking speech function type currently running on the specified vox_chan or 0 if the channel is idle. If the channel is currently running a blocking speech function then the chan_state returned by the function will be one of the following as defined in the ACULAB.INC file:
const MTF_PLAY = 1;
const MTF_RECORD = 2;
const MTF_WAITTONE = 3;
const MTF_PLAYTONE = 4;
const MTF_PLAYDIGITS = 5;
const MTF_PLAYCPTONE = 6;
const MTF_WAITRECOG = 7;
const MTF_PLAYIPF = 8;
This function can be used to determine whether a speech function has completed on a channel and is used in particular in non-blocking mode (see SMmode()).
Returns: Returns the channel state or -1 if a bad channel was specified