<!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> </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> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * one
sip.conf</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>register
=>usuario1:pass1@<public_ip_2></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * two
sip.conf</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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=<public_ip_1><BR>dtmfmode=inband</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Logs in * are the followings</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * one logs:</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>Sip read: ><BR>SIP/2.0 401
Unauthorized<BR>Via: SIP/2.0/UDP
<public_ip_1>:5060;branch=z9hG4bK488fe503;received=<public_ip_1><BR>From:
<sip:usuario1@<public_ip_2>>;tag=as504a35d0<BR>To:
<sip:usuario1@<public_ip_2>>;tag=as2a0e47ce<BR>Call-ID: <A
href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT
color=#000000><public_ip_1></FONT></A><BR>CSeq: 103
REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact:
<sip:usuario1@<public_ip_2>><BR>Content-Length: 0</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>9 headers, 0 lines<BR>11 headers, 0 lines<BR>Reliably
Transmitting:<BR>REGISTER sip:<public_ip_2>SIP/2.0<BR>Via: SIP/2.0/UDP
<public_ip_1>:5060;branch=z9hG4bK59f913b2<BR>From:
<sip:usuario1@<public_ip_2>>;tag=as4f879ac7<BR>To:
<sip:usuario1@<public_ip_2>><BR>Call-ID: <A
href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT
color=#000000><public_ip_1></FONT></A><BR>CSeq: 104
REGISTER<BR>User-Agent: Asterisk PBX<BR>Expires: 120<BR>Contact:
<sip:s@<public_ip_1>><BR>Event: registration<BR>Content-length:
0</DIV>
<DIV> </DIV>
<DIV> (no NAT) to<public_ip_2>:5060<BR>Sip read: ><BR>SIP/2.0
401 Unauthorized<BR>Via: SIP/2.0/UDP
<public_ip_1>:5060;branch=z9hG4bK59f913b2;received=<public_ip_1><BR>From:
<sip:usuario1@<public_ip_2>>;tag=as4f879ac7<BR>To:
<sip:usuario1@<public_ip_2>>;tag=as13445743<BR>Call-ID: <A
href="mailto:77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>">77064d8f2fdfe4746d509dc2488fe503@<FONT
color=#000000><public_ip_1></FONT></A><BR>CSeq: 104
REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact:
<sip:usuario1@<public_ip_2>><BR>Content-Length:
0</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>In * two logs:</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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
'<sip:usuario1@<public_ip_2>>' failed for
'<public_ip_1>'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sip read:<BR>REGISTER
sip:<public_ip_2>SIP/2.0<BR>Via: SIP/2.0/UDP
<public_ip_1>:5060;branch=z9hG4bK0f194106<BR>From:
<sip:usuario1@<public_ip_2>>;tag=as35957f60<BR>To:
<sip:usuario1@<public_ip_2>><BR>Call-ID: <A
href="mailto:77064d8f2fdfe4746d509dc2488fe503@213.229.160.218">77064d8f2fdfe4746d509dc2488fe503@<FONT
color=#000000><public_ip_1></FONT></A><BR>CSeq: 119
REGISTER<BR>User-Agent: Asterisk PBX<BR>Expires: 120<BR>Contact:
<sip:s@<public_ip_1>><BR>Event: registration<BR>Content-length:
0</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>11 headers, 0 lines<BR>Using latest request as basis
request<BR>Sending to <public_ip_1>: 5060 (NAT)<BR>Transmitting
(NAT):<BR>SIP/2.0 401 Unauthorized<BR>Via: SIP/2.0/UDP
<public_ip_1>:5060;branch=z9hG4bK0f194106;received=<public_ip_1><BR>From:
<sip:usuario1@<public_ip_2>>;tag=as35957f60<BR>To:
<sip:usuario1@<public_ip_2>>;tag=as1538b8a6<BR>Call-ID: <A
href="mailto:77064d8f2fdfe4746d509dc2488fe503@213.229.160.218">77064d8f2fdfe4746d509dc2488fe503@<FONT
color=#000000><public_ip_1></FONT></A><BR>CSeq: 119
REGISTER<BR>User-Agent: Asterisk PBX<BR>Contact:
<sip:usuario1@<public_ip_2>><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> </DIV>
<DIV dir=ltr>Thanks a lot.</DIV>
<DIV dir=ltr><BR> </DIV></FONT></BODY></HTML>