Asterisk 18.18.0 And Chan_console
I am still using chan_console. I compiled 18.18.0 and chan_console is not built. I am using ubuntu 20.04.6 LTS
make menuselect says XXX chan_consoel and it needs “portaudio”
What do I do next ?
Also menuconfig is saying XXX on Also – what alsa library is needed ?
Thanks
jerry
15 thoughts on - Asterisk 18.18.0 And Chan_console
On my debian 11 install I needed to install
portaudio19-dev
Doug
—
Thanks doug – I did that – still showing XXX for chan_console
libportaudio2/focal,now 19.6.0-1build1 amd64 [installed]
libportaudiocpp0/focal,now 19.6.0-1build1 amd64 [installed,automatic]
portaudio19-dev/focal,now 19.6.0-1build1 amd64 [installed]
Jerry
Just to verify that you did rerun configure after installing the libraries?
Doug
—
Oh that is a good one – I thought I did – but apparently not. menuconfig now shows “*”
So is chan_alsa going away ? What is it being replaced with?
thank you!
Jerry
The chan_alsa module has been removed in Asterisk 21[1]. The recommended replacement is chan_console.
[1] https://docs.asterisk.org/Development/Asterisk-Module-Deprecations/
hi Doug – so what device do you use? I am getting and error for Console/dsp
exten => s,1,ChanIsAvail(Console/dsp)
exten => s,n,GotoIf($[“${AVAILCHAN}” = “”]?smvoice-busy,s,1)
exten => s,n,Playback(beep)
exten => s,n,Dial(Console/dsp)
exten => s,n,Hangup
I also tried Console/ALSA and both gave errors.
Thanks
Jerry
I don’t use it; just figured I’d try to help.
Doug
—
Thanks Doug…
So then for the list – I have chan_console working now…. But I am trying Console/dsp and Console/ALSA and both give an error about not found.
What have I missed ?
Thanks
Jerry
In a past work life, I did use console/dsp to connect to a sound card that hooked up to a bogan paging amp. I still have access to the programming and everything I have show as using a lower case c for console
Doug
—
This is hte error I get for Console/dsp or console/dsp
ERROR[230711][C-00000001]: chan_console.c:477 console_request: Console device ‘dsp’ not found
Jerry
What is the device that you’re connecting to?
Doug
—
I am trying to just play on PulseAudio actually. This used to work – I have just recently updated to 18.18.0, so I’m puzzled.
Jerry
All of my Asterisk installs are running in virtual machines, so I have no way to test.
Doug
I am trying to get audio to play on Pulse – so just the monitor basically.
I have tried Console/dsp, Console/dmix, Console/pulse, and a couple others.
The error is always the same “console_request: Console device ‘dmix’ not found.
What is the correct “Console/XXXX” to play on pulse for UBuntu 20.04 LTS ?
I can “aplay /usr/share/sounds/alsa/Front_Center.wav” no problem.
Thoughts?
Jerry
It has a configuration file[1] that defines the various devices and their referenced name. If default is in use then I’d expect Console/default
[1]
https://github.com/asterisk/asterisk/blob/master/configs/samples/console.conf.sample