Asterisk 无法将SIGHUP发送到AGI进程

Asterisk 无法将SIGHUP发送到AGI进程,asterisk,agi,Asterisk,Agi,对不起,我英语不好 我正在使用星号11.19.0。我犯了一个错误,无法识别 向AGI进程发送SIGHUP。我不知道怎么解决这个问题 错误 etc/asterisk/extensions.conf中的扩展名文件如下所示 [demo] exten => 2600,1,Answer() same => n,Wait(2) same => n,AGI(hello.sh) same => n,Wait(2) same => n,Hangup() #!/bin/bash ec

对不起,我英语不好

我正在使用星号11.19.0。我犯了一个错误,无法识别

向AGI进程发送SIGHUP。我不知道怎么解决这个问题

错误

etc/asterisk/extensions.conf中的扩展名文件如下所示

[demo]
exten => 2600,1,Answer()
same => n,Wait(2)
same => n,AGI(hello.sh)
same => n,Wait(2)
same => n,Hangup()
#!/bin/bash
echo "STREAM \"hello-world\" " 
我在/var/lib/asterisk/agi-bin/hello.sh中的hello.sh文件看起来像

[demo]
exten => 2600,1,Answer()
same => n,Wait(2)
same => n,AGI(hello.sh)
same => n,Wait(2)
same => n,Hangup()
#!/bin/bash
echo "STREAM \"hello-world\" " 

谢谢

完整的错误消息是什么样子的?脚本运行吗?@miken32:非常感谢。我解决了这个问题。我还有一个疑问。播放gsm/音频文件的正确命令是什么?。我尝试了下面的命令,但它不起作用echo STREAM\hello world\echo“STREAM FILE hello world”请不要使用agi的自定义代码有很多框架和示例可用,包括一个用于bash的框架,请参见页面以获取列表强烈建议使用phpagi one作为最受测试和最常用于今天它用于freepbx/elastix/TrixBox非常感谢很播放gsm/音频文件的正确命令是什么?