Asterisk 在记录命令末尾按下GotoIf哈希键

Asterisk 在记录命令末尾按下GotoIf哈希键,asterisk,Asterisk,我们要求来电者记录他们的姓名,然后按哈希键#。如果按下了散列键,他们应该进入下一步,否则返回并要求他们再次记录姓名 exten => s,n(RecordName), Playback(Please Record Your Name After Beeb then press '#') exten => s,n,Record(recordpath/namefile.wav,60) exten => s,n,GotoIf ('# isn't pressed')?RecordNam

我们要求来电者记录他们的姓名,然后按哈希键
#
。如果按下了散列键,他们应该进入下一步,否则返回并要求他们再次记录姓名

exten => s,n(RecordName), Playback(Please Record Your Name After Beeb then press '#')
exten => s,n,Record(recordpath/namefile.wav,60)
exten => s,n,GotoIf ('# isn't pressed')?RecordName)

有没有办法检测在
记录
命令末尾是否按下了
#

请查看记录命令的文档

它清楚地说明了它在#键上设置了哪些变量


我可以直接使用${RECORD\u STATUS}的值吗(即,.
GotoIf(${RECORD\u STATUS}=DTMF?specificCMD)
这里不适用结束原因“除非它们直接涉及编程或编程工具”,因为这个问题直接涉及编程语言(星号扩展脚本是某种扭曲的基本脚本)
pro-sip*CLI> core show application Record 

  -= Info about application 'Record' =- 

[Synopsis]
Record to a file. 

[Description]
If filename contains '%d', these characters will be replaced with a number
incremented by one each time the file is recorded. Use 'core show file formats'
to see the available formats on your system User can press '#' to terminate
the recording and continue to the next priority. If the user hangs up during
a recording, all data will be lost and the application will terminate.
${RECORDED_FILE}: Will be set to the final filename of the recording.
${RECORD_STATUS}: This is the final status of the command
    DTMF:A terminating DTMF was received ('#' or '*', depending upon
    option 't')
    SILENCE:The maximum silence occurred in the recording.
    SKIP:The line was not yet answered and the 's' option was specified.
    TIMEOUT:The maximum length was reached.
    HANGUP:The channel was hung up.
    ERROR:An unrecoverable error occurred, which resulted in a WARNING
    to the logs.

[Syntax]
Record(filename.format[,silence[,maxduration[,options]]])

[Arguments]
format
    Is the format of the file type to be recorded (wav, gsm, etc).
silence
    Is the number of seconds of silence to allow before returning.
maxduration
    Is the maximum recording duration in seconds. If missing or 0 there
    is no maximum.
options
    a: Append to existing recording rather than replacing.

    n: Do not answer, but record anyway if line not yet answered.

    q: quiet (do not play a beep tone).

    s: skip recording if the line is not yet answered.

    t: use alternate '*' terminator key (DTMF) instead of default '#'

    x: Ignore all terminator keys (DTMF) and keep recording until hangup.

    k: Keep recorded file upon hangup.

    y: Terminate recording if *any* DTMF digit is received.


[See Also]
Not available