fabioprado / asterisk-chan-dongle

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

Incoming Calls #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Channel 'Dongle/dongle0-0100000007' sent to invalid extension: 
context,exten,priority=default,+1234567890,1
    -- Executing [i@default:1] Playback("Dongle/dongle0-0100000007", "invalid") in new stack
    -- <Dongle/dongle0-0100000007> Playing 'invalid.gsm' (language 'en')
[Mar 30 16:21:28] ERROR[30530]: chan_dongle.c:436 do_monitor_phone: [dongle0] 
timedout while waiting 'OK' in response to 'ATA'
  == Spawn extension (default, i, 1) exited non-zero on 'Dongle/dongle0-0100000007'

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Asterisk 11

Please provide any additional information below.

Extensions.conf
;Incoming 
exten => s,1,Dial(SIP/1000,60,m)
exten => s,n,Hangup()

Original issue reported on code.google.com by jersonju...@gmail.com on 30 Mar 2013 at 7:25

GoogleCodeExporter commented 9 years ago
your problem is related to invalid context .. you are using default context, 
you need to change the default context to whatever suit your scenario . e.g 

defult config in dongle.conf is 

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

context=default                ; context for incoming calls, SMS and USSD
group=0                         ; calling group
rxgain=0                        ; increase the incoming volume; may be negative
txgain=0                        ; increase the outgoint volume; may be negative
autodeletesms=yes               ; auto delete incoming sms
resetdongle=yes                 ; reset dongle during initialization with ATZ 
command
u2diag=-1        
#############

change "context=default " to "context=dongle-in" as default context is no 
longer a valid context in asterisk 11. 
and then add in extentions.conf

Extensions.conf
[dongle-in]
exten => s,1,Dial(SIP/1000,60,m)
exten => s,n,Hangup()

that's it . 

Original comment by alihmd....@gmail.com on 1 Apr 2013 at 9:25

GoogleCodeExporter commented 9 years ago
one more thing .. don't forget to reload dialplan or reload asterisk after 
committing changes in conf files . 

Original comment by alihmd....@gmail.com on 1 Apr 2013 at 9:30

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 27 Apr 2013 at 3:26