声音在Asterisk的IVR上消失了

我正在用星号创build一个IVR。 它工作正常,但我安装了一些新的硬件,声音已经消失。 我可以在控制台中看到这个:

Feb 22 22:24:00 DEBUG[10555]: pbx.c:1697 pbx_extension_helper: Launching 'Set' -- Executing Set("SIP/208.77.200.13-08b174f8", "__IVR_RETVM=") in new stack Feb 22 22:24:00 DEBUG[10555]: pbx.c:1609 pbx_substitute_variables_helper_full: Expression result is '1' Feb 22 22:24:00 DEBUG[10555]: pbx.c:1697 pbx_extension_helper: Launching 'ExecIf' -- Executing ExecIf("SIP/208.77.200.13-08b174f8", "1|Background|custom/Sales") in new stack Feb 22 22:24:00 DEBUG[10555]: channel.c:2432 set_format: Set channel SIP/208.77.200.13-08b174f8 to write format slin Feb 22 22:24:00 DEBUG[10555]: rtp.c:1372 ast_rtp_write: Ooh, format changed from unknown to ulaw Feb 22 22:24:00 DEBUG[10555]: channel.c:1777 ast_settimeout: Scheduling timer at 160 sample intervals -- Playing 'custom/Sales' (language 'en') 

我不知道为什么我听不到声音,即使它在说'玩'。 文件(custom / Sales.wav)存在,权限是正确的,所有权是正确的,在sip.conf中允许编解码器ulaw和slin。

任何人都可以提供一些关于如何debugging这个东西的提示? (顺便说一句,我使用FreePBX来configurationIVR)。

谢谢。

这也有助于了解安装了哪些新硬件。

如果您没有听到任何声音,最基本的debugging工具是设置一个[默认]上下文来回答手机,并播放默认的Asterisk声音文件之一。

 [default] exten => s,1,Wait(0.5) ; wait half a second for things to settle exten => s,n,Answer() ; pick up exten => s,n,Playback(hello-world) ; play the hello-world.gsm sample exten => s,n,Hangup() ; bye now! 

如果您的SIP电话达到默认上下文,则任何来电都将播放“Hello World”样本声音。

这至less会告诉你SIP电话是否能够在服务器上注册并进行SIP呼叫,并告诉你是否到达了你的拨号scheme。

一件小事要检查; 从星号CLI(使用星号-r运行)中,在播放录音时执行“sip show channels”,以确认您希望在问题频道上使用的编解码器。 在我的系统上,我也发现了带有.WAV和.wav扩展名的重复录音,每个录音都与特定的编解码器一起工作。 当我遇到类似的问题时,我发现录音是使用与当前使用的编解码器不同的编解码器创build的。 (即;从通过g729连接的手机logging,然后使用ulaw复制到系统)。