machtudong / asterisk-chan-dongle

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

ast_request: No channel type registered for 'dongle0' #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there, 

I'm trying to realise a softphone network with a Huawei 169 for outbound 
traffic. Internal traffic (on SIP between softphones) works fine, but when I 
try to telephone outbound (via the Huawei), I get the following error message: 

[Sep 12 15:12:57] WARNING[6478]: channel.c:5603 ast_request: No channel type 
registered for 'dongle0'
[Sep 12 15:12:57] WARNING[6478]: app_dial.c:2218 dial_exec_full: Unable to 
create channel of type 'dongle0' (cause 66 - Channel not implemented)

This is the dongle.conf:
[dongle0]
audio=/dev/ttyUSB1              ; tty port for audio connection;        no 
default value
data=/dev/ttyUSB2               ; 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=XXX
imsi=XXX

and this is the relevant part of extensions.conf: 

[internal]
; for 4-digit numbers, assume it's a SIP number in our own context
; call it
exten => _XXXX,1,Answer()
exten => _XXXX,n,Dial(SIP/${EXTEN},20,r)
exten => _XXXX,n,Hangup

; else
; for a number starting with zero try to call via Dongle
exten => _0X.,1,Answer()
exten => _0X.,n,Dial(dongle0/r1/${EXTEN},20,r)
exten => _0x.,n,Hangup

'core show channeltypes' gets the following output:
Type        Description                              Devicestate  Indications  
Transfer
----------  -----------                              -----------  -----------  
--------
Dongle      Huawei 3G Dongle Channel Driver          yes          yes          
no

'module show' lists chan_dongle as loaded .... 

I'm using Asterisk 1.8.10.1

I'd be very grateful if someone can point me to a solution or at least give me 
some tips where to look, i'm getting a bit desperate here .... 

Kind regards,
Benedikt 

Original issue reported on code.google.com by benedikt...@gmail.com on 12 Sep 2012 at 1:33

GoogleCodeExporter commented 9 years ago
of course, imei and imsi are entered correctly ... 

Original comment by benedikt...@gmail.com on 12 Sep 2012 at 1:34

GoogleCodeExporter commented 9 years ago
additional info: 

when trying to send a sms via the cli, the following output occurs:
kairos*CLI> dongle sms dongle0 xxx hallo
[dongle0] SMS queued for send with id 0x7ff398066490
[Sep 12 16:18:43] NOTICE[6493]: at_response.c:257 at_response_ok: [dongle0] 
Successfully sent SMS message 0x7ff398066490
[Sep 12 16:18:45] WARNING[6533]: channel.c:5104 set_format: Unable to find a 
codec translation path from 0x100000000 (g719) to 0x2 (gsm)
[Sep 12 16:18:45] WARNING[6533]: file.c:958 ast_streamfile: Unable to open 
demo-congrats (format 0x100000000 (g719)): No such file or directory
[Sep 12 16:18:45] WARNING[6533]: pbx.c:9781 pbx_builtin_background: 
ast_streamfile failed on Local/sms@internal-0a40;1 for demo-congrats
[Sep 12 16:18:45] WARNING[6533]: channel.c:5104 set_format: Unable to find a 
codec translation path from 0x100000000 (g719) to 0x2 (gsm)
[Sep 12 16:18:45] WARNING[6533]: file.c:958 ast_streamfile: Unable to open 
demo-instruct (format 0x100000000 (g719)): No such file or directory
[Sep 12 16:18:45] WARNING[6533]: pbx.c:9781 pbx_builtin_background: 
ast_streamfile failed on Local/sms@internal-0a40;1 for demo-instruct
[Sep 12 16:18:55] WARNING[6533]: channel.c:5104 set_format: Unable to find a 
codec translation path from 0x100000000 (g719) to 0x2 (gsm)
[Sep 12 16:18:55] WARNING[6533]: file.c:958 ast_streamfile: Unable to open 
demo-thanks (format 0x100000000 (g719)): No such file or directory
[Sep 12 16:18:55] WARNING[6533]: app_playback.c:475 playback_exec: 
ast_streamfile failed on Local/sms@internal-0a40;1 for demo-thanks
kairos*CLI>

Original comment by benedikt...@gmail.com on 12 Sep 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Please check dial string for dongle channels.

also RTFM for Dial function of asterisk 
also look to example etc/extensions.conf file

Original comment by bg_...@mail.ru on 21 Nov 2012 at 8:38