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> 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" <jon@tigrisnet.net><BR>Para: "Thomas Britis"
<thomas@tcnet.com.br><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>><BR>> Thomas Britis wrote:<BR>><BR>>> Hi
all,<BR>>><BR>>> I have ser running, and everything is working
fine.<BR>>> I tried to use two softphones (x-lite) on the same network
-<BR>>> behind a firewall (NAT).<BR>>> Both of the clients logs
on ok and I can call one from other. The<BR>>> problem comes when I
try to hung up from the caller. After a few<BR>>> seconds, the caller
gets OK from SER BUT callee don't hang up. And SER<BR>>> don't even
terminate the connection (module acc).<BR>>><BR>>> I'm using
nathelper and rtpproxy.<BR>>><BR>>> Here is my ser.cfg (only
parts that matter):<BR>>><BR>>> loadmodule
"/tcnet/ser/lib/ser/modules/nathelper.so"<BR>>><BR>>>
modparam("registrar", "nat_flag", 6)<BR>>><BR>>> #
nathelper<BR>>> modparam("nathelper", "natping_interval",
30)<BR>>> modparam("nathelper", "ping_nated_only",
1)<BR>>><BR>>> route{<BR>>><BR>>> if
(nat_uac_test("19")) {<BR>>> if (method == "REGISTER" || !
search("^Record-Route:")) {<BR>>> log (1, "src addressw different than
via<BR>>> header->NAT");<BR>>> # Try NAT traversal, if the
client is symmetrical<BR>>>
fix_nated_contact();<BR>>><BR>>> if (method == "INVITE")
{<BR>>> sl_send_reply("", "Client is behind<BR>>> NAT And
Requested a call");<BR>>> if (fix_nated_sdp("1"))<BR>>>
sl_send_reply("", "Client SDP Replaced");<BR>>> };<BR>>>
force_rport();<BR>>> append_hf("P-hint: fixed NAT contact
for<BR>>> requestrn");<BR>>> # flag 5 indicates that incoming
request is<BR>>> from NATed client<BR>>> setflag(5);<BR>>>
};<BR>>> };<BR>>> if (uri==myself) {<BR>>> if
(method=="REGISTER") {<BR>>> if (isflagset(5)) {<BR>>> #
register from nated client.<BR>>> setflag(6);<BR>>>
};<BR>>> }<BR>>><BR>>> Thank you
all.<BR>><BR>><BR>>
_______________________________________________<BR>> Serusers mailing
list<BR>> <A class=autolink
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR>> <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 />