В наличии:
Ubuntu 12.04 LTS (стоит виртуально в Virtualbox), на Win 8.
Asterisk 11.2.1
chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 16
Модем: Huawei E1550. Прошивка 11.609.18.00.00. Подключен прямо в системный блок.
Включен режим только модема (сд-ром и флешка отключены)
Через Windows все работает и звонит.
В Ubuntu команда ls -l /dev | grep USB как положено показывает
ttyUSB0
ttyUSB1
ttyUSB2
В dongle.conf прописан выбор по IMEI.
Но, dongle show devices - не показываем модем, зато переодически есть 2 ошибки:
Код: Выделить всё
failed to get valid response from /dev/ttyUSB2 in 500 msec
Код: Выделить всё
timedout while waiting 'OK' in response to 'AT'
И что еще интересно, перезагрузка системы, смотрю dongle show device - нет модема, идут ошибки. Через 5-10 мин проверяю модем есть и висит часами. Но повторить этот трюк получилось всего 2 раза, а ждал я раз 10 когда он сам подключиться.
Подскажите, в какую сторону копать?
Вот кусочек лога когда сначала модем не видился, а о потом вдруг подключился. timeout не только на AT но бывает и на других командах.
Код: Выделить всё
[2013-04-18 14:00:15] VERBOSE[1228] asterisk.c: Asterisk Ready.
[2013-04-18 14:00:15] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:00:15] NOTICE[1327] chan_sip.c: Peer 'Kyivstar' is now Reachable. (27ms / 2000ms)
[2013-04-18 14:00:15] WARNING[1327] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for '443934115' to '62.64.127.43'
[2013-04-18 14:00:17] ERROR[1348] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'
[2013-04-18 14:00:17] VERBOSE[1348] chan_dongle.c: -- [dongle0] Error initializing Dongle
[2013-04-18 14:00:17] VERBOSE[1348] chan_dongle.c: -- [dongle0] Dongle has disconnected
[2013-04-18 14:00:31] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:00:46] VERBOSE[1343] chan_dongle.c: -- [dongle0] IMEI 351375131680945 found on data_tty=/dev/ttyUSB2 audio_tty=/dev/ttyUSB1
[2013-04-18 14:00:46] VERBOSE[1343] chan_dongle.c: -- [dongle0] Trying to connect on /dev/ttyUSB2...
[2013-04-18 14:00:46] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:00:48] ERROR[1501] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'
[2013-04-18 14:00:48] VERBOSE[1501] chan_dongle.c: -- [dongle0] Error initializing Dongle
[2013-04-18 14:00:48] VERBOSE[1501] chan_dongle.c: -- [dongle0] Dongle has disconnected
[2013-04-18 14:01:01] VERBOSE[1343] chan_dongle.c: -- [dongle0] IMEI 351375131680945 found on data_tty=/dev/ttyUSB2 audio_tty=/dev/ttyUSB1
[2013-04-18 14:01:01] VERBOSE[1343] chan_dongle.c: -- [dongle0] Trying to connect on /dev/ttyUSB2...
[2013-04-18 14:01:01] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:01:03] ERROR[1504] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'
[2013-04-18 14:01:03] VERBOSE[1504] chan_dongle.c: -- [dongle0] Error initializing Dongle
[2013-04-18 14:01:03] VERBOSE[1504] chan_dongle.c: -- [dongle0] Dongle has disconnected
[2013-04-18 14:01:10] VERBOSE[1232] asterisk.c: -- Remote UNIX connection
[2013-04-18 14:01:17] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:01:32] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:01:53] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:02:08] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:02:24] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:02:39] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:02:55] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:03:11] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:03:26] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:03:42] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:03:57] VERBOSE[1343] chan_dongle.c: -- [dongle0] IMEI 351375131680945 found on data_tty=/dev/ttyUSB2 audio_tty=/dev/ttyUSB1
[2013-04-18 14:03:57] VERBOSE[1343] chan_dongle.c: -- [dongle0] Trying to connect on /dev/ttyUSB2...
[2013-04-18 14:03:57] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:03:59] ERROR[1692] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'
[2013-04-18 14:03:59] VERBOSE[1692] chan_dongle.c: -- [dongle0] Error initializing Dongle
[2013-04-18 14:03:59] VERBOSE[1692] chan_dongle.c: -- [dongle0] Dongle has disconnected
[2013-04-18 14:04:12] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:04:43] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:05:03] ERROR[1343] pdiscovery.c: [dongle0 discovery] failed to get valid response from /dev/ttyUSB2 in 500 msec
[2013-04-18 14:05:18] VERBOSE[1343] chan_dongle.c: -- [dongle0] IMEI 351375131680945 found on data_tty=/dev/ttyUSB2 audio_tty=/dev/ttyUSB1
[2013-04-18 14:05:18] VERBOSE[1343] chan_dongle.c: -- [dongle0] Trying to connect on /dev/ttyUSB2...
[2013-04-18 14:05:18] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:05:20] ERROR[1694] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'
[2013-04-18 14:05:20] VERBOSE[1694] chan_dongle.c: -- [dongle0] Error initializing Dongle
[2013-04-18 14:05:20] VERBOSE[1694] chan_dongle.c: -- [dongle0] Dongle has disconnected
[2013-04-18 14:05:33] VERBOSE[1343] chan_dongle.c: -- [dongle0] IMEI 351375131680945 found on data_tty=/dev/ttyUSB2 audio_tty=/dev/ttyUSB1
[2013-04-18 14:05:33] VERBOSE[1343] chan_dongle.c: -- [dongle0] Trying to connect on /dev/ttyUSB2...
[2013-04-18 14:05:33] VERBOSE[1343] chan_dongle.c: -- [dongle0] Dongle has connected, initializing...
[2013-04-18 14:05:33] VERBOSE[1695] at_response.c: -- [dongle0] Dongle initialized and ready