Greetings all. Asterisk rookie here, so please bear with me.
I just installed Asterisk 1.2.1 under Gentoo. I have a few dummy extensions strictly for testing (for now). Last week, I was able to play back several audio files using playback(). This morning, I moved my Asterisk box to a different location, and now I am not getting any audio playback.
-- Executing Answer("SIP/jaytest-82b9", "") in new stack
-- Executing Wait("SIP/jaytest-82b9", "2") in new stack
-- Executing Playback("SIP/jaytest-82b9", "weasels-eaten-phonesys") in new stack
-- Playing 'weasels-eaten-phonesys' (language 'en')
Iâm at a loss as to what Iâm doing wrong. It was working, and Iâve made no changes. Calls between 2 SIP softphones work fine, but audio playback just makes the call hang in silence.
Tried that. No luck. It plays a quick noise, like one youâd hear if you tapped the end of a microphone, and then nothing. Asterisk reports itâs playing the sound, but no audio occurs and no matter how long I wait, it doesnât get to the next line to hang up the call.
When you say that you âmoved the systemâ do you mean to a new network too? Does it need an updated gateway? Is there a router between you and the system? Is the router setup correctly to handle the RTP packets?
No, I moved the physical location of the server within my office. It was in my office while I reinstalled everything (after which it worked just fine). It is now at the other end of the building, connected to the exact same network, with the same static network information.
Calls still work, itâs just that Iâm getting no playback of Asterisk sounds.
Actually, it didnât fix the problem. It played the sound twice and I assumed it was fine. However, here I am several minutes later, and it is acting up like it was before.
SIP debug reports:
Connected to Asterisk 1.2.1 currently running on voip (pid = 5510)
voip*CLI> set verbose 5
Verbosity was 0 and is now 5
voip*CLI> set debug 5
Core debug was 0 and is now 5
-- Executing Answer("SIP/jaytest-f9aa", "") in new stack
-- Executing Wait("SIP/jaytest-f9aa", "2") in new stack
-- Executing Playback("SIP/jaytest-f9aa", "/var/lib/asterisk/sounds/weasels-eaten-phonesys") in new stack
-- Playing '/var/lib/asterisk/sounds/weasels-eaten-phonesys' (language 'en')
Once again, there is no audio, and the call does not hang up after any amount of time.
My gut feeling is itâs a client codec issue, I donât see any errors in your log list. The sounds are all in gsm codec encoding, and if your client is using g729 codec, it would pass through fine to other g729 clients because Asterisk comes with g729 passthrough. But it wonât be able to convert a gsm sound.
Try forcing your clients to use the ulaw codec, which asterisk can easily transcode. The g729 codec is a licensed proprietary codec and canât be included for free in open source software, but you can buy them if you need them ($10 per live connection).