3

我正在 Asterisk 中开发一个示例 IVR 系统,它在接收和应答来电时播放语音​​文件。我想知道是否可以编写拨号计划代码或 shell 脚本,在播放语音文件时记录消息(同时播放和录制)。

我提前感谢您的帮助。

4

1 回答 1

2

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:

http://www.voip-info.org/wiki/view/Asterisk+cmd+Monitor

http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback

于 2013-08-21T13:55:38.750 回答