Hi all.
I’m new bie. recently I install sip trunking-VTN_Inbound- (asterisk 1.8.x x64) with VTN, but when “sip show peers” the sip trunking status is unreachable. we captured log on VTN, and we got “401 unauthorized error”. I sent my sip trunking configruation here:
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[223_In]
host=192.168.222.223
port=5060
type=peer
qualify=yes
context=from-trunk
[223_Out]
host=192.168.222.223
port=5060
type=peer
qualify=yes
context=from-trunk-sip-223_Out
[6001]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6001
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6001>
callcounter=yes
faxdetect=no
[6002]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6002
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6002>
callcounter=yes
faxdetect=no
[6003]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6003
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6003>
callcounter=yes
faxdetect=no
[6004]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6004
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6004>
callcounter=yes
faxdetect=no
[6005]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6005
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6005>
callcounter=yes
faxdetect=no
[6006]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6006
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6006>
callcounter=yes
faxdetect=no
[6007]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6007
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6007>
callcounter=yes
faxdetect=no
[6008]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6008
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6008>
callcounter=yes
faxdetect=no
[6009]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6009
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6009>
callcounter=yes
faxdetect=no
[6011]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6011
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6011>
callcounter=yes
faxdetect=no
[6012]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6012
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6012>
callcounter=yes
faxdetect=no
[6013]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6013
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6013>
callcounter=yes
faxdetect=no
[6014]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6014
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6014>
callcounter=yes
faxdetect=no
[6015]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6015
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6015>
callcounter=yes
faxdetect=no
[6016]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6016
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6016>
callcounter=yes
faxdetect=no
[6017]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6017
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6017>
callcounter=yes
faxdetect=no
[6018]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6018
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6018>
callcounter=yes
faxdetect=no
[6019]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6019
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6019>
callcounter=yes
faxdetect=no
[6021]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6021
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6021>
callcounter=yes
faxdetect=no
[6022]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6022
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6022>
callcounter=yes
faxdetect=no
[6023]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6023
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6023>
callcounter=yes
faxdetect=no
[6024]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6024
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6024>
callcounter=yes
faxdetect=no
[6025]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6025
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6025>
callcounter=yes
faxdetect=no
[6026]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6026
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6026>
callcounter=yes
faxdetect=no
[6027]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6027
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6027>
callcounter=yes
faxdetect=no
[6028]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6028
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6028>
callcounter=yes
faxdetect=no
[6029]
deny=0.0.0.0/0.0.0.0
secret=ab123456
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/6029
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <6029>
callcounter=yes
faxdetect=no
[VTN_Inbound]
host=10.163.1.57
port=5060
type=friend
canreinvite=no
context=from-trunk
qualify=yes
allow=all
alwaysauthreject=no
[VTN_Outbound]
host=10.163.1.57
port=5060
type=peer
type=friend
context=from-trunk
qualify=yes
So can any pro brother give my a issue to solve it?
Thank all.