太久远了,我现在回复可以太迟了。
app read 就可以。
Read(variablefilename&filename2[&...],maxdigits,options,attempts,timeout)
Arguments
variable - The input digits will be stored in the given variable name.
filenames
filename - file(s) to play before reading digits or tone with option i
filename2
maxdigits - Maximum acceptable number of digits. Stops reading after maxdigits have been entered (without requiring the user to
press the # key).
Defaults to 0 - no limit - wait for the user press the # key. Any value below 0 means the same. Max accepted value is 255.
options
s - to return immediately if the line is not up.
i - to play filename as an indication tone from your indications.conf.
n - to read digits even if the line is not up.
attempts - If greater than 1, that many attempts will be made in the event no data is entered.
timeout - The number