Fist after installing RasPBX make sure to run raspbx-upgrade in putty to update everything.
Next type 'nano /etc/asterisk/alsa.conf' and modify it to look like this.
input_device=hw:1,0
output_device=hw:0,0
Then type 'nano /etc/asterisk/modules.conf' find 'noload => chan_alsa.so' and change it to 'load => chan_alsa.so'
Reboot the RPi for the changes to take effect.
To adjust the volume issue 'alsamixer' in putty and adjust accordingly.
Go into extensions in FreePBX and create an 'Other (Custom) Extension'. In the dial parameter input 'console/alsa'.
NOTE: If the HDMI cable is plugged in it will take precedence over the analog output. Make sure the HDMI isn't hooked up when the RPi starts up to use the analog line.
Last edit: Gernot 2014-03-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With the latest upgrade #18 permissions on the audio device are finally set. It is no longer required to patch the FreePBX files, therefore I've modified the instructions above accordingly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How about this on the BeagleBone Black? I don't seem to have a /etc/asterisk/alsa.conf file and the modules.conf file exists but says at the top not to modify it as it is autogenerated by FreePBX.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The BBB asterisk OS (from http://beaglebone-asterisk.raspbx.org/) can't deal properly with USB audio devices needed to get audio output. I ended up recompiling the kernel with disabled DMA for the USB devices. Without that calls to use the soundcard locked up the whole system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For anyone that finds themsleves here, something I found out after a lot of faffing:
Before editing alsa.conf, you need to copy it from another folder as a starting point:
cp /usr/share/asterisk/configs/alsa.conf /etc/asterisk/
You can then follow the instructions as above.
The 'console/alsa' parameter goes in the advanced->edit extension->Dial input box under a custom extension in the latest version of the gui.
Hope this helps someone have less faf than I had!
Last edit: Richard Chinn 2018-06-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
input_device=hw:1,0
output_device=hw:0,0
NOTE: If the HDMI cable is plugged in it will take precedence over the analog output. Make sure the HDMI isn't hooked up when the RPi starts up to use the analog line.
Last edit: Gernot 2014-03-09
With the latest upgrade #18 permissions on the audio device are finally set. It is no longer required to patch the FreePBX files, therefore I've modified the instructions above accordingly.
How about this on the BeagleBone Black? I don't seem to have a /etc/asterisk/alsa.conf file and the modules.conf file exists but says at the top not to modify it as it is autogenerated by FreePBX.
The BBB asterisk OS (from http://beaglebone-asterisk.raspbx.org/) can't deal properly with USB audio devices needed to get audio output. I ended up recompiling the kernel with disabled DMA for the USB devices. Without that calls to use the soundcard locked up the whole system.
For anyone that finds themsleves here, something I found out after a lot of faffing:
Before editing alsa.conf, you need to copy it from another folder as a starting point:
cp /usr/share/asterisk/configs/alsa.conf /etc/asterisk/
You can then follow the instructions as above.
The 'console/alsa' parameter goes in the advanced->edit extension->Dial input box under a custom extension in the latest version of the gui.
Hope this helps someone have less faf than I had!
Last edit: Richard Chinn 2018-06-01