<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Ignaco,<br>
<br>
If so, then definitly you must use the "advertise_address", so
that opensips will publish its public ip in the SIP messages.<br>
<br>
Now, opensips seats behind NAT1 - do the UACs seat behind another
NAT, while the communication between the 2 NATs is via public net
?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 07/11/2012 06:22 PM, Ignacio Gonzalez wrote:
<blockquote
cite="mid:CAL5dx5RfORG3GrjFjcu+xzergBq1s1oQf=G6o=Rncuo=jsyy7A@mail.gmail.com"
type="cite">OPENSIPS is behind a NAT but I put a rule in my router
to bridge the port 5060 of the public address and the port of the
OPENSIPS proxy server, and I'm testing with both public and
private clients. Without adding the script Ali Pey told me, and
just adding the parameter "advertised_address" in my configuration
script, two clients each one behind a NAT could comunicate each
other with no problems. But I'm having problems with other tests.<br>
<br>
<div class="gmail_quote">2012/7/11 Bogdan-Andrei Iancu <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <tt>Hi, <br>
<br>
The main question is "Is your opensips behind a NAT
dealing with public traffic? " or the other way around
(opensips is public and client is private) ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5"> <br>
On 07/10/2012 10:59 PM, Ignacio Gonzalez wrote:
<blockquote type="cite">So adding this to my
configuration file, do I fix the problem?<br>
<br>
Do I need to set advertised_address or not?<br>
<br>
<br>
<br>
<div class="gmail_quote">2012/7/10 Ali Pey <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">On the reply route
try something like this:
<div><br>
</div>
<div>
<div>onreply_route[1] {</div>
<div><span style="white-space: pre-wrap;"> </span>xlog("reply
route 1: sequential requests ($rs $rr)\n");</div>
<div><span style="white-space: pre-wrap;"> </span>if
( src_ip != onebox_asterisk1_ip &&
src_ip != onebox_asterisk2_ip ){</div>
<div><span style="white-space: pre-wrap;"> </span>if
( nat_uac_test( "31") ) {</div>
<div><span style="white-space: pre-wrap;"> </span>fix_nated_contact();</div>
<div><span style="white-space: pre-wrap;"> </span>force_rport();</div>
<div><span style="white-space: pre-wrap;"> </span>if(
has_body( "application/sdp" ) ) {</div>
<div><span style="white-space: pre-wrap;"> </span>fix_nated_sdp(
"3" );</div>
<div><span style="white-space: pre-wrap;"> </span>}</div>
<div><span style="white-space: pre-wrap;"> </span>}</div>
<div><span style="white-space: pre-wrap;"> </span>}</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Ali Pey</div>
<div><br>
</div>
<br>
<div class="gmail_quote">
<div>
<div>On Tue, Jul 10, 2012 at 2:00 PM,
Ignacio Gonzalez <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:mylaneza@gmail.com"
target="_blank">mylaneza@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:
0pt 0pt 0pt 0.8ex; border-left: 1px solid
rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div>Hello everybody, I installed and
configured opensips with a residential
configuration setting NAT Traversal and
Multidomain options with the opensips
configuration tool. When I try to make a
call with two users, the ACK method of
the caller party never reaches the
called party.<br>
<br>
This are the messages received in the
called party:<br>
<br>
<br>
INVITE <a moz-do-not-send="true">sip:ralvarez@domain;transport=udp</a>
SIP/2.0<br>
Via: SIP/2.0/UDP
10.151.199.52:45084;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport<br>
Max-Forwards: 70<br>
Contact: <a moz-do-not-send="true"><sip:2427001@201.255.1.30:45084;transport=udp></a><br>
To: <a moz-do-not-send="true"><sip:ralvarez@domain></a><br>
From: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 INVITE<br>
Allow: INVITE, ACK, CANCEL, OPTIONS,
BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
INFO<br>
Content-Type: application/sdp<br>
Proxy-Authorization: Digest
username="2427001",realm=:"domain",nonce="4ffbbd42000000478de4c68512245fee27f7dadd4549c048",uri=<a
moz-do-not-send="true">"sip:ralvarez@domain;transport=udp"</a>,response="8fe20af4d2a381cc6a4ebd3ac1162f69",algorithm=MD5<br>
Supported: replaces<br>
User-Agent: X-Lite 4 release 4.1 stamp
63214<br>
Content-Length: 410<br>
<br>
v=0<br>
o=- 12986371568156250 1 IN IP4
10.151.199.52<br>
s=CounterPath X-Lite 4.1<br>
c=IN IP4 10.151.166.52<br>
t=0 0<br>
a=ice-ufrag:6079ef<br>
a=ice-pwd:8febe129544f5ec86474270bef1a9214<br>
m=audio 53146 RTP/AVP 107 0 8 101<br>
a=rtpmap:107 BV32/16000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>
a=sendrecv<br>
a=candidate:1 1 UDP 659136 10.151.199.52
53146 typ host<br>
a=candidate:1 2 UDP 659134 10.151.199.52
53147 typ host<br>
<br>
SIP/2.0 100 Giving a try<br>
Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
To: <a moz-do-not-send="true"><sip:ralvarez@domain></a><br>
From: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 INVITE<br>
Server: OpenSIPS (1.8.0-notls
(i386/linux))<br>
Content-Length: 0<br>
<br>
SIP/2.0 180 Ringing<br>
Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
Record-Route: <a moz-do-not-send="true"><sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes></a><br>
<b>Contact: <a moz-do-not-send="true"><sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c></a></b><br>
To: <a moz-do-not-send="true"><sip:ralvarez@domain></a>;tag=e637fa0f<br>
From: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 INVITE<br>
User-Agent: X-Lite release 1002tx stamp
29712<br>
Content-Length: 0<br>
<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
Record-Route: <a moz-do-not-send="true"><sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes></a><br>
<b>Contact: <a moz-do-not-send="true"><sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c></a></b><br>
To: <a moz-do-not-send="true"><sip:ralvarez@domain></a>;tag=e637fa0f<br>
From: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 INVITE<br>
Allow: INVITE, ACK, CANCEL, OPTIONS,
BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
INFO<br>
Content-Type: application/sdp<br>
<br>
.... More OK responses ( retries )<br>
<br>
BYE <a moz-do-not-send="true">sip:2427001@201.255.1.30:45084;transport=udp</a>
SIP/2.0<br>
Via: SIP/2.0/UDP
192.100.1.220;branch=z9hG4bKe265.bd09554.0<br>
Via: SIP/2.0/UDP
192.100.1.200:30612;received=192.168.1.200;branch=z9hG4bK-d87543-4677b2285a79346c-1--d87543-;rport=30612<br>
Max-Forwards: 69<br>
Contact: <a moz-do-not-send="true"><sip:ralvarez@192.100.1.200:30612;rinstance=e0b11e2eb514ba1c></a><br>
To: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
From: <a moz-do-not-send="true"><sip:ralvarez@domain></a>;tag=e637fa0f<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 BYE<br>
User-Agent: X-Lite release 1002tx stamp
29712<br>
Reason: SIP;description="ACK not
received"<br>
Content-Length: 0<br>
<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
192.100.1.220;branch=z9hG4bKe265.bd09554.0;received=24.94.9.135<br>
Via: SIP/2.0/UDP
192.100.1.200:30612;received=192.100.1.200;branch=z9hG4bK-d87543-4677b2285a79346c-1--d87543-;rport=30612<br>
Contact: <a moz-do-not-send="true"><sip:2427001@201.255.1.30:45084;transport=udp></a><br>
To: <a moz-do-not-send="true"><sip:2427001@domain></a>;tag=2627e587<br>
From: <a moz-do-not-send="true"><sip:ralvarez@domain></a>;tag=e637fa0f<br>
Call-ID:
ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
CSeq: 2 BYE<br>
User-Agent: X-Lite 4 release 4.1 stamp
63214<br>
Content-Length: 0<br>
<br>
-----------------------------------------------<br>
I need to fix the contact header value
because the IP address is behind the NAT
and is not reachable from the caller
party location. I don't know how to do
this, reading some answers in the users
mail list i found that setting the
global parameter "advertised_address" in
the configuration file it will solved it
but I'm not sure, can anybody tell me if
this is correct?<br>
<br>
Thanks for all.<br>
<br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>