Friday, August 24, 2018

Running asterisk as non-root

A lot of people is running Asterisk as “asterisk” user. This may cause chan_dongle not detecting USB modems properly. In that case, you need to give permissions for ttyUSB ports. You can do that automatically by creating file /etc/udev/rules.d/92-dongle.rules and adding:
KERNEL=="ttyUSB*", MODE="0666", OWNER="asterisk", GROUP="uucp"
Other posible solution is to set runuser/rungroup settings in asterisk.conf file.
rungroup = dialout
In other words owner, group, permissions on /dev/ttyUSBx files must allow read and write operations for asterisk's EUID, EGID

No comments:

Post a Comment