0

我在使用 php-agi 的 php 脚本中使用星号。我需要做的是向呼叫者播放无线电流,该流来自动态 url(它可以由线路的所有者更改)。我试试 MOH(不太好)。我尝试使用 MP3Player$agi-exec("MP3Player", $streamUrl);但我收到此错误“sh: 1: MP3Player: not found”

我使用星号 1.6

有没有人有解决这个问题的方法?

4

1 回答 1

0

AGI exec 命令将运行从未创建过的 MP3Plyaer asterisk COMMAND。您应该使用 EAGI 脚本或将 moh 类与流一起使用。

https://www.voip-info.org/asterisk-eagi/

https://www.voip-info.org/asterisk-config-musiconholdconf/#StreamradiousingMPlayerforMOH

于 2020-06-12T11:31:23.020 回答