Actually if I disable record_route(), everything goes as expected. I think
the problem is in the network translation of any side of the
conections.<BR><BR>&nbsp;Thank you.<BR><BR>--<BR>Thomas Storino
Britis<BR><THOMAS@TCNET.COM.BR><BR>TCNet Inf. e Telecom
LTDA<BR>+55(35)3425-2556<BR><BR><BR>
<BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px;
MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">--------- Mensagem Original --------<BR>De:
"Jon Mansey" &lt;jon@tigrisnet.net&gt;<BR>Para: "Thomas Britis"
&lt;thomas@tcnet.com.br&gt;<BR>Cópia: serusers@lists.iptel.org<BR>Assunto: Re:
[Serusers] SER + NAT<BR>Data: 25/07/05 20:37<BR><BR><FONT face="Courier New"
size=2><BR>It looks like you may not be record-routing to make sure the
messages<BR>always go via the server. I may be
wrong.<BR><BR>jm<BR>&gt;<BR>&gt; Thomas Britis wrote:<BR>&gt;<BR>&gt;&gt; Hi
all,<BR>&gt;&gt;<BR>&gt;&gt; I have ser running, and everything is working
fine.<BR>&gt;&gt; I tried to use two softphones (x-lite) on the same network
-<BR>&gt;&gt; behind a firewall (NAT).<BR>&gt;&gt; Both of the clients logs
on ok and I can call one from other. The<BR>&gt;&gt; problem comes when I
try to hung up from the caller. After a few<BR>&gt;&gt; seconds, the caller
gets OK from SER BUT callee don't hang up. And SER<BR>&gt;&gt; don't even
terminate the connection (module acc).<BR>&gt;&gt;<BR>&gt;&gt; I'm using
nathelper and rtpproxy.<BR>&gt;&gt;<BR>&gt;&gt; Here is my ser.cfg (only
parts that matter):<BR>&gt;&gt;<BR>&gt;&gt; loadmodule
"/tcnet/ser/lib/ser/modules/nathelper.so"<BR>&gt;&gt;<BR>&gt;&gt;
modparam("registrar", "nat_flag", 6)<BR>&gt;&gt;<BR>&gt;&gt; #
nathelper<BR>&gt;&gt; modparam("nathelper", "natping_interval",
30)<BR>&gt;&gt; modparam("nathelper", "ping_nated_only",
1)<BR>&gt;&gt;<BR>&gt;&gt; route{<BR>&gt;&gt;<BR>&gt;&gt; if
(nat_uac_test("19")) {<BR>&gt;&gt; if (method == "REGISTER" || !
search("^Record-Route:")) {<BR>&gt;&gt; log (1, "src addressw different than
via<BR>&gt;&gt; header-&gt;NAT");<BR>&gt;&gt; # Try NAT traversal, if the
client is symmetrical<BR>&gt;&gt;
fix_nated_contact();<BR>&gt;&gt;<BR>&gt;&gt; if (method == "INVITE")
{<BR>&gt;&gt; sl_send_reply("", "Client is behind<BR>&gt;&gt; NAT And
Requested a call");<BR>&gt;&gt; if (fix_nated_sdp("1"))<BR>&gt;&gt;
sl_send_reply("", "Client SDP Replaced");<BR>&gt;&gt; };<BR>&gt;&gt;
force_rport();<BR>&gt;&gt; append_hf("P-hint: fixed NAT contact
for<BR>&gt;&gt; requestrn");<BR>&gt;&gt; # flag 5 indicates that incoming
request is<BR>&gt;&gt; from NATed client<BR>&gt;&gt; setflag(5);<BR>&gt;&gt;
};<BR>&gt;&gt; };<BR>&gt;&gt; if (uri==myself) {<BR>&gt;&gt; if
(method=="REGISTER") {<BR>&gt;&gt; if (isflagset(5)) {<BR>&gt;&gt; #
register from nated client.<BR>&gt;&gt; setflag(6);<BR>&gt;&gt;
};<BR>&gt;&gt; }<BR>&gt;&gt;<BR>&gt;&gt; Thank you
all.<BR>&gt;<BR>&gt;<BR>&gt;
_______________________________________________<BR>&gt; Serusers mailing
list<BR>&gt; <A class=autolink
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR>&gt; <A
class=autolink href="http://lists.iptel.org/mailman/listinfo/serusers"
target=_blank>http://lists.iptel.org/mailman/listinfo/serusers</A><BR><BR><BR><BR><BR></FONT></DIV></BLOCKQUOTE><BR
/>
<BR />
________________________________________________<BR />
TCNet WebMail http://webmail.tcnet.com.br<BR />