<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>I use
SIP softphone that is not registered at Asterisk.</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>When I
dial some extension defined in the dial plan (<A
href="mailto:100@asterisk-ip">100@asterisk-ip</A>) with my SIP softphone,
Asterisk will not ask me for username/password (will not return response 407) as
I expected.</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>How
can I configure Asterisk to allow only peers defined in sip.conf to register and
dial?</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=558561511-10062005><FONT face=Arial color=#800000 size=2>Stojan
Sljivic</FONT></SPAN></DIV></BODY></HTML>