Asterisk и GSM модем E1550
Добрый вечер!
Решил настроить asterisk для исходящих звонок, через GSM модем Huawei E1550.
За последние несколько дней, прочитал кучу примеров, что у людей всё таки получалось это делать и работало нормально. Я пока победить никак не могу. У меня проходит звонок один, НО после того, как я кладу трубку, модем пропадает и требуется перезагрузка компьютера, чтобы астериск его увидел. (Хотя фактически в устройствах он есть)
Что я предпринимал:
- Прошивал модем двумя разными прошивками: E155XUpdate_11.608.14.15.311.B418 и E1550Update_11.609.20.00.00.B418. В инете советовали именно их. Эффекта это не даёт
- Подключил модем через простенький usb hub на четыре порта с дополнительным питанием. Тоже эффекта не дало
- Перебирал по разному порты модема в dongle, тоже ничего не даёт
Asterisk 13.18.3 Ubuntu 18.04
Лог в момент звонка ниже
dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Dialing 9 0 0 MegaFon RUS E1550 11.609.20.00.00 3534430**** 250110*** Unknown
-- Dongle/dongle0-0100000000 answered
[Apr 26 01:56:56] WARNING[12281][C-00000000]: pbx.c:4416 __ast_pbx_run: Channel 'Dongle/dongle0-0100000000' sent to invalid extension but no invalid handler: context,exten,priority=outgoing_to_89209991313,+79209991313,1
[Apr 26 01:56:56] NOTICE[12281][C-00000000]: pbx_spool.c:460 attempt_thread: Call completed to Dongle/dongle0/+79209991313
[Apr 26 01:56:58] ERROR[12163]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT+CLCC'
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:57:13] ERROR[12348]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:57:28] ERROR[12382]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:57:43] ERROR[12405]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
shtrih-srv*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Not connec 0 0 0 NONE Unknown
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:57:58] ERROR[12439]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:58:13] ERROR[12480]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/sergmodem2...
-- [dongle0] Dongle has connected, initializing...
[Apr 26 01:58:28] ERROR[12514]: chan_dongle.c:442 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
shtrih-srv*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Not connec 0 0 0 NONE Unknown
cat /etc/asterisk/dongle.conf
[dongle0]
context=from-dongle ; используемый контекст
language=ru ; используемый язык
audio=/dev/sergmodem0 ; tty port for audio connection; no default value
data=/dev/sergmodem2 ; tty port for AT commands; no default value
; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345
; imei and imsi must contain exactly 15 digits !
; imei/imsi discovery is available on Linux only
imei=3534432***
imsi=2501102***
cat /etc/asterisk/extensions.conf
[outgoing_to_89209991313]
exten => s,1,Answer
exten => s,n,Wait(15)
;exten => s,n,Background(/usr/local/share/asterisk/sounds/monitoring/welcome)
;exten => s,n,Background(/usr/local/share/asterisk/sounds/monitoring/Down)
;exten => s,n,Background(/usr/local/share/asterisk/sounds/monitoring/provider-a)
;exten => s,n,Background(/usr/local/share/asterisk/sounds/monitoring/bye)
exten => s,n,hangup
Звонок выполняю через call файл
cat /var/spool/asterisk/outgoing/test3.call
Channel: Dongle/dongle0/+79209991313
MaxRetries: 1
RetryTime: 15
WaitTime: 15
Context: outgoing_to_89209991313
Extension: +79209991313
Priority: 1
Что можете посоветовать?