Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk 11 and pulseaudio setup as local user


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
geisj at pagestation.com
Guest





PostPosted: Thu Jul 02, 2015 12:54 pm    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

Quote:
>>I'm not sure that your question is clear. You'll probably want to be more specific.
Quote:
Quote:
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
Back to top
lists at venturevoip.com
Guest





PostPosted: Thu Jul 02, 2015 1:15 pm    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

Quote:
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)
Back to top
geisj at pagestation.com
Guest





PostPosted: Fri Jul 03, 2015 6:18 am    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

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
Back to top
sebastian_ml at gmx.net
Guest





PostPosted: Fri Jul 03, 2015 6:54 am    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

Am 3. Juli 2015 13:17:34 MESZ, schrieb Jerry Geis <geisj@pagestation.com>:
Quote:
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?

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
geisj at pagestation.com
Guest





PostPosted: Fri Jul 03, 2015 9:11 am    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

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
Back to top
asterisk_list at earth...
Guest





PostPosted: Fri Jul 03, 2015 9:43 am    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

On Friday 03 Jul 2015, Jerry Geis wrote:
Quote:
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"' ?

This sounds as though you are running afoul of SELinux permissions.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Fri Jul 03, 2015 10:57 am    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

On Fri, 3 Jul 2015, Jerry Geis wrote:

Quote:
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"' ?

Maybe there is a difference in the environment -- like a search [XXX]PATH
or resource limit?

Does comparing the output from:

su myuser -c 'set | sort --unique >set-su'
sudo --user=myuser sh -c 'set | sort --unique >set-sudo'
set | sort --unique >set-shell # logged in as myuser

su myuser -c 'ulimit -a | sort >ulimit-su'
sudo --user=myuser sh -c 'ulimit -a | sort >ulimit-sudo'
ulimit -a | sort >ulimit-shell # logged in as myuser

yield any clues?

Maybe the 'crackly noise' is because myuser cannot access resources the
same way root can -- like an elevated priority or 'real time' or ???

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
lists at venturevoip.com
Guest





PostPosted: Fri Jul 03, 2015 5:32 pm    Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u Reply with quote

On 3Jul, 2015, at 06:17, Jerry Geis <geisj@pagestation.com (geisj@pagestation.com)> wrote:
Quote:
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)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services