Jerry Geis
2015-Jul-02 17:54 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
>>I'm not sure that your question is clear. You'll probably want to be more specific. >> What is pulse? You mention "as a user", are you talking about voicepulse.com ? >> What are you trying to do with pulse? >> What problem are you running into?Sorry Rusty... I am trying to get Asterisk 11 to co-exist with a centos 7 box that has pulse audio running as a local user. Has anyone done that? What is the trick? I changed directories /var/run/asterisk, /var/spool/asterisk, /var/log/asterisk, /usr/lib/asterisk, /etc/dahdi and all that stuff. The console channel gets errors on opening. Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150702/d829f0fb/attachment.html>
Matt Riddell
2015-Jul-02 18:14 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
> I am trying to get Asterisk 11 to co-exist with a centos 7 box that has pulse audio running as a local user. > > Has anyone done that? > What is the trick? > > I changed directories /var/run/asterisk, /var/spool/asterisk, /var/log/asterisk, > /usr/lib/asterisk, /etc/dahdi and all that stuff. > > The console channel gets errors on opening.What errors are you getting? -- Cheers, Matt Riddell _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/cc.php (Call Centre Solutions) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150702/d320c39f/attachment.html>
Jerry Geis
2015-Jul-03 11:17 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
alsa_card_init^[[0m: snd_pcm_open failed: Connection refused soundcard_init^[[0m: Problem opening alsa capture device These are the errors I get. I changed the following: chown -R myuser:myuser /var/log/asterisk chown -R myuser:myuser /var/lib/asterisk chown -R myuser:myuser /var/spool/asterisk chown -R myuser:myuser /var/run/asterisk chown -R myuser:myuser /usr/lib/asterisk edited asterisk.conf and uncommented runuser and rungroup and changed to myuuser Then I get the above error when running Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150703/76faab1b/attachment.html>
Sebastian Kemper
2015-Jul-03 11:53 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
Am 3. Juli 2015 13:17:34 MESZ, schrieb Jerry Geis <geisj at pagestation.com>:>alsa_card_init^[[0m: snd_pcm_open failed: Connection refused >soundcard_init^[[0m: Problem opening alsa capture device > >These are the errors I get. > >I changed the following: >chown -R myuser:myuser /var/log/asterisk >chown -R myuser:myuser /var/lib/asterisk >chown -R myuser:myuser /var/spool/asterisk >chown -R myuser:myuser /var/run/asterisk >chown -R myuser:myuser /usr/lib/asterisk >edited asterisk.conf and uncommented runuser and rungroup and changed >to >myuuser > >Then I get the above error when running > > >Jerry > > >------------------------------------------------------------------------Sounds more like wrong perms on the sound devices in /dev. Is your user in the audio group, or whatever it's called on your box?
Jerry Geis
2015-Jul-03 14:10 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
Ok digging deaper... I was always trying to run the session as su myuser -c "asterisk -fn" This does not seem to work. If I login as myuser and run "asterisk fn" it worked... I got a lot of crackly noise that I normally dont have but it worked. Any thoughts on why I cannot run the command as 'su myuser -c "asterisk -fn"' ? Thanks jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150703/255c8e2d/attachment.html>
Matt Riddell
2015-Jul-03 22:31 UTC
[asterisk-users] Asterisk 11 and pulseaudio setup as local user
On 3Jul, 2015, at 06:17, Jerry Geis <geisj at pagestation.com> wrote:> > alsa_card_init^[[0m: snd_pcm_open failed: Connection refused > soundcard_init^[[0m: Problem opening alsa capture device >If the problem is a permission thing I?d confirm that. Run Asterisk as root and see if the problem goes away. If so then you?ll have to work your way through devices and drivers and check who owns them and is able access them. I?d also try temporarily disabling SELinux to see if that helps. As with the first option this would be temporary - go back to running Asterisk as myuser or whatever and reenable SELinux regardless of the outcome. -- Cheers, Matt Riddell _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/cc.php (Call Centre Solutions) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150703/a50a1ba0/attachment.html>