我正在 Asterisk 中开发一个示例 IVR 系统,它在接收和应答来电时播放语音文件。我想知道是否可以编写拨号计划代码或 shell 脚本,在播放语音文件时记录消息(同时播放和录制)。
我提前感谢您的帮助。
Yes, it is. I do it all the time, in fact. Your code would look something like:
exten => 100,1,Answer
same => n,Wait(1)
same => n,Monitor(wav,myfilename)
same => n,Playback(this-call-may-be-monitored-or-recorded)
same => n,Playback(pls-wait-connect-call)
For further reading, see: