Hi all!
I have trouble with setting up my asterisk installation with easybell as a SIP Provider.
When I call my number from outside I get the following message:
NOTICE[12008][C-00000001] chan_sip.c: Call from '004921xx12345' (195.185.xx.xx:5064) to extension '004921xx12345' rejected because extension not found in context 'sip-incoming'.
When doing an outside call from my phone I get the error:
NOTICE[12008][C-00000002] chan_sip.c: Call from '101' (172.20.10.21:5060) to extension '0173nnnnnn' rejected because extension not found in context 'dial-custom'.
004921xx12345 is my number which was provided by easybell
101 is the internal number
0173nnnnnn is the external number I tried to reach.
That is my sip.conf:
[general]
srvlookup=no
port = 5060
language=de
register => 004921xx12345:sipPass@sip.easybell.de:5064/004921xx12345
allowguest=no
alwaysauthreject=yes
context=sip-incoming
disallow=all
allow=ulaw
allow=alaw
[101] ; erste Nebenstelle .
type=friend
secret=secret
qualify=yes
host=dynamic
canreinvite=no
context=home
[102] ; zweite Nebenstelle
type=friend
secret=secret
qualify=yes
host=dynamic
canreinvite=no
context=home
[004921xx12345] ; Peer fĂĽr ausgehende Anrufe
type=peer
username= 004921xx12345
fromuser= 004921xx12345
secret= sipPass
host=sip.easybell.de
fromdomain=sip.easybell.de
insecure=invite,port
caninvite=no
canreinvite=no
nat=no
and here my extensions.conf
[globals]
phone1 = SIP/101
phone2 = SIP/102
callduration = 30
[home]
exten => 101,1,Dial(SIP/101)
exten => 102,1,Dial(SIP/102)
;dialplan
exten => _X.,1,Set(CALLERID(num)=004921xx12345)
;exten => _X.,2,Set(CALLERID(name)=49800123456)
;CLIP No Screening
;(Sofern CLIP No Screening nicht gewünscht, bitte Zeile löschen)
exten => _X.,n,Dial(SIP/${EXTEN}@004921xx12345)
exten => _X.,n,Hangup
;context for incoming SIP calls
[sip-incoming]
;Ihre vollständig Durchwahl, beginnend mit 49 (ohne führendes +)
exten => 4921xx12345,1,NoOp(Incoming call on DDI 1)
exten => 4921xx12345,n,Ringing
exten => 4921xx12345,n,Wait(1)
exten => 4921xx12345,n,Dial(SIP/101)
exten => 4921xx12345,n,Hangup
;exten => 4921xx1234567,1,NoOp(Incoming call on DDI 2)
;exten => 4921xx1234567,n,Ringing
;exten => 4921xx1234567,n,Wait(1)
;exten => 4921xx1234567,n,Dial(SIP/102)
;exten => 4921xx1234567,n,Hangup
;
Can you help me, where is my mistake?
Thanks a lot in advance!
Regards
Daniel