<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to SIP register between two asterisk, 
each one have a Public IP. Asterisk told me that Unathorizae</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * one 
sip.conf</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2>register 
    =&gt;usuario1:pass1@&lt;public_ip_2&gt;</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In&nbsp;* two 
sip.conf</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2>[usuario1]</FONT></DIV>
    <DIV><FONT face=Arial size=2>type=friend<BR>username=usuario1</FONT></DIV>
    <DIV><FONT face=Arial 
    size=2>secret=pass1<BR>host=&lt;public_ip_1&gt;<BR>dtmfmode=inband</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Logs in * are the followings</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * one logs:</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2>Sip read: &gt;<BR>SIP/2.0 401 
    Unauthorized<BR>Via: SIP/2.0/UDP 
    &lt;public_ip_1&gt;:5060;branch=z9hG4bK488fe503;received=&lt;public_ip_1&gt;<BR>From: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as504a35d0<BR>To: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as2a0e47ce<BR>Call-ID: <A 
    href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT 
    color=#000000>&lt;public_ip_1&gt;</FONT></A><BR>CSeq: 103 
    REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;<BR>Content-Length: 0</FONT></DIV>
    <DIV>&nbsp;</DIV><FONT face=Arial size=2>
    <DIV><BR>9 headers, 0 lines<BR>11 headers, 0 lines<BR>Reliably 
    Transmitting:<BR>REGISTER sip:&lt;public_ip_2&gt;SIP/2.0<BR>Via: SIP/2.0/UDP 
    &lt;public_ip_1&gt;:5060;branch=z9hG4bK59f913b2<BR>From: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as4f879ac7<BR>To: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;<BR>Call-ID: <A 
    href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT 
    color=#000000>&lt;public_ip_1&gt;</FONT></A><BR>CSeq: 104 
    REGISTER<BR>User-Agent: Asterisk PBX<BR>Expires: 120<BR>Contact: 
    &lt;sip:s@&lt;public_ip_1&gt;&gt;<BR>Event: registration<BR>Content-length: 
    0</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;(no NAT) to&lt;public_ip_2&gt;:5060<BR>Sip read: &gt;<BR>SIP/2.0 
    401 Unauthorized<BR>Via: SIP/2.0/UDP 
    &lt;public_ip_1&gt;:5060;branch=z9hG4bK59f913b2;received=&lt;public_ip_1&gt;<BR>From: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as4f879ac7<BR>To: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as13445743<BR>Call-ID: <A 
    href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT 
    color=#000000>&lt;public_ip_1&gt;</FONT></A><BR>CSeq: 104 
    REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;<BR>Content-Length: 
  0</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * two logs:</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2>NOTICE[81926]: File chan_sip.c, Line 4816 
    (handle_request): Registration from 
    '&lt;sip:usuario1@&lt;public_ip_2&gt;&gt;' failed for 
    '&lt;public_ip_1&gt;'</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Sip read:<BR>REGISTER 
    sip:&lt;public_ip_2&gt;SIP/2.0<BR>Via: SIP/2.0/UDP 
    &lt;public_ip_1&gt;:5060;branch=z9hG4bK0f194106<BR>From: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as35957f60<BR>To: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;<BR>Call-ID: <A 
    href="mailto:77064d8f2fdfe4746d509dc2488fe503@213.229.160.218">77064d8f2fdfe4746d509dc2488fe503@<FONT 
    color=#000000>&lt;public_ip_1&gt;</FONT></A><BR>CSeq: 119 
    REGISTER<BR>User-Agent: Asterisk PBX<BR>Expires: 120<BR>Contact: 
    &lt;sip:s@&lt;public_ip_1&gt;&gt;<BR>Event: registration<BR>Content-length: 
    0</FONT></DIV>
    <DIV>&nbsp;</DIV><FONT face=Arial size=2>
    <DIV><BR>11 headers, 0 lines<BR>Using latest request as basis 
    request<BR>Sending to &lt;public_ip_1&gt;: 5060 (NAT)<BR>Transmitting 
    (NAT):<BR>SIP/2.0 401 Unauthorized<BR>Via: SIP/2.0/UDP 
    &lt;public_ip_1&gt;:5060;branch=z9hG4bK0f194106;received=&lt;public_ip_1&gt;<BR>From: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as35957f60<BR>To: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;;tag=as1538b8a6<BR>Call-ID: <A 
    href="mailto:77064d8f2fdfe4746d509dc2488fe503@213.229.160.218">77064d8f2fdfe4746d509dc2488fe503@<FONT 
    color=#000000>&lt;public_ip_1&gt;</FONT></A><BR>CSeq: 119 
    REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact: 
    &lt;sip:usuario1@&lt;public_ip_2&gt;&gt;<BR>Content-Length: 
  0</DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV dir=ltr>Any idea to fix the problem???? Any special configuration in 
sip.conf????</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Thanks a lot.</DIV>
<DIV dir=ltr><BR>&nbsp;</DIV></FONT></BODY></HTML>