View previous topic :: View next topic |
Author |
Message |
geisj at pagestation.com Guest
|
Posted: Thu Jul 02, 2015 12:54 pm Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Thu Jul 02, 2015 1:15 pm Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 6:18 am Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 6:54 am Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 9:11 am Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 9:43 am Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 10:57 am Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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
|
Posted: Fri Jul 03, 2015 5:32 pm Post subject: [asterisk-users] Asterisk 11 and pulseaudio setup as local u |
|
|
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 |
|
|
|