Имеем:
FreePBX-Distro-Net-32bit-1.89.210.57:
- CentOS release 5.7 (Final) - 2.6.18-274.3.1.el5 с установленными VMware Tools;
- VMware 8.0.2 build-591240;
- 3 модема huawei e173;
- usb_modeswitch
****
-bash-3.2# ls -l /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 Mar 31 11:44 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Mar 31 11:44 /dev/ttyUSB1
crw-rw---- 1 root uucp 188, 10 Mar 31 11:44 /dev/ttyUSB10
crw-rw---- 1 root uucp 188, 11 Mar 31 11:44 /dev/ttyUSB11
crw-rw---- 1 root uucp 188, 2 Mar 31 11:44 /dev/ttyUSB2
crw-rw---- 1 root uucp 188, 3 Mar 31 11:44 /dev/ttyUSB3
crw-rw---- 1 root uucp 188, 4 Mar 31 11:44 /dev/ttyUSB4
crw-rw---- 1 root uucp 188, 5 Mar 31 11:44 /dev/ttyUSB5
crw-rw---- 1 root uucp 188, 6 Mar 31 11:44 /dev/ttyUSB6
crw-rw---- 1 root uucp 188, 7 Mar 31 11:44 /dev/ttyUSB7
crw-rw---- 1 root uucp 188, 8 Mar 31 11:44 /dev/ttyUSB8
crw-rw---- 1 root uucp 188, 9 Mar 31 11:44 /dev/ttyUSB9
****
-bash-3.2# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 12d1:140c Huawei Technologies Co., Ltd.
Bus 001 Device 003: ID 12d1:140c Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 004: ID 12d1:140c Huawei Technologies Co., Ltd.
****
dongle.conf
; dongle required settings
[e173_1]
audio=/dev/ttyUSB0 ; tty port for audio connection; no default value
data=/dev/ttyUSB1 ; tty port for AT commands; no default value
[e173_2]
audio=/dev/ttyUSB2 ; tty port for audio connection; no default value
data=/dev/ttyUSB3 ; tty port for AT commands; no default value
[e173_3]
audio=/dev/ttyUSB4 ; tty port for audio connection; no default value
data=/dev/ttyUSB5 ; tty port for AT commands; no default value
****
Получаем ошибку:
-- [e173_1] Trying to connect on /dev/ttyUSB1...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB1: Permission denied
-- [e173_2] Trying to connect on /dev/ttyUSB3...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB3: Permission denied
-- [e173_3] Trying to connect on /dev/ttyUSB5...
[2012-04-02 15:21:51] WARNING[4973]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB5: Permission denied