Good day all How do I get my asterisk and sip to use the password.I'm using x-lite.If I use just the username and no password it still logs on? Here is my sip.conf entry? [101] type=friend callerid="Test User" <101> context = test_1 ; Default context for incoming calls username=101 secret=123456 host=dynamic dtmfmode=inband ; Choices are inband, rfc2833, or info defaultip=192.168.0.10 ;qualify=1000 Thanks Altus
Hi, I use SIP softphone that is not registered at Asterisk. When I dial some extension defined in the dial plan (100@asterisk-ip) with my SIP softphone, Asterisk will not ask me for username/password (will not return response 407) as I expected. The response 407 - Authentication required will be returned if username defined in the softphone's setting matches one of the SIP peers defined in sip.conf. This means that anyone can dial extension at my Asterisk and that is not good, since that person could then dial over my ZAP line. How can I configure Asterisk to allow only peers defined in sip.conf to register and dial? Regards, Stojan Sljivic -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050610/0101536f/attachment.htm
Race, Are you saying that the default is autocreatepeers=yes? I was under the impression that the default is no and yes must be explicitly defined. Same holds true for insecure=, default no, optional yes or very. Please tell me I am not mistaken so I do not feel compelled to review a years worth of telecom bills line by line :-) Damon Greetings, You have stumbled on to one of the most troublesome flag for newbies; autocreatepeer. http://www.voip-info.org/tiki-index.php?page=Asterisk+sip+autocreatepeer in your sip.conf file add a line in the [general] section "autocreatepeer=no" Now people can only use your Asterisk SIP connection if you create a peer entry for them in your sip.conf file. Your sip.conf file should be located in "/etc/asterisk" directory. "cd /etc/asterisk" "vi sip.conf" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050613/07395f4d/attachment.htm
Hi Olle, Do you have any idea why is Asterisk behaving like this? Did you tested this with your Asterisk? Regards, Stojan Sljivic> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Olle E. Johansson > Sent: Tuesday, June 14, 2005 9:53 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] SIP Authentication > > > Stojan Sljivic - GDS wrote: > > Hi, > > > > I have set autocreatepeer=no and it behaves just the same. > > It seems that the default value is no, or Asterisk does not > understand > > this property. In which version of Asterisk was this property > > introduced? I use 1.0.5. > > > autocreatepeer is off by default and should not be part of > your problem. > > /O > _______________________________________________ > 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-users >
Sounds like to much use of the general context, remove etensions from general that you require authentication for or use includes. Post you extensions.conf for better help.> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Stojan Sljivic - GDS > Sent: Tuesday, June 14, 2005 1:57 AM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: RE: [Asterisk-Users] SIP Authentication > > Hi Olle, > > Do you have any idea why is Asterisk behaving like this? > Did you tested this with your Asterisk? > > Regards, > Stojan Sljivic > > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > > Olle E. Johansson > > Sent: Tuesday, June 14, 2005 9:53 > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] SIP Authentication > > > > > > Stojan Sljivic - GDS wrote: > > > Hi, > > > > > > I have set autocreatepeer=no and it behaves just the same. > > > It seems that the default value is no, or Asterisk does not > > understand > > > this property. In which version of Asterisk was this property > > > introduced? I use 1.0.5. > > > > > autocreatepeer is off by default and should not be part of > > your problem. > > > > /O > > _______________________________________________ > > 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-users > > > > _______________________________________________ > 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-users