Asterisk:Playback 和 Background

asterisk 上面通常使用 PlaybackBackground 來播放錄音。ide

這兩命令的官方描述以下:this

Playback : Play a sound and/or video file.code

Background : Play a sound file while awaiting extension.orm

它們的區別以下:ip

Playback will play the whole sound file(s), and when complete, return control. Compare with the Background command, which plays a sound file but returns control immediately, allowing Asterisk to perform other commands on this channel while the sound file is playing.get

Playback 播放錄音文件的時候,只在播放完成以後,才返回控制權。好比,你打 10086 客服電話,當聽到一段錄音,你想按鍵跳過該段錄音,但發現跳不過去的時候,就應該是用這個東東干的了。cmd

Background 就不同,在播放錄音的時候,你能夠按任意鍵跳過當前的錄音。it


參考資料:
http://www.voip-info.org/wiki...
http://www.voip-info.org/wiki...
https://freeswitch.org/conflu...io

相關文章
相關標籤/搜索