<DIV>Hi!</DIV>
<DIV> </DIV>
<DIV>Searching at google, I found out that someone had a very similar problem to mine and posted it here under the subject "Outgoing calls to SIP provider".</DIV>
<DIV>Unfortunately I couldn't find how the problem was solved - if it was. Is it an Asterisk's bug? Have I done something wrong?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> Chuck Ramirez<BR><BR><B><I>Chuck Ramirez <chuck_ramirez@yahoo.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P align=left>I have a group of users configured as extensions in *.These users are registered with a SIP Proxy Server and can receive calls very well. The problem happens when any user tries to make an outbound call. The proxy replies with a "401 Unauthorized" and * don't try another INVITE including credentials.</P>
<P align=left>Here is part of the content of sip.conf.</P>
<P align=left>[general]<BR>port = 5061<BR>bindaddr = *.IP<BR>context = invalidcalls</P>
<P align=left>;This account is used for inbound and outbound calls<BR>register => myuser:mypass@mydomain/999</P>
<P align=left>[mydomain]<BR>type=peer<BR>host=myproxy<BR>context=sip<BR>username=myuser<BR>secret=mypass<BR>fromuser=myuser<BR>fromdomain=mydomain</P>
<P align=left>[user1]<BR>type=friend<BR>host=dynamic<BR>defaultip=default.IP<BR>username=user1<BR>secret=secret1<BR>dtmfmode=rfc2833<BR>context=users<BR>callerid="User 1"<BR>nat=yes</P>
<P align=left> </P>
<P align=left>Here is part of the content of extensions.conf.</P>
<P align=left>;This part is working fine<BR>[sip]<BR>exten => 999,1,Dial(SIP/user1,,tr)</P>
<P align=left>[users]<BR>exten => _8.,1,Dial,SIP/${EXTEN-1}@mydomain,tr</P>
<P align=left> </P>
<P align=left>When I dial the number 812345 from my SIP Phone, this is the message sequence<BR>Phone -> Asterisk: INVITE sip:812345@*domain SIP/2.0<BR>Asterisk -> Phone: SIP/2.0 407 Proxy Authentication Required<BR>Phone -> Asterisk: ACK sip:812345@*domain SIP/2.0<BR>Phone -> Asterisk: INVITE sip:812345@*domain SIP/2.0 (with authentication header)<BR>Asterisk -> Phone: SIP/2.0 100 Trying<BR>Asterisk -> Proxy: INVITE sip:12345@mydomain SIP/2.0<BR>Proxy -> Asterisk: SIP/2.0 401 Unauthorized<BR>Asterisk -> Proxy: ACK sip:12345@mydomain SIP/2.0</P>
<P align=left>The next message I would expect is another INVITE from * to the proxy with the authentication header.<BR>Why * hasn't send it? Can someone give me a help?</P>
<P align=left>Thanks in advance<BR> Chuck Ramirez</P><BR><BR>
<P>
<HR SIZE=1>
<FONT face=arial size=-1>Do you Yahoo!?<BR>Friends. Fun. <A href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</A></BLOCKQUOTE></FONT><p>
                <hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Friends. Fun. <a href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>