Synopsis:
num_items=SMdetected(vox_chan[,type])
Arguments:
vox_chan – The voice channel
type – Set to 0 to return the number of DTMF digits, 1 to return the number of other recognition events detected.
Description: This function allows for the number of DTMF (if type=0) or other recognition events (if type=1) that have been received on the specified vox_chan.
Returns: Returns the number of detected items in the appropriate channel buffer depending on the type argument, else returns -1 if an invalid channel was specified.