[Asterisk-Users] Asterisk Server gives 403 forbidden

Preeti Gopalan preeti at transnexus.com
Wed Jul 21 11:45:17 MST 2004


Hi 
I am a new Asterisk user, I am trying to make a call between 2 Windows
messenger clients. 
At present I am trying to get one client to register with the Asterisk
Server. I get a 403 forbidden
Could anyone tell me what I am doing wrong? 
A snippet from my sip.conf file is below. 
679 at 172.16.4.40 is the client. 
Asterisk is running on 172.16.4.79

Thanks 
Preeti

[general]
context=default

port=5060                       ; UDP Port to bind to (SIP standard port
is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds
to all)
srvlookup=yes


[679 at 172.16.4.40]
type=user                       ; either "friend" (peer+user), "peer" or
"user"
context=default
username=678 at 172.16.4.40                        ; usually matches the
section title
host=172.16.4.79             ; we have a static but private IP address
nat=no                        ; there is not NAT between phone and
Asterisk
canreinvite=no               ; allow RTP voice traffic to bypass
Asterisk







snoop^B^D^B.^B.^BH@\374G\201^Bt.
\346\215\254\334P^D\276\263^N^HE^B
\323\343\200^Q^DR\254^P^D(\254^P^DO^O\326^S\304^B^L\262FREGISTER
sip:172.16.
4.79 SIP/2.0^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
Max-Forwards: 70^M
From:
<sip:679 at 172.16.4.79>;tag=2ee98db6-0fbe-43ef-8ae9-566dbf3a8e8e;epid=78e6
8a104b^M
To: <sip:679 at 172.16.4.79>^M
Call-ID: 6499bae2-ff4c-4ae0-bccb-4aa7a7030aab at 172.16.4.40^M
CSeq: 1 REGISTER^M
Contact: <sip:172.16.4.40:8366>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, R
EFER"^M
User-Agent: Windows RTC/1.2.4805 (Messenger 5.0.0149)^M
Event: registration^M
Allow-Events: presence^M
Content-Length: 0^M
^M
 #^A\261^A\261^A\320@\374G\201^BxxP^D\276\263^N
\346\215\254\334^HE^A\243@@^Q\330\262\254^P^DO\254^P^D(^S\304
\256^A\217\321^LSIP/2.0 403 Forbidden^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
From:
<sip:679 at 172.16.4.79>;tag=2ee98db6-0fbe-43ef-8ae9-566dbf3a8e8e;epid=78e6
8a104b^M
To: <sip:679 at 172.16.4.79>;tag=as6d33fdbb^M
Call-ID: 6499bae2-ff4c-4ae0-bccb-4aa7a7030aab at 172.16.4.40^M
CSeq: 1 REGISTER^M
User-Agent: Asterisk PBX^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^M
Contact: <sip:679 at 172.16.4.79>^M
Content-Length: 0^M
^M
6^B.^B.^BH@\374G\205^B$\225
\346\215\254\334P^D\276\263^N^HE^B
\324^M\200^Q^D(\254^P^D(\254^P^DO^O\333^S\304^B^L87REGISTER
sip:172.16.4.79
SIP/2.0^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
Max-Forwards: 70^M
From:
<sip:679 at 172.16.4.79>;tag=2ba5bf3e-a921-47d0-9333-55dacd5e3a6e;epid=9834
c1caf0^M
To: <sip:679 at 172.16.4.79>^M
Call-ID: 79a5ce4c-7797-4d15-8dc5-0368fd0cf18d at 172.16.4.40^M
CSeq: 1 REGISTER^M
Contact: <sip:172.16.4.40:8366>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, R
EFER"^M
User-Agent: Windows RTC/1.2.4805 (Messenger 5.0.0149)^M
Event: registration^M
Allow-Events: presence^M
Content-Length: 0^M
^M
^A\261^A\261^A\320@\374G\205^B(\260P^D\276\263^N
\346\215\254\334^HE^A\243@@^Q\330\262\254^P^DO\254^P^D(^S\304
\256^A\217+\272SIP/2.0 403 Forbidden^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
From:
<sip:679 at 172.16.4.79>;tag=2ba5bf3e-a921-47d0-9333-55dacd5e3a6e;epid=9834
c1caf0^M
To: <sip:679 at 172.16.4.79>;tag=as1196e43e^M
Call-ID: 79a5ce4c-7797-4d15-8dc5-0368fd0cf18d at 172.16.4.40^M
CSeq: 1 REGISTER^M
User-Agent: Asterisk PBX^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^M
Contact: <sip:679 at 172.16.4.79>^M
Content-Length: 0^M
^M
]^B.^B.^BH@\374G\207^H\254\317
\346\215\254\334P^D\276\263^N^HE^B
\324"\200^Q^D^S\254^P^D(\254^P^DO^O\336^S\304^B^L^L.REGISTER
sip:172.16.4.79
 SIP/2.0^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
Max-Forwards: 70^M
From:
<sip:679 at 172.16.4.79>;tag=16f4c47f-64e2-42df-9fb0-6c71d75e7142;epid=ab45
f42642^M
To: <sip:679 at 172.16.4.79>^M
Call-ID: c2ed7674-a410-4953-be2e-31ad4d72b09c at 172.16.4.40^M
CSeq: 1 REGISTER^M
Contact: <sip:172.16.4.40:8366>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, R
EFER"^M
User-Agent: Windows RTC/1.2.4805 (Messenger 5.0.0149)^M
Event: registration^M
Allow-Events: presence^M
Content-Length: 0^M
^M
^A\261^A\261^A\320@\374G\207^H\260\274P^D\276\263^N
\346\215\254\334^HE^A\243@@^Q\330\262\254^P^DO\254^P^D(^S\304
\256^A\217O\340SIP/2.0 403 Forbidden^M
Via: SIP/2.0/UDP 172.16.4.40:8366^M
From:
<sip:679 at 172.16.4.79>;tag=16f4c47f-64e2-42df-9fb0-6c71d75e7142;epid=ab45
f42642^M
To: <sip:679 at 172.16.4.79>;tag=as04d1cccc^M
Call-ID: c2ed7674-a410-4953-be2e-31ad4d72b09c at 172.16.4.40^M
CSeq: 1 REGISTER^M
User-Agent: Asterisk PBX^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^M
Contact: <sip:679 at 172.16.4.79>^M
Content-Length: 0^M

Preeti Gopalan
404-526-6056

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040721/3cb4afbc/attachment.htm


More information about the asterisk-users mailing list