Yes, this way you fix the contact header. Do set the advertised_address but it's not related to this problem.<div><br></div><div>Regards,</div><div>Ali Pey<br><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 3:59 PM, Ignacio Gonzalez <span dir="ltr"><<a href="mailto:mylaneza@gmail.com" target="_blank">mylaneza@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So adding this to my configuration file, do I fix the problem?<br><br>Do I need to set advertised_address or not?<div class="HOEnZb">
<div class="h5"><br><br><br><br><div class="gmail_quote">2012/7/10 Ali Pey <span dir="ltr"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 href="mailto:mylaneza@gmail.com" target="_blank">mylaneza@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 sip:ralvarez@domain;transport=udp 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: <sip:2427001@201.255.1.30:45084;transport=udp><br>To: <sip:ralvarez@domain><br>From: <sip:2427001@domain>;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="sip:ralvarez@domain;transport=udp",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: <sip:ralvarez@domain><br>
From: <sip:2427001@domain>;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: <sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes><br><b>Contact: <sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c></b><br>To: <sip:ralvarez@domain>;tag=e637fa0f<br>From: <sip:2427001@domain>;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: <sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes><br><b>Contact: <sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c></b><br>To: <sip:ralvarez@domain>;tag=e637fa0f<br>From: <sip:2427001@domain>;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 sip:2427001@201.255.1.30:45084;transport=udp 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: <sip:ralvarez@192.100.1.200:30612;rinstance=e0b11e2eb514ba1c><br>To: <sip:2427001@domain>;tag=2627e587<br>From: <sip:ralvarez@domain>;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: <sip:2427001@201.255.1.30:45084;transport=udp><br>To: <sip:2427001@domain>;tag=2627e587<br>
From: <sip:ralvarez@domain>;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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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>