Hi All, On the Freeswitch init page (Debian) the setup you to create a user "freeswitch" to run the FS process. When I did this, freeswitch started up but wasn't able to find/open channels to my sangoma/wanpipe hardware. Is this because: 1. The sangoma hardware was installed and running through root, which is a different user than the one running FS? 2. Wanrouter is not getting started before freeswitch on system boot? Is there a disadvantage to setting up the init script for FS to be run by root? Will that solve this problem? Thanks in advance from a Linux/FS newbie, Neil
Neil Patel <neilp@cs.stanford.edu> wrote:
On the Freeswitch init page (Debian) the setup you to create a user "freeswitch" to run the FS process. When I did this, freeswitch started up but wasn't able to find/open channels to my sangoma/wanpipe hardware.
It's likely to be the result of wrong permissions on the device file, or maybe you need to add the freeswitch user to a group that has permission to access the device file. I don't have access to Sangoma hardware, so I don't know what the device files are, but this should be documented somewhere, or perhaps it is noted in your kernel logs.
Hi, you should take a look to /etc/udev/rules.d searching for a zaptel.[something] (extension should be .conf, but i'm not sure). Open it and change user and group in <GROUP="asterisk", OWNER="asterisk"> to freeswitch. To change the startup/shutdown sequence, instead, you could use update-rc.d. First look at startup and shutdown order for wanrouter and after execute these commands: sudo update-rc.d -f freeswitch remove sudo update-rc.d freeswitch defaults SS KK On SS put a value greater than wanrouter startup order value and on KK put a value freater than warouter shutdown order value. As "shutdown/startup order value" i refer to SNNxxxxxx or KNNxxxxxx where NN is a numeric value and xxxxxx is the name of the service. You should look for them into /etc/rc3.d and /etc/rc0.d (the first for startup and the second for shutdown) Neil Patel ha scritto:
Hi All,
On the Freeswitch init page (Debian) the setup you to create a user "freeswitch" to run the FS process. When I did this, freeswitch started up but wasn't able to find/open channels to my sangoma/wanpipe hardware. Is this because:
1. The sangoma hardware was installed and running through root, which is a different user than the one running FS? 2. Wanrouter is not getting started before freeswitch on system boot?
Is there a disadvantage to setting up the init script for FS to be run by root? Will that solve this problem?
Thanks in advance from a Linux/FS newbie, Neil
I'll take advantage of this thread to ask whether it's OK/recommended to create a new user/group "freeswitch", and "chown -Rf /usr/local/freeswitch"? Thank you. -- View this message in context: http://old.nabble.com/freeswitch-init-tp26926152p26966731.html Sent from the Freeswitch-users mailing list archive at Nabble.com.
participants (5)
-
Daniele Salvatore Albano
-
Fred-145
-
Jason White
-
Neil Patel
-
Russell Mosemann