danshuk / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
2 stars 0 forks source link

Error messages in the console #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I sometimes observe these messages in the console Asterisk

debian-pbx*CLI>
[Dec  9 23:14:10] ERROR[1842]: chan_dongle.c:411 do_monitor_phone: [GSM] Lost 
connection to Dongle
    -- [GSM] Dongle has disconnected
    -- [GSM] Trying to connect on /dev/ttyUSB2...
    -- [GSM] Dongle has connected, initializing...
    -- [GSM] Dongle initialized and ready

[Dec  9 23:14:31] ERROR[1965]: at_response.c:331 at_response_error: [GSM] 
Command 'AT+CLCC' failed
    -- [GSM] Dongle has disconnected
    -- [GSM] Trying to connect on /dev/ttyUSB2...
    -- [GSM] Dongle has connected, initializing...
    -- [GSM] Dongle initialized and ready

[Dec 11 16:26:41] ERROR[2649]: chan_dongle.c:433 do_monitor_phone: [GSM] 
timedout while waiting 'OK' in response to 'AT+CHUP'
    -- [GSM] Dongle has disconnected
    -- [GSM] Trying to connect on /dev/ttyUSB2...
    -- [GSM] Dongle has connected, initializing...
    -- [GSM] Dongle initialized and ready

Debian 6
Asterisk: 1.8.7.2   
chan_dongle version 1.1 revision 10 sources
Model: E173
Firmware: 11.126.85.00.209

Best regards,

Daniel

Original issue reported on code.google.com by daniel.w...@gmail.com on 14 Dec 2011 at 9:08

GoogleCodeExporter commented 8 years ago
check dongle power / USB subsystem

Original comment by bg_...@mail.ru on 22 Mar 2012 at 3:02

GoogleCodeExporter commented 8 years ago
I have D-link H7 USB Hub and 4 Huawei e1550, Asterisk 1.8.18.0 and chan_dongle 
current version.
When received incoming call or begining outgoing call chan_dongle lost 
connection to device and device disappears from system, but after a while, it 
comes back.

In asterisk CLI appears something like that
[Dec  5 18:41:31] ERROR[6851] chan_dongle.c: [dongle2] Lost connection to Dongle
[Dec  5 18:41:31] ERROR[6852] chan_dongle.c: [dongle0] Lost connection to Dongle
[Dec  5 18:41:31] ERROR[6853] chan_dongle.c: [dongle3] Lost connection to Dongle
[Dec  5 18:41:31] ERROR[6850] chan_dongle.c: [dongle1] Lost connection to Dongle
[Dec  5 18:42:02] ERROR[7301] chan_dongle.c: [dongle2] timedout while waiting 
'OK' in response to 'AT+CCWA='
[Dec  5 18:42:02] ERROR[7302] chan_dongle.c: [dongle3] timedout while waiting 
'OK' in response to 'AT+CCWA='
[Dec  5 18:42:05] ERROR[7299] chan_dongle.c: [dongle0] Lost connection to Dongle
[Dec  5 18:42:05] ERROR[7300] chan_dongle.c: [dongle1] Lost connection to Dongle
[Dec  5 18:42:17] ERROR[7452] chan_dongle.c: [dongle2] Lost connection to Dongle
[Dec  5 18:42:17] ERROR[7453] at_queue.c: [dongle3] Error write command 'AT' 
expected response 'OK' length 3, cancel
[Dec  5 18:42:17] ERROR[7453] chan_dongle.c: [dongle3] Error adding 
initialization commands to queue
[Dec  5 18:42:17] ERROR[7450] chan_dongle.c: [dongle0] Lost connection to Dongle
[Dec  5 18:42:17] ERROR[7451] chan_dongle.c: [dongle1] Lost connection to Dongle
[Dec  5 18:42:32] ERROR[7597] at_response.c: [dongle3] Command 'AT+CCWA=' failed
[Dec  5 18:42:32] ERROR[7597] at_response.c: [dongle3] Command 'AT+CCWA?' failed
[Dec  5 18:42:34] ERROR[7597] at_response.c: [dongle3] Command 'AT+CLCC' failed
[Dec  5 18:42:35] ERROR[7596] at_response.c: [dongle2] Command 'AT+CCWA=' failed
[Dec  5 18:42:17] ERROR[7453] at_queue.c: [dongle1] Error write command 'AT' 
expected response 'OK' length 3, cancel
[Dec  5 18:42:17] ERROR[7453] at_queue.c: [dongle3] Error write command 'AT' 
expected response 'OK' length 3, cancel
-- Dongle dongle3 trying to connect on /dev/ttyUSB2... 
-- Dongle dongle3 has connected, initializing... 
-- Dongle dongle3 initialized and ready
-- Dongle dongle1 trying to connect on /dev/ttyUSB5... 
-- Dongle dongle1 has connected, initializing... 
-- Dongle dongle1 initialized and ready

my dongle.conf

[general]

interval=15         ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION 
--------------------------
;jbenable = yes         ; Enables the use of a jitterbuffer on the receiving side of a
                ; Dongle channel. Defaults to "no". An enabled jitterbuffer will
                ; be used only if the sending side can create and the receiving
                ; side can not accept jitter. The Dongle channel can't accept jitter,
                ; thus an enabled jitterbuffer on the receive Dongle side will always
                ; be used if the sending side can create jitter.

