[Asterisk-Users] newbie, error 401 unauthorzed question
Mark Anthony C. Delfin
mcdelfin at itextron.com
Fri Jun 18 21:46:26 MST 2004
hello asterisk list,
i've installed asterisk-0.9.0 on fedora core 1, i've been receiving error 401 when i connect my voip gateways on asterisk (welltech fxo, antek fxs)
here is my sip.conf
[general]
port=5060
bindaddr=0.0.0.0
context=from-sip
tos=lowdelay
[x8000001]
type=friend
username=8000001
secret=12345
host=dynamic
dtmfmode=inband
canreinvite=no
callerid="welltech"<8000001>
[x8000002]
type=friend
username=8000002
secret=12345
host=dynamic
dtmfmode=inband
canreinvite=no
callerid="antek"<8000002>
here is my extensions.conf
[general]
static=yes
writeprotect=no
[globals]
welltechfxo=SIP/x8000001
antekfxs=SIP/x8000002
[from-sip]
include => to-sip
[to-sip]
exten => 8000001,1,Dial(${welltechfxo},20,tr)
exten => 8000002,1,Dial(${antekfxs},20,tr)
here is the debug output
Sip read:
REGISTER sip:210.16.20.7:5060 SIP/2.0
Via: SIP/2.0/UDP 210.16.20.14:5060;branch=0
From: <sip:8000002 at 210.16.20.7:5060>
To: <sip:8000002 at 210.16.20.7:5060>
Call-ID: 0 at 210.16.20.14
CSeq: 15 REGISTER
Contact: <sip:8000002 at 210.16.20.14:5060>
Expires: 60
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 210.16.20.14 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 210.16.20.14:5060;branch=0
From: <sip:8000002 at 210.16.20.7:5060>
To: <sip:8000002 at 210.16.20.7:5060>;tag=as6e12e2cb
Call-ID: 0 at 210.16.20.14
CSeq: 15 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8000002 at 210.16.20.7>
Content-Length: 0
to 210.16.20.14:5060
Jun 19 12:43:41 NOTICE[-1116562512]: chan_sip.c:5623 handle_request: Registration from '<sip:8000002 at 210.16.20.7:5060>' failed for '210.16.20.14'
Thanks in Advance
Mark
More information about the asterisk-users
mailing list