<DIV>Hi!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Searching&nbsp;at google, I found out that someone had a very similar problem to mine and posted it here under the&nbsp;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>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Chuck Ramirez<BR><BR><B><I>Chuck Ramirez &lt;chuck_ramirez@yahoo.com&gt;</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 =&gt; 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>&nbsp;</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 =&gt; 999,1,Dial(SIP/user1,,tr)</P>
<P align=left>[users]<BR>exten =&gt; _8.,1,Dial,SIP/${EXTEN-1}@mydomain,tr</P>
<P align=left>&nbsp;</P>
<P align=left>When I dial the number 812345 from my SIP Phone, this is the message sequence<BR>Phone -&gt; Asterisk: INVITE sip:812345@*domain SIP/2.0<BR>Asterisk -&gt; Phone: SIP/2.0 407 Proxy Authentication Required<BR>Phone -&gt; Asterisk: ACK sip:812345@*domain SIP/2.0<BR>Phone -&gt; Asterisk: INVITE sip:812345@*domain SIP/2.0 (with authentication header)<BR>Asterisk -&gt; Phone: SIP/2.0 100 Trying<BR>Asterisk -&gt; Proxy: INVITE sip:12345@mydomain SIP/2.0<BR>Proxy -&gt; Asterisk: SIP/2.0 401 Unauthorized<BR>Asterisk -&gt; 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>&nbsp;&nbsp;&nbsp; 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>