Hello
I`m new in asterisk, and i have problem.
My asterisk is connected to voip provider via sip trunk, and i have inside client connected via x-lite.
X-lite client can call outside, and calls from aoutside are established to asterisk server.
Problem is when i call from outside to asterisk, and press 101 in order to forward call to inside user 101.
In console i sew then:
[Dec 8 14:21:28] WARNING[32161]: chan_sip.c:3005 create_addr: No such host: 101
[Dec 8 14:21:28] WARNING[32161]: app_dial.c:1275 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
Tcpdump then shows, that asterisk server is trying to resolv name 101 in dns server, so It everything seems to be problem with dial() apllication which is trying to forward call to outside. I don`t understund it, i thought that command
exten => 101,1,Dial(SIP/101)
get call to user 101 definied in sip.conf.
Can Enybady explain it to Me, and tell wher is my problem?
My sip conf:
[general]
register => seipuser1:pass@sip-server.net/6929
register => sipuser2:pass@sip-server.net/6930
[authentication]
auth = sipuser1#pass@sip-server.net
auth = sipuser2#pass@sip-server.net
[frico1318]
type=peer
host=x.x.x.x
username=sipuser1
fromuser=sipuser1
secret=pass
context=begin
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
insecure=invite
canreinvite=no
nat=no
[102]
type=user
host=dynamic
context=phones
secret=pass102
username=102
nat=yes
[101]
type=user
host=dynamic
context=phones
secret=pass101
username=101
nat=yesroot
extension.conf
[general]
autofallthrough=yes
[begin]
exten => 6929,1,Goto(6929,1,1)
exten => 6930,1,Goto(6930,1,1)
[6929]
exten => 1,1,Answer()
exten => 1,n,Background(welcome_1)
exten => 1,n,WaitExten(5)
exten => 101,1,Dial(SIP/101)
exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(6929,1,1)
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()
[6930]
exten => 1,1,Answer()
exten => 1,n,Background(welcome_przychodnia_4)
exten => 1,n,Hangup()
[phones]
exten => _X.,1,Answer()
exten => _X.,n,Dial(SIP/frico1318/${EXTEN})
Thanks for replies