Hi guys. I need your help.
I am a newbie in asterisk, but exprienced in linux.
I installed asterisk (13.5) from source, add internal extensions like 100, 101 for internal use, and it is working, no problem.
After I do connection to my sip provider, in in asterisk cli I see status of provider peer is OK.
My problem is I can’t figure out how to make incoming and outbound routes from and to my sip provider.
I got this error.
[quote]chan_sip.c:25644 handle_request_invite: Call from ‘03232111111’ (210.12.96.31:5061) to extension ‘03232111111’ rejected because extension not found in context ‘incoming’.
[/quote]
Please, help.
My sip.conf
[code][general]
;externip=210.12.12.111
language=ru
context=incoming
allowoverlap=no
udpbindaddr=210.12.12.111
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
register => 03232111111:785455689Nm@210.12.96.31/03232111111
[general]
language=en
context=incoming
allowoverlap=no
udpbindaddr=210.12.12.111
tcpenable=no
transport=udp
srvlookup=yes
register => 03232111111:Secretm1@210.12.96.31/03232111111
[sip_provider]
fromdomain=210.12.12.111
fromuser=03232111111
host=210.12.96.31
insecure=invite,port
port=5060
qualify=yes
nat=no
type=friend
username=03232111111
secret=Secretm1
disallow=all
allow=alaw
context=incoming
internal
type=friend
insecure=invite,port
context=office
fromdomain=210.12.12.111
host=dynamic
disallow=all
allow=alaw
qualify=yes
canreinvite=no
nat=no
100
secret=test12
101
secret=test12
[/code]
This is my extensions.conf file
[code][incoming]
exten => _X.,1,Dial(SIP/100,60,tT)
exten => _X.,1,Hangup()
exten => h,1,Hangup
[office]
exten => 100,1,Dial(SIP/100)
exten => 101,1,Dial(SIP/101)
exten => 200,1,Answer()
same => n,Playback(hello-world)
same => n,Hangup()
[/code]