Sound disappeared on IVR in Asterisk

asteriskvoip

I'm setting up an IVR in asterisk. It was working fine but I installed some new hardware and the sound has disappeared. I can see this in the console:

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')

I have no idea why I can't hear the sound even though it's saying 'Playing'. The file (custom/Sales.wav) is present, the permissions are right, ownership is correct, codecs ulaw and slin are allowed in sip.conf.

Can anyone give some hints on how to debug this thing? (Btw, I'm using FreePBX for configuring the IVRs).

Thanks.

Best Answer

It also helps to know what new hardware was installed.

If you don't hear any sound, the most basic debugging tool is to setup a [default] context that answers the phone and plays one of the default Asterisk sound files.

[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!

If your SIP phones hit the default context, then any incoming calls will play the "Hello World" sample sound.

This will at least tell you if the SIP phones are able to register with the server and place SIP calls, and tell you whether your dialplan is being reached at all.

Related Topic