在同一行执行多个命令 - 星号
我的拨号计划中有一个上下文,它将控制(暂时)传递给 bash 脚本。该脚本执行一些处理,大约需要 5 秒。在此期间,电话线上一片寂静。对于基于电话的应用程序来说,如此长时间的沉默是严格禁止的。
如何在程序执行时让音乐(或其他文件)在后台播放?
我查看了 Background
,这似乎不是答案。非常欢迎任何帮助。
I have a context in my dialplan which passes control (temporarily) to a bash
script. This script does some processing which takes about 5 seconds. During this time, there is total silence on the telephone line. For telephony based applications, such long periods of silence is a strict no-no.
How can I get music (or some other file) to play in the background while the program is executing?
I took a look at Background
and that does not seem to be the answer. Any help is most welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在调用 system() 之前,先调用 MusicOnHold(),如下所示:
BEFORE you call system(), call MusicOnHold(), so like: