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@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@172.16.4.40] type=user ; either "friend" (peer+user), "peer" or "user" context=default username=678@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@172.16.4.79>;tag=2ee98db6-0fbe-43ef-8ae9-566dbf3a8e8e;epid=78e6 8a104b^M To: <sip:679@172.16.4.79>^M Call-ID: 6499bae2-ff4c-4ae0-bccb-4aa7a7030aab@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@172.16.4.79>;tag=2ee98db6-0fbe-43ef-8ae9-566dbf3a8e8e;epid=78e6 8a104b^M To: <sip:679@172.16.4.79>;tag=as6d33fdbb^M Call-ID: 6499bae2-ff4c-4ae0-bccb-4aa7a7030aab@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@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@172.16.4.79>;tag=2ba5bf3e-a921-47d0-9333-55dacd5e3a6e;epid=9834 c1caf0^M To: <sip:679@172.16.4.79>^M Call-ID: 79a5ce4c-7797-4d15-8dc5-0368fd0cf18d@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@172.16.4.79>;tag=2ba5bf3e-a921-47d0-9333-55dacd5e3a6e;epid=9834 c1caf0^M To: <sip:679@172.16.4.79>;tag=as1196e43e^M Call-ID: 79a5ce4c-7797-4d15-8dc5-0368fd0cf18d@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@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@172.16.4.79>;tag=16f4c47f-64e2-42df-9fb0-6c71d75e7142;epid=ab45 f42642^M To: <sip:679@172.16.4.79>^M Call-ID: c2ed7674-a410-4953-be2e-31ad4d72b09c@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@172.16.4.79>;tag=16f4c47f-64e2-42df-9fb0-6c71d75e7142;epid=ab45 f42642^M To: <sip:679@172.16.4.79>;tag=as04d1cccc^M Call-ID: c2ed7674-a410-4953-be2e-31ad4d72b09c@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@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
On Wed, 21 Jul 2004, Preeti Gopalan wrote:> [679@172.16.4.40] > type=user ; either "friend" (peer+user), "peer" or > "user" > context=default > username=678@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 > AsteriskUsually things are set up as user@host. Maybe your username should be 678, without the host tacked on the end. Also, host= is a way to tell asterisk the ip of the remote machine, not its own IP. Maybe have one more look at the samples in sip.conf.. Greg
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 21 July 2004 02:45 pm, Preeti Gopalan wrote:> 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@172.16.4.40 is the client. > Asterisk is running on 172.16.4.79 > > Thanks > PreetiYou might be missing the extension in extension.conf exten => 679,1,.... - -- Steve "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." Benjamin Franklin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/s1bljK16xgETzkRAmECAKDTC5juM7DfUkfrtZKl79J2Um5gcQCeJUDf +PEZ9JDaabnJq8YNlo+L/ug=VsVN -----END PGP SIGNATURE-----
muralikrishnan lakshmanan
2004-Jul-21 23:15 UTC
[Asterisk-Users] Asterisk Server gives 403 forbidden
An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040722/7386455d/attachment.htm -------------- next part -------------- the 403 forbidden error aries only when the secret(password) of the usename was given wrong. nothing more than that On Thu, 22 Jul 2004 Steve wrote :>-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Wednesday 21 July 2004 02:45 pm, Preeti Gopalan wrote: > > 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@172.16.4.40 is the client. > > Asterisk is running on 172.16.4.79 > > > > Thanks > > Preeti > >You might be missing the extension in extension.conf > >exten => 679,1,.... >- -- >Steve > >"They that would give up essential liberty for temporary safety deserve >neither liberty nor safety." > Benjamin Franklin > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.4 (GNU/Linux) > >iD8DBQFA/s1bljK16xgETzkRAmECAKDTC5juM7DfUkfrtZKl79J2Um5gcQCeJUDf >+PEZ9JDaabnJq8YNlo+L/ug>=VsVN >-----END PGP SIGNATURE----- >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersMuralikrishnan L Software Engineer Trainee Calsoft-Elnet Software City Taramani