我试图让用户能够录制消息、挂断电话、继续通话、拨打队列并播放录音。
我已经完成了大部分工作,但是现在当我拨打Queue()
h 分机时,它会立即挂断(队列成员确实接到了大约 1 毫秒的电话)。虽然我正在使用选项c
我的拨号方案(为简洁起见)
[standard-gn-helpdesk-corona-afterhours]
; Hangup Extension
exten => h,1, NoOp(hangup standard-gn-helpdesk-corona-afterhours)
same => n, Gosub(sub-queue-gn-afterhours,s,1)
same => n, Return()
exten => s,1, NoOp(standard-gn-helpdesk-corona-afterhours)
same => n, Record(gn_ah_recording%d:ulaw)
same => n, Hangup()
; Callee has hungup by this point. `h` should be executed
[playback-recorded-message]
exten => s,1, NoOp(playback-recorded-message)
same => n, Playback(${RECORDED_FILE})
[sub-queue-gn-afterhours]
exten => s,1,NoOp(sub-queue-gn-afterhours)
; Has the `c` option which allows the queue to continue when callee hangs
same => n,Queue(GNAfterHours1,tkc,,,540,,,playback-recorded-message)
same => n,Return()
任何的意见都将会有帮助。我会被迫使用Dial()
该F
选项吗?