Menu

[howto] Overhead Pager over Soundcard

2014-01-04
2018-06-01
  • Justin Rosetto

    Justin Rosetto - 2014-01-04
    1. Fist after installing RasPBX make sure to run raspbx-upgrade in putty to update everything.
    2. Next type 'nano /etc/asterisk/alsa.conf' and modify it to look like this.

    input_device=hw:1,0
    output_device=hw:0,0

    1. Then type 'nano /etc/asterisk/modules.conf' find 'noload => chan_alsa.so' and change it to 'load => chan_alsa.so'
    2. Reboot the RPi for the changes to take effect.
    3. To adjust the volume issue 'alsamixer' in putty and adjust accordingly.
    4. 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
  • Gernot

    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.

     
  • JimS

    JimS - 2016-08-30

    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.

     
  • JimS

    JimS - 2016-11-28

    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.

     
  • Richard Chinn

    Richard Chinn - 2018-06-01

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.