call to outside - rejected because extension not found in context

dertourer
Joined: Sun 09 of Jul, 2017

call to outside - rejected because extension not found in context

Posted:Sun 09 of Jul, 2017 (18:56 UTC)
Hi there,

I am new in this forum and need help to solve my problem. I used google but the results did not help me. :-(

With help of some howtos I installed and configured asterisk and it works so far but calls out of my network (house) to real telephone numbers it doesnt work.
I get the message
"chan_sip.c:26273 handle_request_invite: Call from '2000' (192.168.xx.xxx:2060) to extension '0170xxxxxx0' rejected because extension not found in context 'meine-telefone'."


Here is my sip.conf:
language = de
context = fromInternet
disallow=all
allow=alaw
allow=ulaw
alwaysauthreject=yes
allowguest=no

register => mynumber:password:user@tel.t-online.de/mynumber~480

[incoming]
type=friend
context=tel-in
host=tel.t-online.de

[ext-sip-account]
type=friend
username=myuserfromtelekom
fromuser=myuserfromtelekom
secret=mypasswordfromtelekom
fromdomain=tel.t-online.de
host=tel.t-online.de
realm=tel.t-online.de
canreinvite=no
dtmfmode=info
insecure=invite,port
nat=force_rport,comedia
directmedia=no
qualify=3600

[2000]
type=friend
callerid="myphone"
secret=mypassword
host=dynamic
mailbox=2000
call-limit=3
contactdeny=0.0.0.0/0.0.0.0
contactpermit=192.168.xx.0/255.255.0.0
context=meine-telefone


And here my extensions.conf:
[fromInternet]

[meine-telefone]
exten => 2000,1,Dial(SIP/2000,20)
exten => 2000,2,VoiceMail(2000,u)

exten => 2999,1,VoiceMailMain(${CALLERID(num)},s)

[tel-out]
exten => _01-9.,1,Dial(SIP/${EXTEN}@ext-sip-account)

[tel-in]
exten => heremytelephonenumber,1,Dial(SIP/2000)


Can anyone help me, please? I have no idea how to solve this problem.

thank you very much for your help!