Can you please tell me the params, is it correct,<br><br>modparam("registrar", "received_avp", "$avp(s:rcv)")<br><br>#-------nathelper params ------<br>modparam("nathelper", "received_avp", "$avp(s:rcv)")<br>
<br>if (client_nat_test("3")) {<br> xlog("CLIENT BEHIND NAT\n");<br> if (method=="SUBSCRIBE") <br> nat_keepalive();<br> if (!has_totag()) {<br> if (method=="REGISTER") {<br>
if (proto==UDP)<br> nat_keepalive();<br> else<br> setflag(7); <br> $avp(s:regrcv) = $source_uri;<br> fix_nated_register();<br> }<br> else if (method=="INVITE") {<br>
nat_keepalive();<br> fix_nated_sdp("3");<br> }<br> }<br> }<br><br><br><div class="gmail_quote">On Thu, Jul 29, 2010 at 8:42 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
oh yes, you need to use the nathelper module to fix the signalling - to<br>
replace the private ips with public Ips in contact - during registration<br>
and during calls..<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Premalatha Kuppan wrote:<br>
</div>> Thanks Bogdan. My application is behind NAT. Do i need to change any<br>
<div class="im">> configuration in opensips.cfg.<br>
><br>
><br>
><br>
> On Thu, Jul 29, 2010 at 7:53 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> If you run tcpdump on the opensips server, you will be able to see the<br>
> address where opensips try to connect via TCP....and check if that is<br>
> the real IP and port where pjsip is listening on...<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Premalatha Kuppan wrote:<br>
> > Thanks Bogdan for your reply. Yes Destination is supporting TCP; iam<br>
> > using PJSIP. Registration is successful.<br>
> ><br>
> > On Thu, Jul 22, 2010 at 8:19 PM, Bogdan-Andrei Iancu<br>
> > <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>><br>
</div>> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>>><br>
<div><div></div><div class="h5">> wrote:<br>
> ><br>
> > Hi Premalatha,<br>
> ><br>
> > That means opensips was not able to open a TCP connection to the<br>
> > destiation address. I see this is an INVITE, so the question<br>
> is -<br>
> > is the<br>
> > destination party supporting TCP ?<br>
> ><br>
> > Regards.<br>
> > Bogdan<br>
> ><br>
> > Premalatha Kuppan wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Iam using opensips with TLS enabled. Iam trying to make a<br>
> call via<br>
> > > TCP; registration is successful.<br>
> > ><br>
> > > UDP works fine, but for TCP iam getting following error<br>
> > ><br>
> > > Jul 22 02:50:18 204548-4 /usr/local/sbin/opensips[8224]:<br>
> > > ERROR:core:tcp_blocking_connect: timeout 10 s elapsed from<br>
> 10 s<br>
> > > Jul 22 02:50:18 204548-4 /usr/local/sbin/opensips[8224]:<br>
> > > ERROR:core:tcpconn_connect: tcp_blocking_connect failed<br>
> > > Jul 22 02:50:18 204548-4 /usr/local/sbin/opensips[8224]:<br>
> > > ERROR:core:tcp_send: connect failed<br>
> > > Jul 22 02:50:18 204548-4 /usr/local/sbin/opensips[8224]:<br>
> > > ERROR:tm:msg_send: tcp_send failed<br>
> > > Jul 22 02:50:18 204548-4 /usr/local/sbin/opensips[8224]:<br>
> > > ERROR:tm:t_forward_nonack: sending request failed<br>
> > ><br>
> > ><br>
> > > SIP/2.0 477 Send failed (477/TM)<br>
> > > Via: SIP/2.0/UDP<br>
> ASTERISK:5070;branch=z9hG4bK4a4c0fee;rport=5070<br>
> > > From: "user1" <sip:user1@ASTERISK:5070>;tag=as06435674<br>
> > > To:<br>
> ><br>
> <sip:user2@OPENSIPS:5060>;tag=24e512da0179608b69beef65168adaa1-0387<br>
> > > Call-ID: <a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a><br>
> <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a>><br>
> > <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a><br>
> <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a>>><br>
> > > <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a><br>
> <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a>><br>
> > <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a><br>
> <mailto:<a href="mailto:28ab65ff537a55fd786353e052dbf4c3@204.12.57.221">28ab65ff537a55fd786353e052dbf4c3@204.12.57.221</a>>>><br>
> > > CSeq: 102 INVITE<br>
> > > Server: OpenSIPS (1.6.2-tls (x86_64/linux))<br>
> > > Content-Length: 0<br>
> > ><br>
> > > Any insight ?<br>
> > ><br>
> > > Thanks,<br>
> > > Prem<br>
> > ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > ><br>
> > > _______________________________________________<br>
> > > Users mailing list<br>
> > > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
</div></div>> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
<div class="im">> > > <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>
> ><br>
> ><br>
> > --<br>
> > Bogdan-Andrei Iancu<br>
> > OpenSIPS Bootcamp<br>
> > 20 - 24 September 2010, Frankfurt, Germany<br>
> > <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
</div>> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
<div><div></div><div class="h5">> > <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>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<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>
><br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Bootcamp<br>
> 20 - 24 September 2010, Frankfurt, Germany<br>
> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<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>
><br>
> ------------------------------------------------------------------------<br>
><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>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<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>
</div></div></blockquote></div><br>