;jbforce = no           ; Forces the use of a jitterbuffer on the receive side of a 
Dongle
                ; channel. Defaults to "no".

;jbmaxsize = 200        ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000   ; Jump in the frame timestamps over which the 
jitterbuffer is
                ; resynchronized. Useful to improve the quality of the voice, with
                ; big jumps in/broken timestamps, usually sent from exotic devices
                ; and programs. Defaults to 1000.

;jbimpl = fixed         ; Jitterbuffer implementation, used on the receiving side of 
a Dongle
                ; channel. Two implementations are currently available - "fixed"
                ; (with size always equals to jbmaxsize) and "adaptive" (with
                ; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40     ; This option only affects the jb when 'jbimpl = adaptive' 
is set.
                ; The option represents the number of milliseconds by which the new jitter buffer
                ; will pad its size. the default is 40, so without modification, the new
                ; jitter buffer will set its size to the jitter value plus 40 milliseconds.
                ; increasing this value may help if your network normally has low jitter,
                ; but occasionally has spikes.

;jblog = no         ; Enables jitterbuffer frame logging. Defaults to "no".
;-------------------------------------------------------------------------------
----

;[defaults]
[E1550_t](!)
; now you can set here any not required device settings as template
;   sure you can overwrite in any [device] section this default values

context=huawei_in       ; context for incoming calls
group=0             ; calling group
rxgain=3            ; increase the incoming volume; may be negative
txgain=3            ; increase the outgoint volume; may be negative
autodeletesms=yes       ; auto delete incoming sms
resetdongle=yes         ; reset dongle during initialization with ATZ command
u2diag=0            ; set ^U2DIAG parameter on device (0 = disable everything except 
modem function) ; -1 not use ^U2DIAG command
usecallingpres=yes      ; use the caller ID presentation or not
;usecallingpres=no      ; use the caller ID presentation or not
callingpres=allowed_passed_screen ; set caller ID presentation      by default use 
default network settings
disablesms=yes          ; disable of SMS reading from device when received
                ;  chan_dongle has currently a bug with SMS reception. When a SMS gets in during a
                ;  call chan_dongle might crash. Enable this option to disable sms reception.
                ;  default = no

language=ru         ; set channel default language
smsaspdu=yes            ; if 'yes' send SMS in PDU mode, feature implementation 
incomplete and we strongly recommend say 'yes'
mindtmfgap=45           ; minimal interval from end of previews DTMF from begining of 
next in ms
mindtmfduration=80      ; minimal DTMF tone duration in ms
mindtmfinterval=200     ; minimal interval between ends of DTMF of same digits in 
ms

callwaiting=no          ; if 'yes' allow incoming calls waiting; by default use 
network settings
;callwaiting=auto       ; if 'yes' allow incoming calls waiting; by default use 
network settings
                ; if 'no' waiting calls just ignored
disable=no          ; OBSOLETED by initstate: if 'yes' no load this device and just 
ignore this section

;initstate=start            ; specified initial state of device, must be one of 'stop' 
'start' 'remote'
                ;   'remove' same as 'disable=yes'

;exten=+1234567890      ; exten for start incoming calls, only in case of 
Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax          ; control of incoming DTMF detection, possible values:
                ;   off    - off DTMF tones detection, voice data passed to asterisk unaltered
                ;              use this value for gateways or if not use DTMF for AVR or inside dialplan
                ;   inband - do DTMF tones detection
                ;   relax  - like inband but with relaxdtmf option
                ;  default is 'relax' by compatibility reason

; dongle required settings
[dongle0](E1550_t)
audio=/dev/ttyUSB1      ; tty port for audio connection;    no default value
data=/dev/ttyUSB2       ; tty port for AT commands;         no default value
group=1             ; calling group

; 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=352965047503733
;imsi=250398564515957

; if audio and data set together with imei and/or imsi audio and data has 
precedence
;   you can use both imei and imsi together in this case exact match by imei 
and imsi required

; dongle required settings
[dongle1](E1550_t)
audio=/dev/ttyUSB4      ; tty port for audio connection;    no default value
data=/dev/ttyUSB5       ; tty port for AT commands;         no default value
group=1             ; calling group

; 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=352965047526312
;imsi=250398564322507

; if audio and data set together with imei and/or imsi audio and data has 
precedence
;   you can use both imei and imsi together in this case exact match by imei 
and imsi required

; dongle required settings
[dongle2](E1550_t)
audio=/dev/ttyUSB7      ; tty port for audio connection;    no default value
data=/dev/ttyUSB8       ; tty port for AT commands;         no default value
group=1             ; calling group

; 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=352965047519176
;imsi=250398564384919

; if audio and data set together with imei and/or imsi audio and data has 
precedence
;   you can use both imei and imsi together in this case exact match by imei 
and imsi required

; dongle required settings
[dongle3](E1550_t)
audio=/dev/ttyUSB10     ; tty port for audio connection;    no default value
data=/dev/ttyUSB11      ; tty port for AT commands;         no default value
group=1             ; calling group

; 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=352965044093183
;imsi=250398564379171

; if audio and data set together with imei and/or imsi audio and data has 
precedence
;   you can use both imei and imsi together in this case exact match by imei 
and imsi required

Help me please!

Original comment by vscorpio...@gmail.com on 6 Dec 2012 at 4:13