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

2015-07-03 Thread Matt Riddell
On 3Jul, 2015, at 06:17, Jerry Geis  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)

-- 
_
-- 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

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

2015-07-03 Thread Steve Edwards

On Fri, 3 Jul 2015, Jerry Geis wrote:

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   sedwa...@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

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

2015-07-03 Thread A J Stiles
On Friday 03 Jul 2015, Jerry Geis wrote:
> 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


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

2015-07-03 Thread Jerry Geis
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
-- 
_
-- 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

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

2015-07-03 Thread Sebastian Kemper
Am 3. Juli 2015 13:17:34 MESZ, schrieb Jerry Geis :
>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


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

2015-07-03 Thread Jerry Geis
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
-- 
_
-- 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

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

2015-07-02 Thread Matt Riddell

> 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)

-- 
_
-- 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

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

2015-07-02 Thread Jerry Geis
>>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
-- 
_
-- 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